flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Did Exist equ name like local label? |
Author |
|
Roman 28 Jun 2022, 08:17
I try this but not work.
Code: macro genEq chE,Arrg* { if ~ defined tmp_cntEqss tmp_cntEqss equ 1 end if chE#tmp_cntEqss equ Arrg tmp_cntEqss equ tmp_cntEqss+1 } genEq Ref,Start genEq Ref,Start genEq Ref,Start mov eax,Ref2 ;fasm error undefined symbol Ref2 |
|||
28 Jun 2022, 08:17 |
|
Roman 28 Jun 2022, 08:31
I try this but not work.
Code: macro genEq chE,Arrg& { if ~ defined tmp_cntEqss tmp_cntEqss = 1 end if chE#tmp_cntEqss equ Arrg tmp_cntEqss = tmp_cntEqss+1 display '0'+tmp_cntEqss,10,'\' ;I get 2\3\4\ } genEq Ref,Start genEq Ref,Start genEq Ref,Start mov eax,Ref2 ;fasm error undefined symbol Ref2 mov eax,Reftmp_cntEqss ;ok |
|||
28 Jun 2022, 08:31 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.