News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Hll .If Jle Jump if less or equal

Started by ragdog, May 02, 2015, 08:44:55 PM

Previous topic - Next topic

ragdog

Hello all

how can in HLL ( like .if ) a JLE be coded i tried  .if (SIGN? != OVERFLOW?) || ZERO?
but on compiling i keep getting error "error A2154: syntax error in control-flow directive"

Any idea?

Greets,

dedndave

.if SDWORD PTR eax<=dwSomeVar

or

.if SDWORD PTR eax=-5


it may also be SBYTE or SWORD
once an SDWORD PTR is used, all compares in that .if/.else/.endif construct are assumed to be signed

ragdog