News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Having problems with .while Cnt < 32

Started by hfheatherfox07, January 18, 2013, 12:34:14 PM

Previous topic - Next topic

hfheatherfox07

Thanks jj2007  :t
Never thought of that  :redface:
Your code and your skills will be assimilated. Your programming language is irrelevant.
We are the ASM Borg and you will become part of us. Compile and be assembled.

dedndave

it's an index into a string, starting at 0
in this case, i think you want MOVZX

dedndave

Quote from: jj2007 on January 18, 2013, 05:16:18 PM
.Repeat
  ...
    mov eax, mem1
.Until mem2>eax  ; or whatever


Note that .Repeat ... .Until is a bit faster and shorter than .While - if you are sure that the loop must be taken at least once, use .Repeat.
thanks for the tip, Jochen - i knew there had to be a better way   :t