pokepinball/engine/pinball_game/billboard_tiledata.asm
Raymond Dodge d1f4c7fab7 Use labels instead of constants for HRAM
Use explicit ldh instruction to access HRAM locations, don't rely on optimizing ld
2024-03-17 09:27:05 -05:00

30 lines
538 B
NASM

LoadMapBillboardTileData: ; 0x30253
ld a, [wCurrentMap]
; fall through
LoadBillboardTileData: ; 0x30256
sla a
ld c, a
ld b, $0
push bc
ld hl, BillboardTileDataPointers
add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a
ld a, Bank(BillboardTileDataPointers)
call QueueGraphicsToLoad
pop bc
ldh a, [hGameBoyColorFlag]
and a
ret z
ld hl, BillboardPaletteDataPointers
add hl, bc
ld a, [hli]
ld h, [hl]
ld l, a
ld a, Bank(BillboardPaletteDataPointers)
call QueueGraphicsToLoad
ret
INCLUDE "data/queued_tiledata/billboard.asm"