flat assembler
Message board for the users of flat assembler.
![]() |
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. |
|||
![]() |
|
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. |
|||
![]() |
|
Tomasz Grysztar 23 Jan 2010, 09:34
Then try with backward DEFINEs and "equ!" macro.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.