flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > if not defined set value in macro. How do this ? |
Author |
|
revolution 24 Dec 2020, 00:22
Mixing preprocessor and assembler stages is causing you trouble.
Replace equ with =. equ: preprocessor stage defined: assembler stage |
|||
24 Dec 2020, 00:22 |
|
Roman 24 Dec 2020, 06:30
I replace all EQU on = and work.
Thanks. |
|||
24 Dec 2020, 06:30 |
|
Roman 24 Dec 2020, 06:32
Another question how do this ?
Code: macro some { } some Val,4 ;this generate Val._1 then Val._2 then Val._3 then Val._4 some Val2,7 some Val3,2 some Val4,5 some Val5,12 Get this: Code: mov [Val._1],1.0 ;its mean Val+0 mov [Val._2],2.0 ;its mean Val+4 mov [Val._3],3.0 ;its mean Val+8 mov [Val._4],4.0 ;its mean Val+12 I know about struct but in this case i must writed a lot structs. This is not handful and not convenient. |
|||
24 Dec 2020, 06:32 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.