flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Reverend 25 May 2006, 17:21
AFAIK, the idea of fasm was not to allow such macros. They can be only used separately (in the way as instructions). So macro cannot be used as operand of other instruction.
|
|||
![]() |
|
vid 25 May 2006, 17:42
|
|||
![]() |
|
LocoDelAssembly 25 May 2006, 20:15
However maybe he can take some ideas from invoke macro which allows to pass as parameter another invoke.
[edit] Maybe you want this? Code: macro mov dest, src { if 1 match =xorcrypt imm =, key, src \{ if imm eqtype 1 | imm eqtype '' mov dest, imm xor key else display "Invalid immediate operand!!" err end if else \} mov dest, src end if } mov edx, <xorcrypt address, -1> ; 66 BA F3 FF FF FF mov edx, address ; 66 BA 0C 00 00 00 address: |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.