News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Counting, adding and eax invalid instruction

Started by bcddd214, April 28, 2011, 04:58:31 AM

Previous topic - Next topic

raymond

QuoteIt's pretty easy to implement the equivalent (as MichaelW points out), just by decrementing the counter yourself.

And, if you're not concerned with timing nor instruction size, it would always be safe (never get trashed by external functions) to use a memory variable as the counter for complex loops.

mov counter,xxx
top_of_loop:
....
....
dec counter
jnz top_of_loop
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com