flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > fasm1 tricks |
Author |
|
Roman 02 Dec 2023, 12:20
I try this.
Code: macro defineback arg { arg#._ equ 0 match =arg,arg \{ define defineback define \} match ,arg \{ define defineback restore display "rest",13,10 arg#._ equ 1 \} ;very interesting match again do macro defineback ! Recursion match define,defineback \{ if arg#._ eq 0 define arg display "init",13,10 ;guQuess_ equ 2 end if \} display arg#._+48,13,10 } ;in code rept 6 { defineback seggg mov eax,seggg._ if seggg._ eq 0 mov ebx,11 end if } Sometimes I need two macros. First macro as parent for second. Code: macrA ;in macrA hiding defineback Some code macrB ;if comment macrA , macrB ignored |
|||
02 Dec 2023, 12:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.