The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: FritzGamaliel on March 17, 2010, 03:57:33 AM

Title: How to do While-endWhile with MASM32v10?
Post by: FritzGamaliel on March 17, 2010, 03:57:33 AM
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
Title: Re: How to do While-endWhile with MASM32v10?
Post by: hutch-- on March 19, 2010, 10:55:02 AM
Fritz,

It disassembles to exactly this code with DumpPE.


    mov eax, 0
    jmp lbl1

  lbl0:
    add eax, 1

  lbl1:
    cmp eax, 0Ah
    jb lbl0