mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Implement SIZEOF and STARTOF for section types (#1205)
This commit is contained in:
@@ -3,5 +3,14 @@ SECTION "meta", ROM0[0]
|
||||
dw STARTOF("sect")
|
||||
dw SIZEOF("sect")
|
||||
|
||||
MACRO typemeta
|
||||
rept _NARG
|
||||
dw STARTOF(\1), SIZEOF(\1)
|
||||
shift
|
||||
endr
|
||||
ENDM
|
||||
|
||||
typemeta ROM0, ROMX, VRAM, SRAM, WRAM0, WRAMX, OAM, HRAM
|
||||
|
||||
SECTION "sect", ROMX[$4567], BANK[$23]
|
||||
ds 42
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user