diff options
| author | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-16 12:49:43 -0500 |
|---|---|---|
| committer | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-16 12:49:43 -0500 |
| commit | 05d49f7d752b03cbccb2fdcca2781a8a5de85425 (patch) | |
| tree | 9b6e329d55c252e16555891fad8f694f97e8e7f7 /mobile | |
| parent | aa44ecfc4ff7e85629825c7068a014794b206463 (diff) | |
Move more code out of main.asm
Diffstat (limited to 'mobile')
| -rw-r--r-- | mobile/print_opp_message.asm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mobile/print_opp_message.asm b/mobile/print_opp_message.asm new file mode 100644 index 000000000..0be18acae --- /dev/null +++ b/mobile/print_opp_message.asm @@ -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 |
