summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-12-11 17:23:33 -0500
committeryenatch <yenatch@gmail.com>2013-12-11 17:23:33 -0500
commitd461689704c05c878ef094e34dd7b6fd6fb4b445 (patch)
treed7f3f9547357efef675ec6b45ce236cc4aa48902
parent62020e32aa0d134f398d8c96946c3af3f4dc0fac (diff)
downloadpokecrystal-d461689704c05c878ef094e34dd7b6fd6fb4b445.tar.gz
pokecrystal-d461689704c05c878ef094e34dd7b6fd6fb4b445.zip
LoadTilesetHeader
-rw-r--r--home/map.asm14
-rw-r--r--main.asm2
2 files changed, 10 insertions, 6 deletions
diff --git a/home/map.asm b/home/map.asm
index 8c6440e8..8b0dbea7 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 10ef4e57..43b7e8d9 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