aboutsummaryrefslogtreecommitdiffstats
path: root/home.asm
diff options
context:
space:
mode:
authorluckytyphlosion <alan.rj.huang@gmail.com>2015-06-07 14:36:55 -0400
committerluckytyphlosion <alan.rj.huang@gmail.com>2015-06-07 14:36:55 -0400
commit51c3bd8b762c7c7412b44472f7dd4aac2cc11ef7 (patch)
tree2d6066a2bc993d95ba6e50dca1209692c3ace142 /home.asm
parentMore bank3f code. (diff)
downloadpokeyellow-51c3bd8b762c7c7412b44472f7dd4aac2cc11ef7.tar.gz
pokeyellow-51c3bd8b762c7c7412b44472f7dd4aac2cc11ef7.tar.xz
pokeyellow-51c3bd8b762c7c7412b44472f7dd4aac2cc11ef7.zip
Fixed many homebank functions.
Func_159b, fade.asm, init.asm, lcdc.asm, play_time.asm, serial.asm, text.asm. Added some wram/hram addresses too.
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm15
1 files changed, 13 insertions, 2 deletions
diff --git a/home.asm b/home.asm
index f5ce00dc..81d4bf8a 100644
--- a/home.asm
+++ b/home.asm
@@ -1078,8 +1078,19 @@ Func_157c:: ; 157c (0:157c)
pop bc
pop hl
ret
-
-INCLUDE "data/collision.asm"
+
+Func_159b:: ; 159b (0:159b)
+ ld a,[H_LOADEDROMBANK]
+ ld b,a
+ push af
+ callsb Func_fd2a1
+ pop af
+ call BankswitchCommon
+ ret
+
+;INCLUDE "data/collision.asm"
+
+INCLUDE "home/lcdc.asm"
IsTilePassable:: ; 15c3 (0:15c3)
; sets carry if tile is passable, resets carry otherwise