flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > submacro problem |
Author |
|
Tomasz Grysztar 30 May 2006, 08:42
STRUC is just another kind of macro and "M1" here is among the lines emitted by that macro, which are later processed independently. If you need a macro for a structure members, you can do it like:
Code: struc M1 { times 0 . ; Put . in some way here to prevent redefining of main label .W2 Dw ? } struc S1 { .: .W1 Dw ? . M1 } V1 S1 which does the same thing as: Code: macro M1 name { name#.W2 Dw ? } struc S1 { .: .W1 Dw ? M1 . } V1 S1 Look also here: http://board.flatassembler.net/topic.php?p=39105#39105 for some more details on STRUC tricks. |
|||
30 May 2006, 08:42 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.