News:

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

Number types, i geuss

Started by RedXVII, August 06, 2006, 12:03:03 PM

Previous topic - Next topic

RedXVII

Take a look,

mov Var, -1
.if Var>0
  mov eax, 1
.else
  xor eax, eax
.endif


This function returns 1 of course, because FFFFFFFF > 0. Is there a wee trick to get it to return the more obvious answear of 0?

hutch--

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php