Implement SIZEOF and STARTOF for section types (#1205)

This commit is contained in:
Rangi
2023-11-03 03:50:04 -04:00
committed by GitHub
parent 8f3369fe29
commit c869edd1d2
9 changed files with 93 additions and 10 deletions

View File

@@ -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.