flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 14 Nov 2010, 13:17
Have you checked the fasm's manual? It contains this example:
Code: macro mov op1,op2 { if op1 in <ds,es,fs,gs,ss> & op2 in <cs,ds,es,fs,gs,ss> push op2 pop op1 else mov op1,op2 end if } Code: macro mov op1,op2 { if op1 eqtype [var] & op2 eqtype [var] push op2 pop op1 else mov op1,op2 end if } Just note that macroinstructions are case-sensitive, while instructions are not. So when you redefine "mov" as macro, "MOV" is still going to be just regular instruction. |
|||
![]() |
|
alorent 14 Nov 2010, 22:35
Thanks a lot Tomasz!!!
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.