pokecrystal/engine/tilesets/mapgroup_roofs.asm

21 lines
272 B
NASM
Raw Normal View History

LoadMapGroupRoof:: ; 1c000
2018-01-23 22:39:09 +00:00
ld a, [wMapGroup]
ld e, a
ld d, 0
ld hl, MapGroupRoofs
add hl, de
ld a, [hl]
2018-01-10 07:38:45 +00:00
cp -1
ret z
ld hl, Roofs
2018-01-10 07:38:45 +00:00
ld bc, 9 tiles
call AddNTimes
2017-12-28 12:32:33 +00:00
ld de, vTiles2 tile $0a
2018-01-10 07:38:45 +00:00
ld bc, 9 tiles
call CopyBytes
ret
; 1c021
INCLUDE "data/maps/roofs.asm"