flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > IF.inc checking for bit set condition? |
Author |
|
Reverend 30 May 2006, 15:30
Paste this in your IF.INC file (..\fasm\include\macro\if.inc) in JCOND macro just after the 'common' keyword. This will let you use: '.if eax & 1...' combinations
Code: match =COND v1=&v2, COND cond \{ test v1,v2 je label COND equ \} |
|||
30 May 2006, 15:30 |
|
Glom 31 May 2006, 20:30
Quote: Paste this in your IF.INC file (..\fasm\include\macro\if.inc) in JCOND macro just after the 'common' keyword. Can't seem to find this particular spot.. maybe i havent got same IF.inc as you? Running flat assembler version 1.66 for windows atm.. i've attached my IF.inc so you can have a look. Quote: Unfortuantely, I don't know how does the '|' operator work in MASM. basically it's a bitwise 'or' operation ..as for the code thats generated, im not absolutely sure about
|
|||||||||||
31 May 2006, 20:30 |
|
Tomasz Grysztar 31 May 2006, 21:23
Quote:
Well, maybe that's a matter of taste, but for me this looks really terrible. |
|||
31 May 2006, 21:23 |
|
vid 31 May 2006, 22:18
same here :]
|
|||
31 May 2006, 22:18 |
|
Reverend 01 Jun 2006, 10:43
When I posted it I had older version of fasm installed. Now I see the IF.INC file is somewhat more complicated
|
|||
01 Jun 2006, 10:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.