i am working on MASM32v8. i found that .WHILE and .IF directive can not work correctly on negtive numbers.
Such as

mov eax, -1
.WHILE eax <= 1
inc eax
.ENDW

Could any one tell me is there any directive like .WHILE but can work on negtive numbers?
Posted on 2004-04-10 14:21:15 by IRET
You must cast the register to a signed DWORD:

.WHILE SDWORD PTR eax <= 1
...
.ENDW
Posted on 2004-04-10 14:27:59 by donkey
Thanks very much.
Posted on 2004-04-10 14:43:34 by IRET