mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
eb1e3636bb
Use explicit ldh instruction to access HRAM locations, don't rely on optimizing ld
31 lines
488 B
NASM
31 lines
488 B
NASM
Mobile_PrintOpponentBattleMessage:
|
|
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, BANK(w5_MobileOpponentBattleMessages)
|
|
call FarCopyWRAM
|
|
|
|
ldh a, [rSVBK]
|
|
push af
|
|
ld a, $1
|
|
ldh [rSVBK], a
|
|
|
|
ld bc, wMobileOpponentBattleMessage
|
|
decoord 1, 14
|
|
farcall PrintEZChatBattleMessage
|
|
|
|
pop af
|
|
ldh [rSVBK], a
|
|
|
|
ld c, 180
|
|
call DelayFrames
|
|
ret
|