diff options
author | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-04-20 08:29:12 -0400 |
---|---|---|
committer | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-04-20 08:29:12 -0400 |
commit | 012089679ffc534c7dec23c896c5e8e870939d90 (patch) | |
tree | 6073cd4268d289ba94291dee56975201a1892dcd /engine/home.asm | |
parent | 67ccd2f483fa8e759726733b20d488fd00e7b653 (diff) |
bank3.asm
Diffstat (limited to 'engine/home.asm')
-rwxr-xr-x | engine/home.asm | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/engine/home.asm b/engine/home.asm index 66e1005..986d95a 100755 --- a/engine/home.asm +++ b/engine/home.asm @@ -2908,7 +2908,37 @@ Func_37a0: ; 37a0 (0:37a0) INCBIN "baserom.gbc",$37a5,$397b - $37a5 Unknown_397b: ; 397b (0:397b) -INCBIN "baserom.gbc",$397b,$3bf5 - $397b +INCBIN "baserom.gbc",$397b,$3aed - $397b + +Func_3aed: ; 3aed (0:7aed) + ld hl, $d413 + ld a, [hli] + ld h, [hl] + ld l, a + ld a, [hli] + ld c, [hl] + inc hl + ld b, [hl] + push bc + rlca + ld c, a + ld b, $0 + ld hl, Unknown_1217b + add hl, bc + ld a, [$ff80] + push af + ld a, BANK(Unknown_1217b) + call BankswitchHome + ld a, [hli] + ld h, [hl] + ld l, a + pop af + call BankswitchHome + pop bc + jp [hl] +; 0x3b11 + +INCBIN "baserom.gbc",$3b11,$3bf5 - $3b11 Func_3bf5: ; 3bf5 (0:3bf5) ld a, [$ff80] |