diff --git a/home/map.asm b/home/map.asm index 8c6440e88..8b0dbea74 100644 --- a/home/map.asm +++ b/home/map.asm @@ -2335,17 +2335,21 @@ Function2d19: ; 2d19 ret ; 2d27 -Function2d27: ; 2d27 +LoadTilesetHeader: ; 2d27 push hl push bc - ld hl, $5596 - ld bc, $000f + + ld hl, Tilesets + ld bc, Tileset01 - Tileset00 ld a, [$d199] call AddNTimes + ld de, TilesetBank - ld bc, $000f - ld a, $13 + ld bc, Tileset01 - Tileset00 + + ld a, BANK(Tilesets) call FarCopyBytes + pop bc pop hl ret diff --git a/main.asm b/main.asm index 10ef4e573..43b7e8d92 100644 --- a/main.asm +++ b/main.asm @@ -106732,7 +106732,7 @@ Function1047b4: ; 1047b4 (41:47b4) ld a, $0 ld [rVBK], a ; $ff00+$4f ret - call Function2d27 + call LoadTilesetHeader call Function2821 xor a ld [$FF00+$de], a