pokecrystal-board/vram.asm
Rangi efd1006917
Use {interpolation} to generate sequences of RAM labels
This makes the table_width/assert_table_length usages unnecessary, and also keeps the labels automatically up to date if the length constants change.
2021-04-27 12:11:39 -04:00

17 lines
354 B
NASM

SECTION "VRAM0", VRAM
vTiles0:: ds $80 tiles
vTiles1:: ds $80 tiles
vTiles2:: ds $80 tiles
vBGMap0:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
vBGMap1:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
SECTION "VRAM1", VRAM
vTiles3:: ds $80 tiles
vTiles4:: ds $80 tiles
vTiles5:: ds $80 tiles
vBGMap2:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
vBGMap3:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT