flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Replacing a part of value |
Author |
|
Jin X 28 Feb 2021, 19:09
I wrapped everything in 'match' and got what I want
|
|||
28 Feb 2021, 19:09 |
|
Jin X 28 Feb 2021, 19:15
But if I want to make universal macro?
Code: define val mov ax,[reg+si] macro replace_and_use x, y, val& { local result, is_set result equ match val, val \{ irps v, val \\{ is_set equ 0 match =y, v \\\{ result equ result x is_set equ 1 \\\} match =0, is_set \\\{ result equ result v \\\} \\} \} result } replace_and_use reg, bx, val Of course, match =y, v doesn't work. How can I compare 2 symbol values? |
|||
28 Feb 2021, 19:15 |
|
Jin X 04 Mar 2021, 20:39
Why "solved"? The last question is not solved... :-/
|
|||
04 Mar 2021, 20:39 |
|
revolution 05 Mar 2021, 02:51
I think it was a cross post. I saw your message saying you got what you wanted and I guess you posted the follow-up question at the same time as I marked it solved.
You can change the title at any time by editing your first post. So if a mod makes a mistake you can fix it. |
|||
05 Mar 2021, 02:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.