mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-01 23:37:48 +00:00
Allow specifying offset in addition to alignment
This commit is contained in:
@@ -11,6 +11,11 @@ SECTION UNION "c", HRAM[$FFC0]
|
||||
ds 5
|
||||
c1::
|
||||
|
||||
SECTION UNION "d", SRAM,ALIGN[8,$BA]
|
||||
d1::
|
||||
|
||||
SECTION UNION "e", SRAM[$BABE]
|
||||
|
||||
|
||||
SECTION "output 1", ROM0
|
||||
dw a1,a2 ; $C00A, $C02A
|
||||
@@ -19,3 +24,4 @@ SECTION "output 1", ROM0
|
||||
|
||||
SECTION "output 3", ROM0
|
||||
db BANK(banked)
|
||||
dw d1,d2 ; $ABBA, $BBBA
|
||||
|
||||
@@ -12,6 +12,13 @@ b1: ; Same but in different sections now
|
||||
ds 5
|
||||
c2::
|
||||
|
||||
SECTION UNION "d", SRAM,ALIGN[12,$BBA]
|
||||
ds $1000
|
||||
d2::
|
||||
|
||||
SECTION UNION "e", SRAM,ALIGN[8,$BE]
|
||||
|
||||
|
||||
SECTION "output 2", ROM0
|
||||
dw a1,a2
|
||||
dw b1,b2
|
||||
|
||||
Reference in New Issue
Block a user