flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Basic / Newbie question about irp (+similar irps, irpv) |
Author |
|
revolution 21 Nov 2017, 16:40
IRP doesn't evaluate symbolic equates for the second operand. You can use MATCH to translate:
Code: match x,list { irp item, x \{display item,"-",0Dh, 0Ah \} } |
|||
21 Nov 2017, 16:40 |
|
fabbel 21 Nov 2017, 17:14
Hello
Thx revolution for the quick answer. What about using irps and / or iprv (for me to get idea of situations where one of those may be preferred over the others..) ? |
|||
21 Nov 2017, 17:14 |
|
revolution 21 Nov 2017, 17:34
IRPS is a symbol version of IRP so each symbol is iterated including commas, whereas IRP uses commas as a separator. Try this:
Code: irp x, foo,bar {display `x,13,10} display '------------------------------',13,10 irps x, foo,bar {display `x,13,10} Code: y equ 1 y equ 2 y equ 3 irpv x, y {display `x,13,10} |
|||
21 Nov 2017, 17:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.