mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
40902ffe24
This was discussed in #706 It also uncovered some off-by-one issues with defining some constants. A few structs now use rsreset/_RS to define their offset constants, as discussed in #739
19 lines
275 B
NASM
19 lines
275 B
NASM
LoadMapGroupRoof::
|
|
ld a, [wMapGroup]
|
|
ld e, a
|
|
ld d, 0
|
|
ld hl, MapGroupRoofs
|
|
add hl, de
|
|
ld a, [hl]
|
|
cp -1
|
|
ret z
|
|
ld hl, Roofs
|
|
ld bc, ROOF_LENGTH tiles
|
|
call AddNTimes
|
|
ld de, vTiles2 tile $0a
|
|
ld bc, ROOF_LENGTH tiles
|
|
call CopyBytes
|
|
ret
|
|
|
|
INCLUDE "data/maps/roofs.asm"
|