News:

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

How to do While-endWhile with MASM32v10?

Started by FritzGamaliel, March 17, 2010, 03:57:33 AM

Previous topic - Next topic

FritzGamaliel

I have a problem. I want to convert the code below into MASM32v10:


mov eax,0
.while eax < 10
     add eax,1
.endw



Could you help me to repair it's code?
Thank you.
Fritz Gamaliel

hutch--

Fritz,

It disassembles to exactly this code with DumpPE.


    mov eax, 0
    jmp lbl1

  lbl0:
    add eax, 1

  lbl1:
    cmp eax, 0Ah
    jb lbl0
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php