flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [Solved]error macro for many args. How Fix ? |
| Author |
|
|
revolution 25 Jul 2026, 18:46
It isn't clear what is the desired goal here, but must is not a valid instruction. Is that the error that fasm outputs?
Code: processed: must '. val = reg or num or [val or reg]' error: illegal instruction. Code: macro @b. [arg] { forward DONE equ xxNO match dst==[src], arg \{ mov al,byte [src] mov byte [dst],al DONE equ xxYES \} match =xxNO dst==src, DONE arg \{ mov byte [dst],src DONE equ xxYES \} match =xxNO, DONE \{ must ". val = reg or num or [val or reg]" \} } ;this fasm ok @b. ShapeDef2.isSensor = 1 ;in code this fasm error @b. ShapeDef2.isSensor = 1,\ ShapeDef2.enableSensorEvents = 1, \ ShapeDef2.enableSensorEvents = [ShapeDef2.isSensor] ShapeDef2.isSensor db ? ShapeDef2.enableSensorEvents db ? |
|||
|
|
Roman 25 Jul 2026, 18:52
Thanks.
|
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.