flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
typedef
Wouldn't it be the same as the opposite of else? I think you can resolve it to a continuation of the .if statement.
Code: macro .then [_cmd] { if ~defined .if error 'then without if' else ; this is where you resolve it _cmd endif } Not an expert in this field. Just a suggestion |
|||
![]() |
|
revolution
You can't process two macros on the same line. You would have to modify the .if macro to recognise .then and act accordingly.
Note that inline macros are possibly going to be in fasm2 |
|||
![]() |
|
bitRAKE
Here is one way (quick hack):
Code: macro .if [arg] { common __IF equ local ..endif __ENDIF equ ..endif local ..else __ELSE equ ..else __THEN equ match A =.then B,arg \{ JNCOND __ELSE,A B .endif restore __THEN __THEN equ , \} match ,__THEN \{ JNCOND __ELSE,arg \} restore __THEN } |
|||
![]() |
|
madmatt
bitRAKE wrote: Here is one way (quick hack): That worked great. Wish I knew macro programming this good. "BTW, thanks for making your work public" No problem, always will be free and public. _________________ Gimme a sledge hammer! I'LL FIX IT! |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.