News:

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

signed comparisons and high level directives

Started by silk.odyssey, March 21, 2006, 11:32:04 PM

Previous topic - Next topic

silk.odyssey

Is it possibe to perform a signed comparison with masm's high level control structures?

ChrisLeslie

Hi silk.odyssey

Welcome to the forum. :8)
Can you provide an example of code snippet for what and how you are trying to compare,
e.g.
X=?
Y=?
cmp X,Y, or .IF X < Y. ::)

Chris

silk.odyssey

for example:


.if eax < 0
...
.endif



in hla I can cast eax to an int32 type which is signed

if((type int32 eax) < 0 )

endif

maybe masm has something similar.

hutch--

Try using the MASM data type SDWORD PTR. Normally they are not used in mnemonic coding but are useful in the pseudo high level syntax.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

silk.odyssey