diff options
| author | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-08-09 17:25:00 -0400 | 
|---|---|---|
| committer | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-08-09 17:25:00 -0400 | 
| commit | b2002fdf4abee435a879522980425913c51dc9e5 (patch) | |
| tree | 3f7ec06a669cd18104a9fee8045244979c6a96d5 | |
| parent | aaae80f88f73ef9cf3d3b1a697b609cb2cc91c5c (diff) | |
Fix all of bank0 related errors.
| -rw-r--r-- | home.asm | 26 | ||||
| -rw-r--r-- | home/pic.asm | 1 | 
2 files changed, 15 insertions, 12 deletions
| @@ -1225,9 +1225,7 @@ Func_27c2:: ; 27c2 (0:27c2)  	ld b, a  	xor a  	ld [wMusicHeaderPointer], a -	ld a, $ff -	ld [wc0ee], a -	call PlaySound +	call StopAllMusic  	ld a, [wc0f0]  	ld [wc0ef], a  	ld a, b @@ -1468,7 +1466,7 @@ RepelWoreOffText:: ; 29c1 (0:29c1)  DisplayUnknownText_29c6:: ; 29c6 (0:29c6)  	callab Func_fd004 ; 3f:5004 -	jp AfterDisplayingTextID +	jp CloseTextDisplay  INCLUDE "engine/menu/start_menu.asm" @@ -1552,7 +1550,7 @@ DisplayListMenuID:: ; 2ae0 (0:2ae0)  	ld a,$01 ; hardcoded bank  	jr .bankswitch  .specialBattleType ; Old Man battle -	ld a, $1 ; BANK(DisplayBattleMenu) +	ld a, $f ; BANK(DisplayBattleMenu)  .bankswitch  	call BankswitchHome  	ld hl,wd730 @@ -1608,7 +1606,7 @@ DisplayListMenuIDLoop:: ; 2b4d (0:2b4d)  .oldManBattle  	ld a,"▶"  	Coorda 5, 4 ; place menu cursor in front of first menu entry -	ld c,80 +	ld c,20  	call DelayFrames  	xor a  	ld [wCurrentMenuItem],a @@ -1870,8 +1868,7 @@ ExitListMenu:: ; 2d33 (0:2d33)  PrintListMenuEntries:: ; 2d52 (0:2d52)  	coord hl, 5, 3 -	ld b,$09 -	ld c,$0e +	ld bc,$090e  	call ClearScreenArea  	ld a,[wList]  	ld e,a @@ -2576,7 +2573,7 @@ TalkToTrainer:: ; 3168 (0:3168)  	call ReadTrainerHeaderInfo     ; print after battle text  	jp PrintText  .trainerNotYetFought ; 0x31ed -	ld a, $4 +	ld a, $1  	call ReadTrainerHeaderInfo     ; print before battle text  	call PrintText  	ld a, $a @@ -3274,7 +3271,7 @@ IsFightingJessieJames:: ; 359e (0:359e)  	cp $2a  	ret c  	ld de,JessieJamesPic -	cp $2d +	cp $2e  	jr c,.dummy  	ld de,JessieJamesPic ; possibly meant to add another pic  .dummy @@ -3551,6 +3548,7 @@ WaitForSoundToFinish:: ; 373e (0:373e)  	inc hl  	inc hl  	or [hl] +	and a  	jr nz, .asm_374f  	pop hl  	ret @@ -3769,7 +3767,11 @@ WaitForTextScrollButtonPress:: ; 3865 (0:3865)  	ld a, [wTownMapSpriteBlinkingEnabled]  	and a  	jr z, .skipAnimation +	push de +	push bc  	callab TownMapSpriteBlinkingAnimation ; 1c:5753 +	pop de +	pop bc   .skipAnimation  	coord hl, 18, 16  	call HandleDownArrowBlinkTiming @@ -4244,7 +4246,7 @@ HandleMenuInputPokemonSelection:: ; 3aaf (0:3aaf)  	ld a,[hJoy5]  	ld b,a  	bit 0,a ; pressed A key? -	jr z,.checkOtherKeys +	jr nz,.checkOtherKeys  	bit 6,a ; pressed Up key?  	jr z,.checkIfDownPressed  .upPressed @@ -5012,7 +5014,7 @@ SetMapTextPointer:: ; 3f54 (0:3f54)  	ret  TextPredefs:: ; 3f67 (0:3f67) -	dr $3f67,$4000 +	;dr $3f67,$4000  ;	add_tx_pre CardKeySuccessText                   ; 01  ;	add_tx_pre CardKeyFailText                      ; 02  ;	add_tx_pre RedBedroomPC                         ; 03 diff --git a/home/pic.asm b/home/pic.asm index d43da56d..28f27b79 100644 --- a/home/pic.asm +++ b/home/pic.asm @@ -9,6 +9,7 @@ UncompressSpriteData:: ; 23f8 (0:23f8)  	ld a,$0  	call SwitchSRAMBankAndLatchClockData  	call _UncompressSpriteData +	call PrepareRTCDataAndDisableSRAM  	pop af  	call BankswitchCommon  	ret | 
