flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Match directive and lazy evaluation |
Author |
|
Tomasz Grysztar 23 Jan 2010, 00:22
Note the two samples located at the very bottom of this post: http://board.flatassembler.net/topic.php?p=96490#96490
The REPT's "precalc" ability was implemented in such a way, that it evaluates the value of each symbolic constant it encounters (with recursion) and then uses this value for calculation. As opposed to the classis EQU value replacement, where it's just a plain string replacement without any recursion. Thus it is recommended to use the DEFINE directive with "precalc" - they make a good pair. |
|||
23 Jan 2010, 00:22 |
|
baldr 23 Jan 2010, 02:37
Tomasz Grysztar,
It was my backward equs order that caused the confusion. That v_display macro use match itself and displays value after one replacement, and rept in equ! got it before. |
|||
23 Jan 2010, 02:37 |
|
Tomasz Grysztar 23 Jan 2010, 09:34
Then try with backward DEFINEs and "equ!" macro.
|
|||
23 Jan 2010, 09:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.