2014-02-01 17:26:39 -08:00
|
|
|
ResetWindow:: ; 2dba
|
2013-09-18 18:40:48 -07:00
|
|
|
|
|
|
|
call Function1fbf
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2014-02-01 17:26:39 -08:00
|
|
|
Function2dcf:: ; 2dcf
|
2013-09-18 18:40:48 -07:00
|
|
|
ld a, [hOAMUpdate]
|
|
|
|
push af
|
|
|
|
ld a, $1
|
|
|
|
ld [hOAMUpdate], a
|
|
|
|
call Function2de2
|
|
|
|
pop af
|
|
|
|
ld [hOAMUpdate], a
|
|
|
|
ld hl, VramState
|
|
|
|
res 6, [hl]
|
|
|
|
ret
|
|
|
|
; 2de2
|
|
|
|
|
2014-02-01 17:26:39 -08:00
|
|
|
Function2de2:: ; 2de2
|
2013-09-18 18:40:48 -07:00
|
|
|
call Function1fbf
|
|
|
|
xor a
|
|
|
|
ld [hBGMapMode], a
|
|
|
|
call Function2173
|
|
|
|
call Function2e20
|
|
|
|
xor a
|
|
|
|
ld [hBGMapMode], a
|
|
|
|
call Function2e31
|
|
|
|
ld a, $90
|
|
|
|
ld [hWY], a
|
2015-07-20 15:59:26 -07:00
|
|
|
call Special_ReplaceKrisSprite
|
2015-07-20 00:51:52 -07:00
|
|
|
callba ReturnFromMapSetupScript
|
2013-09-18 18:40:48 -07:00
|
|
|
callba Function106594
|
|
|
|
ret
|
|
|
|
; 2e08
|
|
|
|
|
2014-02-01 17:26:39 -08:00
|
|
|
Function2e08:: ; 2e08
|
2013-09-18 18:40:48 -07:00
|
|
|
call Function1fbf
|
|
|
|
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
|
|
|
|
|
2014-02-01 17:26:39 -08:00
|
|
|
Function2e20:: ; 2e20
|
2013-09-18 18:40:48 -07:00
|
|
|
ld a, [hOAMUpdate]
|
|
|
|
push af
|
|
|
|
ld a, $1
|
|
|
|
ld [hOAMUpdate], a
|
|
|
|
callba Function104110
|
|
|
|
pop af
|
|
|
|
ld [hOAMUpdate], a
|
|
|
|
ret
|
|
|
|
; 2e31
|
|
|
|
|
2014-02-01 17:26:39 -08:00
|
|
|
Function2e31:: ; 2e31
|
2013-09-18 18:40:48 -07:00
|
|
|
ld a, [hOAMUpdate]
|
|
|
|
push af
|
|
|
|
ld a, [hBGMapMode]
|
|
|
|
push af
|
|
|
|
xor a
|
|
|
|
ld [hBGMapMode], a
|
|
|
|
ld a, $1
|
|
|
|
ld [hOAMUpdate], a
|
2015-07-15 12:48:44 -07:00
|
|
|
call DrawOnMap
|
2013-09-18 18:40:48 -07:00
|
|
|
xor a
|
|
|
|
ld [hOAMUpdate], a
|
|
|
|
call DelayFrame
|
|
|
|
pop af
|
|
|
|
ld [hBGMapMode], a
|
|
|
|
pop af
|
|
|
|
ld [hOAMUpdate], a
|
|
|
|
ret
|
|
|
|
; 2e4e
|