mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
move window asm into home/window.asm
This commit is contained in:
parent
5a4e4bdb41
commit
c074231a07
96
home/window.asm
Normal file
96
home/window.asm
Normal file
@ -0,0 +1,96 @@
|
||||
ResetWindow: ; 2dba
|
||||
|
||||
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
|
||||
|
||||
|
||||
Function2dcf: ; 2dcf
|
||||
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
|
||||
|
||||
Function2de2: ; 2de2
|
||||
call Function1fbf
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call Function2173
|
||||
call Function2e20
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call Function2e31
|
||||
ld a, $90
|
||||
ld [hWY], a
|
||||
call Functione4a
|
||||
callba Functionb8000
|
||||
callba Function106594
|
||||
ret
|
||||
; 2e08
|
||||
|
||||
Function2e08: ; 2e08
|
||||
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
|
||||
|
||||
Function2e20: ; 2e20
|
||||
ld a, [hOAMUpdate]
|
||||
push af
|
||||
ld a, $1
|
||||
ld [hOAMUpdate], a
|
||||
callba Function104110
|
||||
pop af
|
||||
ld [hOAMUpdate], a
|
||||
ret
|
||||
; 2e31
|
||||
|
||||
Function2e31: ; 2e31
|
||||
ld a, [hOAMUpdate]
|
||||
push af
|
||||
ld a, [hBGMapMode]
|
||||
push af
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
ld a, $1
|
||||
ld [hOAMUpdate], a
|
||||
call Function1ad2
|
||||
xor a
|
||||
ld [hOAMUpdate], a
|
||||
call DelayFrame
|
||||
pop af
|
||||
ld [hBGMapMode], a
|
||||
pop af
|
||||
ld [hOAMUpdate], a
|
||||
ret
|
||||
; 2e4e
|
||||
|
97
main.asm
97
main.asm
@ -504,104 +504,9 @@ Function2d43: ; 2d43
|
||||
|
||||
INCLUDE "home/farcall.asm"
|
||||
INCLUDE "home/predef.asm"
|
||||
INCLUDE "home/window.asm"
|
||||
|
||||
|
||||
ResetWindow: ; 2dba
|
||||
|
||||
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
|
||||
|
||||
|
||||
Function2dcf: ; 2dcf
|
||||
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
|
||||
|
||||
Function2de2: ; 2de2
|
||||
call Function1fbf
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call Function2173
|
||||
call Function2e20
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call Function2e31
|
||||
ld a, $90
|
||||
ld [hWY], a
|
||||
call Functione4a
|
||||
callba Functionb8000
|
||||
callba Function106594
|
||||
ret
|
||||
; 2e08
|
||||
|
||||
Function2e08: ; 2e08
|
||||
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
|
||||
|
||||
Function2e20: ; 2e20
|
||||
ld a, [hOAMUpdate]
|
||||
push af
|
||||
ld a, $1
|
||||
ld [hOAMUpdate], a
|
||||
callba Function104110
|
||||
pop af
|
||||
ld [hOAMUpdate], a
|
||||
ret
|
||||
; 2e31
|
||||
|
||||
Function2e31: ; 2e31
|
||||
ld a, [hOAMUpdate]
|
||||
push af
|
||||
ld a, [hBGMapMode]
|
||||
push af
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
ld a, $1
|
||||
ld [hOAMUpdate], a
|
||||
call Function1ad2
|
||||
xor a
|
||||
ld [hOAMUpdate], a
|
||||
call DelayFrame
|
||||
pop af
|
||||
ld [hBGMapMode], a
|
||||
pop af
|
||||
ld [hOAMUpdate], a
|
||||
ret
|
||||
; 2e4e
|
||||
|
||||
Function2e4e: ; 2e4e
|
||||
scf
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user