mirror of
https://github.com/gbdev/rgbds.git
synced 2026-01-21 07:51:51 +00:00
Fix SECTION UNION alignment depending on piece order
This commit is contained in:
17
test/link/section-union/compat/b.asm
Normal file
17
test/link/section-union/compat/b.asm
Normal file
@@ -0,0 +1,17 @@
|
||||
SECTION "R1", WRAM0
|
||||
ds $77
|
||||
|
||||
SECTION "R2", WRAM0
|
||||
ds $ef
|
||||
|
||||
SECTION UNION "U", WRAM0
|
||||
ds $52e
|
||||
|
||||
SECTION UNION "U", WRAM0
|
||||
wStart::
|
||||
ds $89
|
||||
assert @ & $FF == 0, "wContent must be 8-bit aligned"
|
||||
align 8
|
||||
wContent::
|
||||
ds $111
|
||||
wEnd::
|
||||
Reference in New Issue
Block a user