flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Initializing a structure with data using EQU |
| Author |
|
|
Tomasz Grysztar 17 Nov 2026, 13:25
MYSTRUCT_INIT isn't evaluated at the time the macro is called, so the macro sees it as a single argument. You'd need to evaluate it manually:
Code: match value, MYSTRUCT_INIT { MyData MYSTRUCT value } |
|||
|
|
FoXx 17 Nov 2026, 13:50
Tomasz, in the first case everything works. My assumption was that the EQU directive would substitute the value, and the compilation process would take place subsequently.
|
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.