flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > About irps reg,reglist {reverse pop reg} |
Author |
|
LocoDelAssembly 07 Feb 2010, 00:35
hopcode, no, not a bug.
Check the difference between: Code: irps reg,reglist {forward display `reg, 13 ,10} display "-------", 13, 10 nop irps reg,reglist {reverse display `reg, 13 ,10} Code: match reglist, reglist{ irps reg,reglist \{forward display \`reg, 13 ,10\} display "-------", 13, 10 nop irps reg,reglist \{reverse display \`reg, 13 ,10\} } Your first "irps reg, reglist" gave you the illusion that it was working because PUSH and POP supports an arbitrary number of parameters (not separated by commas), and are always processed in forward order. |
|||
07 Feb 2010, 00:35 |
|
hopcode 07 Feb 2010, 01:19
Oh, yes, lot of thanks.
That is a very subtle difference! To try an explanation: un-wrap/extract with a match the single elements contained under the symbol "reglist" and give them, as they are positioned, to the irps directive. corrected to Code: define reglist rax rbx rdi rsi match reglist, reglist{ irps reg,reglist \{forward push reg \} irps reg,reglist \{reverse pop reg \} } Cheers, hopcode (moderator can freely move the tread if needed) btw: i needed it for this thread where i will post a reply in 10 minutes http://board.flatassembler.net/topic.php?p=109427#109427 |
|||
07 Feb 2010, 01:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.