mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-28 05:47:48 +00:00
Implement unionized sections in RGBLINK
This commit is contained in:
18
test/link/section-union/b.asm
Normal file
18
test/link/section-union/b.asm
Normal file
@@ -0,0 +1,18 @@
|
||||
SECTION UNION "a", WRAM0
|
||||
a1: ; This is here to check that the two `a1` don't conflict
|
||||
ds 42
|
||||
a2::
|
||||
|
||||
SECTION UNION "b", WRAMX[$DAB0]
|
||||
ds 2
|
||||
b2::
|
||||
|
||||
SECTION UNION "c", HRAM[$FFC0]
|
||||
b1: ; Same but in different sections now
|
||||
ds 5
|
||||
c2::
|
||||
|
||||
SECTION "output 2", ROM0
|
||||
dw a1,a2
|
||||
dw b1,b2
|
||||
dw c1,c2
|
||||
Reference in New Issue
Block a user