flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [SOLVED]auto count in macro ? |
Author |
|
bitRAKE 31 Aug 2024, 22:11
Don't you need to use that trick - to do math in the preprocessing stage?
Code: rept 1 h:_nxt_ \{ _#name\#\h equ eqToData+\h*4 \} _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
31 Aug 2024, 22:11 |
|
revolution 01 Sep 2024, 01:06
The problem is "_nxt_ equ _nxt_+1".
You get _nxt_ with the text "8+1+1+1+1+1". equ doesn't do arithmetic, it only appends +1 each time. Use rept. Code: rept 1 x:_nxt_+1 { _nxt_ equ x } |
|||
01 Sep 2024, 01:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.