The MASM Forum

General => The Campus => Topic started by: ragdog on May 02, 2015, 08:44:55 PM

Title: Hll .If Jle Jump if less or equal
Post by: ragdog on May 02, 2015, 08:44:55 PM
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,
Title: Re: Hll .If Jle Jump if less or equal
Post by: dedndave on May 02, 2015, 08:59:52 PM
.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
Title: Re: Hll .If Jle Jump if less or equal
Post by: ragdog on May 03, 2015, 04:36:29 AM
Thank you Dave this is what i want