Debian Codegraph @

test/same_names.asm

raw
1
2 .TRACE on
3
4 .PROCESSOR 68908
5
6 .MAC ldx ; we cant overwrite any of the processor ops
7 lda {1}
8 .ENDM
9
10 .MAC LDHX ; also not with different case
11 ldx <{1}
12 lda >{1}
13 psha
14 pulh
15 .ENDM
16
17 .MAC M1_postfix7
18 ldhx #1
19 .ENDM
20
21 .MAC M2_postfix7
22 ldx #1
23 clrh
24 .ENDM
25
26 M1_postfix7 .EQU 0xA1 ; symbols can share the same name with macros or processor ops
27 M2_postfix7 .EQU 0xB2
28 LDA .EQU 0xDA
29
30 .MAC M3_postfix7
31 pshh
32 pulx
33 .ENDM
34
35
36 .ORG 0
37
38 ; call to macro1
39 M1_postfix7
40
41 ; call to macro2
42 M2_postfix7
43
44 DC.b M1_postfix7
45 DC.b M2_postfix7
46 DC.b LDA
47
48 lda #0x0a
49 LDA #0x0b
50
51 ; call to macro3
52 M3_postfix7
53
54 ldx #1
55 ldhx #2
56 LDHX #3
57
58 .END
59
60