Fascinating new switch mechanism in assembler

Walter Bright newshound at digitalmars.com
Tue Mar 21 02:06:39 PST 2006


"Lionello Lunesu" <lio at remove.lunesu.com> wrote in message 
news:dvm0dd$2bhp$1 at digitaldaemon.com...
> What's the reason for the "sub ebx, 1", intead of "dec ebx"? Isn't an 
> instruction using an immediate value slower (larger instruction => less 
> instructions in cache) than one without? (At least that's what I remember 
> from the pentium 1).

Not necessarilly. It depends on which version of the CPU. 





More information about the Digitalmars-d mailing list