flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Is it possible to concat EQU const with label? |
Author |
|
revolution 26 Oct 2015, 03:05
You need to use match to translate EUQs in the preprocessor:
Code: match x,equated_symbol { x#_stuff:} |
|||
26 Oct 2015, 03:05 |
|
Devel99 26 Oct 2015, 03:10
revolution oh thanks dude, checking that
|
|||
26 Oct 2015, 03:10 |
|
Devel99 26 Oct 2015, 04:12
*deleted*
Last edited by Devel99 on 26 Oct 2015, 10:56; edited 1 time in total |
|||
26 Oct 2015, 04:12 |
|
Devel99 26 Oct 2015, 05:45
*SOLVED* I'm happy =)) corrected code looks like this, thanks for help
Code: macro BEGIN_STRUCT structname { structnameinternal EQU structname match x, structname \{ x\#_begin: \} db 1 } macro END_STRUCT { db 2 match x, structnameinternal \{ x\#_end: \} restore structnameinternal } |
|||
26 Oct 2015, 05:45 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.