flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > [solved]macro how get next equ register ? |
Author |
|
revolution 14 Dec 2023, 10:02
Code: _forNxtEq = Another problem is this "_forNxtEq equ _forNxtEq+1". The preprocessor doesn't compute results with equ, all it does is keep appending "+1" to the end. Try with rept instead. |
|||
14 Dec 2023, 10:02 |
|
revolution 14 Dec 2023, 10:15
To illustrate the effect of using + with equ, see this:
Code: a equ 1 a equ a+1 a equ a+1 a equ a+1 a equ a+1 a equ a+1 match A,a { irps x,A \{ display \`x \} } Code: ~ fasm test.asm flat assembler version 1.73.31 (16384 kilobytes memory) 1+1+1+1+1+1 1 passes, 0 bytes. |
|||
14 Dec 2023, 10:15 |
|
Roman 14 Dec 2023, 10:16
Thanks.
Rept help me. |
|||
14 Dec 2023, 10:16 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.