Fix SECTION UNION alignment depending on piece order

This commit is contained in:
Rangi
2026-01-06 17:53:47 -05:00
committed by Rangi
parent 92bfe5d930
commit a91d26192d
6 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
SECTION "ROM", ROM0
LOAD UNION "U", WRAM0
ds 1
ENDL

View 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::

Binary file not shown.

View File

@@ -0,0 +1,5 @@
WRAM0
align 8
"R1"
"U"
"R2"