Move more code out of main.asm

This commit is contained in:
Remy Oukaour
2017-12-16 12:49:43 -05:00
parent aa44ecfc4f
commit 05d49f7d75
4 changed files with 110 additions and 102 deletions

View File

@@ -0,0 +1,30 @@
Mobile_PrintOpponentBattleMessage: ; 4ea0a
ld a, c
push af
call SpeechTextBox
call MobileTextBorder
pop af
dec a
ld bc, $c
ld hl, w5_MobileOpponentBattleMessages
call AddNTimes
ld de, wMobileOpponentBattleMessage
ld bc, $c
ld a, $5 ; BANK(w5_MobileOpponentBattleMessages)
call FarCopyWRAM
ld a, [rSVBK]
push af
ld a, $1
ld [rSVBK], a
ld bc, wMobileOpponentBattleMessage
decoord 1, 14
callba PrintEZChatBattleMessage
pop af
ld [rSVBK], a
ld c, 180
call DelayFrames
ret