Implement LOAD UNION and LOAD FRAGMENT

Fix #632
This commit is contained in:
Rangi
2021-02-14 16:55:19 -05:00
committed by Eldred Habert
parent c67a696a87
commit 76d6ef8695
12 changed files with 76 additions and 9 deletions

View File

@@ -0,0 +1,29 @@
SECTION "A", ROM0
AData::
LOAD FRAGMENT "RAM", WRAM0
AMem::
db 0, 1, 2
AMemEnd::
ENDL
ADataEnd::
dw AMem
SECTION "B", ROM0
BData::
LOAD FRAGMENT "RAM", WRAM0
BMem::
db 3, 4, 5, 6, 7
BMemEnd::
ENDL
BDataEnd::
dw BMem
SECTION "C", ROM0
CData::
LOAD FRAGMENT "RAM", WRAM0
CMem::
db 8, 9
CMemEnd::
ENDL
CDataEnd::
dw CMem

View File

View File

Binary file not shown.

29
test/asm/load-union.asm Normal file
View File

@@ -0,0 +1,29 @@
SECTION "A", ROM0
AData::
LOAD UNION "RAM", WRAM0
AMem::
db 0, 1, 2
AMemEnd::
ENDL
ADataEnd::
dw AMem
SECTION "B", ROM0
BData::
LOAD UNION "RAM", WRAM0
BMem::
db 3, 4, 5, 6, 7
BMemEnd::
ENDL
BDataEnd::
dw BMem
SECTION "C", ROM0
CData::
LOAD UNION "RAM", WRAM0
CMem::
db 8, 9
CMemEnd::
ENDL
CDataEnd::
dw CMem

0
test/asm/load-union.err Normal file
View File

0
test/asm/load-union.out Normal file
View File

BIN
test/asm/load-union.out.bin Normal file

Binary file not shown.