pokecrystal/home/window.asm

100 lines
1.3 KiB
NASM
Raw Normal View History

ResetWindow:: ; 2dba
2013-09-19 01:40:48 +00:00
call ResetTextRelatedRAM
2013-09-19 01:40:48 +00:00
ld a, [hROMBank]
push af
ld a, BANK(Function6454) ; and BANK(Function64bf)
rst Bankswitch
call Function6454
call Function2e20
call Function64bf
pop af
rst Bankswitch
ret
; 2dcf
2015-10-24 14:34:19 +00:00
LoadMoveSprites:: ; 2dcf
2013-09-19 01:40:48 +00:00
ld a, [hOAMUpdate]
push af
ld a, $1
ld [hOAMUpdate], a
2015-10-24 14:34:19 +00:00
2013-09-19 01:40:48 +00:00
call Function2de2
2015-10-24 14:34:19 +00:00
2013-09-19 01:40:48 +00:00
pop af
ld [hOAMUpdate], a
ld hl, VramState
res 6, [hl]
ret
; 2de2
Function2de2:: ; 2de2
call ResetTextRelatedRAM
2013-09-19 01:40:48 +00:00
xor a
ld [hBGMapMode], a
2015-11-11 19:12:46 +00:00
call OverworldTextModeSwitch
2013-09-19 01:40:48 +00:00
call Function2e20
xor a
ld [hBGMapMode], a
call Function2e31
ld a, $90
ld [hWY], a
2015-11-04 21:14:27 +00:00
call ReplaceKrisSprite
callba ReturnFromMapSetupScript
2013-09-19 01:40:48 +00:00
callba Function106594
ret
; 2e08
LoadFont:: ; 2e08
call ResetTextRelatedRAM
2013-09-19 01:40:48 +00:00
ld a, [hROMBank]
push af
ld a, BANK(Function6454) ; and BANK(Function64bf)
rst Bankswitch
call Function6454
call SpeechTextBox
call Function2e20
call Function64bf
pop af
rst Bankswitch
ret
; 2e20
Function2e20:: ; 2e20
2013-09-19 01:40:48 +00:00
ld a, [hOAMUpdate]
push af
ld a, $1
ld [hOAMUpdate], a
2013-09-19 01:40:48 +00:00
callba Function104110
2013-09-19 01:40:48 +00:00
pop af
ld [hOAMUpdate], a
ret
; 2e31
Function2e31:: ; 2e31
2013-09-19 01:40:48 +00:00
ld a, [hOAMUpdate]
push af
ld a, [hBGMapMode]
push af
xor a
ld [hBGMapMode], a
ld a, $1
ld [hOAMUpdate], a
call UpdateSprites
2013-09-19 01:40:48 +00:00
xor a
ld [hOAMUpdate], a
call DelayFrame
pop af
ld [hBGMapMode], a
pop af
ld [hOAMUpdate], a
ret
; 2e4e