flat assembler
Message board for the users of flat assembler.
Index
> Linux > How does "common" work in macro? |
Author |
|
ntos 07 Jul 2023, 22:17
Hi,
Here is some code I copied from https://gpfault.net/posts/asm-tut-1.txt.html Code: macro foo a, [b, c] { common ; we'll explain what "common" means later db a, b db a, c } foo 0, 1, 2, 3, 4 This is equivalent to: Code: db 0, 1, 3 db 0, 2, 4 Can you explain how foo 0,1,2,3,4 could become db 0,1,3? I think it must be db 0,1 and db 0, 2. Thank you very much. |
|||
07 Jul 2023, 22:17 |
|
ntos 08 Jul 2023, 04:54
Thank you very much for your clear answer. The fasm manual must be updated with this answer.
|
|||
08 Jul 2023, 04:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.