flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > how work if in macro ? |
Author |
|
revolution 24 Jun 2022, 11:50
You can quote it:
Code: macro up x { if `x eq '-' display 'skip me',10 else display 'use me',10 end if } up a up - |
|||
24 Jun 2022, 11:50 |
|
Roman 24 Jun 2022, 11:54
Thanks.
How i said, hard understood logic if in macro. allways magic |
|||
24 Jun 2022, 11:54 |
|
Roman 25 Jun 2022, 10:26
This construction working?
Code: macro up x { if `x eq '-' display 'skip me',10 If `x eq '&' display 'next', 10 else display 'use me',10 end if } |
|||
25 Jun 2022, 10:26 |
|
macomics 25 Jun 2022, 11:08
Code: format binary as 'txt' macro up x { if `x eq '-' display 'skip me',10 else if `x eq '&' display 'next', 10 else display 'use me',10 end if } up a up - up & up b fasm1 wrote: fasm -m 1024 ./test.asm Code: format binary as 'txt' macro up [x] { reverse if `x eq '-' display 'skip me',10 else if `x eq '&' display 'next', 10 else display 'use me',10 end if } up a, -, &, b fasm1 wrote: fasm -m 1024 ./test.asm |
|||
25 Jun 2022, 11:08 |
|
Roman 25 Jun 2022, 13:26
Thanks work fine.
|
|||
25 Jun 2022, 13:26 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.