Discussion:
how to show the assembly content after being expanded by .marco
yoma sophian
2018-10-18 09:52:54 UTC
Permalink
hi all:
Is there any assembler option can let me see the final assembly
content that being expanded by .marco?

thanks for ur kind help in advance.
Nick Clifton
2018-11-06 15:26:35 UTC
Permalink
Hi yoma,
Post by yoma sophian
Is there any assembler option can let me see the final assembly
content that being expanded by .marco?
The listing options are probably what you want. For example:

% cat foo.s
.macro foo arg
.word \arg
.endm

foo 1
foo 2

% as -alm foo.s
[...]
1 .macro foo arg
2 .word \arg
3 .endm
4
5 foo 1
5 0000 0100 > .word 1
6 foo 2
6 0002 0200 > .word 2

Cheers
Nick

Continue reading on narkive:
Loading...