File tree Expand file tree Collapse file tree 5 files changed +79
-0
lines changed Expand file tree Collapse file tree 5 files changed +79
-0
lines changed Original file line number Diff line number Diff line change
1
+ .nds
2
+ .create "output.bin" , 0
3
+
4
+ .if defined(@@LocalLabel)
5
+ .error "@@LocalLabel should not be accessible here"
6
+ .endif
7
+ .if defined(@StaticLabel)
8
+ .error "@StaticLabel should not be accessible here"
9
+ .endif
10
+
11
+ .importsym "input.sym"
12
+
13
+ .if defined(@@LocalLabel)
14
+ .error "@@LocalLabel should not be accessible here"
15
+ .endif
16
+ .if defined(@StaticLabel)
17
+ .error "@StaticLabel should not be accessible here"
18
+ .endif
19
+
20
+ . dd ValidLabel
21
+ . dd ValidLabelWithSpaces
22
+ . dd ValidLabelWithTabs
23
+ . dd ValidLabelWithSpacesAndTabs
24
+ . dd ValidLabelWithComment
25
+
26
+ ldr r0 , = 0xABCDABCD
27
+ .pool
28
+
29
+ .org 0x12345678
30
+ NewlyAddedLabel1:
31
+
32
+ .definelabel NewlyAddedLabel2 , 0x87654321
33
+
34
+ .skip 4
35
+ @NewlyAddedStaticLabel:
36
+
37
+ .skip 4
38
+ @@NewlyAddedLocalLabel:
39
+
40
+ .close
Original file line number Diff line number Diff line change
1
+ 0 -sym2 output.sym SymFileImport.asm
Original file line number Diff line number Diff line change
1
+ 00000000 0
2
+ 00000000 .dbl:0008
3
+ 00000008 .dbl:0008
4
+ 00000010 .dbl:0008
5
+ 00000018 .dbl:0008
6
+ 00000020 .dbl:0008
7
+ 0000002C .dbl:0004
8
+ 0000002C .pool
9
+ 01100110 ValidLabel
10
+ 11223344 @StaticLabel
11
+ 12345678 NewlyAddedLabel1
12
+ 1234567C @NewlyAddedStaticLabel
13
+ 12345680 @@NewlyAddedLocalLabel
14
+ 23322332 ValidLabelWithSpaces
15
+ 45544554 ValidLabelWithTabs
16
+ 55667788 @StaticLabel
17
+ 67766776 ValidLabelWithSpacesAndTabs
18
+ 87654321 NewlyAddedLabel2
19
+ 89988998 ValidLabelWithComment
20
+ 99AABBCC @@LocalLabel
21
+ DDEEFF00 @@LocalLabel
22
+ FEDCBA98 .pool
23
+
Original file line number Diff line number Diff line change
1
+ ; Line with comment
2
+
3
+ 01100110 ValidLabel
4
+ 23322332 ValidLabelWithSpaces
5
+ 45544554 ValidLabelWithTabs
6
+ 67766776 ValidLabelWithSpacesAndTabs
7
+ 89988998 ValidLabelWithComment ; No$gba does allow this, if there is whitespace before the ;
8
+
9
+ 11223344 @StaticLabel
10
+ 55667788 @StaticLabel
11
+ 99AABBCC @@LocalLabel
12
+ DDEEFF00 @@LocalLabel
13
+
14
+ FEDCBA98 .pool
15
+
You can’t perform that action at this time.
0 commit comments