flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Macro redefine Val ? |
Author |
|
Roman 10 Dec 2023, 12:42
I try this:
Code: macro af val,mem { define val2 val if val eqtype [0] mov eax,val define val2 eax end if mov [mem],val2 } ;in code hero dd 0 af 20.0,hero ;i get: mov [hero],eax but must be mov [hero],20.0 af [hero],hero ;this ok. mov eax,[hero] mov [hero],eax |
|||
10 Dec 2023, 12:42 |
|
Roman 10 Dec 2023, 13:02
This work fine
Code: macro af val,mem { if val eqtype [0] mov eax,val mov [mem] ,eax end if if val eqtype 0.0 mov [mem],val end if } |
|||
10 Dec 2023, 13:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.