mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
home/copy.asm completely labeled
This commit is contained in:
parent
95cb4636af
commit
7fd20e6322
@ -4949,7 +4949,7 @@ endr
|
|||||||
ld l, a
|
ld l, a
|
||||||
pop de
|
pop de
|
||||||
push bc
|
push bc
|
||||||
call Functione73
|
call DecompressRequest2bpp
|
||||||
pop bc
|
pop bc
|
||||||
ret
|
ret
|
||||||
; ce85e (33:685e)
|
; ce85e (33:685e)
|
||||||
|
@ -9366,7 +9366,7 @@ Function3fb6c: ; 3fb6c
|
|||||||
hlcoord 1, 5
|
hlcoord 1, 5
|
||||||
lb bc, 3, 7
|
lb bc, 3, 7
|
||||||
call ClearBox
|
call ClearBox
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Function3ed9f
|
call Function3ed9f
|
||||||
call Function3fbd6
|
call Function3fbd6
|
||||||
xor a
|
xor a
|
||||||
|
@ -343,7 +343,7 @@ Function154f7: ; 154f7
|
|||||||
jr c, .ok
|
jr c, .ok
|
||||||
ret
|
ret
|
||||||
.ok
|
.ok
|
||||||
call Special_ReplaceKrisSprite
|
call ReplaceKrisSprite
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Function1550c: ; 1550c (5:550c)
|
Function1550c: ; 1550c (5:550c)
|
||||||
|
@ -838,7 +838,7 @@ Function405df: ; 405df (10:45df)
|
|||||||
ld hl, PokedexLZ
|
ld hl, PokedexLZ
|
||||||
ld de, VTiles2 tile $31
|
ld de, VTiles2 tile $31
|
||||||
lb bc, BANK(PokedexLZ), $3a
|
lb bc, BANK(PokedexLZ), $3a
|
||||||
call Functione73
|
call DecompressRequest2bpp
|
||||||
|
|
||||||
.asm_4060f
|
.asm_4060f
|
||||||
ret
|
ret
|
||||||
@ -2487,7 +2487,7 @@ Function414b7: ; 414b7
|
|||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
call Function414fb
|
call Function414fb
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, VTiles2 tile $60
|
||||||
ld bc, $0200
|
ld bc, $0200
|
||||||
call Function41504
|
call Function41504
|
||||||
@ -2511,7 +2511,7 @@ Function414b7: ; 414b7
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
Function414fb: ; 414fb
|
Function414fb: ; 414fb
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
ld hl, VTiles1
|
ld hl, VTiles1
|
||||||
ld bc, $0800
|
ld bc, $0800
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ SpecialsPointers:: ; c029
|
|||||||
add_special UpdateTimePals
|
add_special UpdateTimePals
|
||||||
add_special ClearTileMap
|
add_special ClearTileMap
|
||||||
add_special UpdateSprites
|
add_special UpdateSprites
|
||||||
add_special Special_ReplaceKrisSprite
|
add_special ReplaceKrisSprite
|
||||||
add_special Special_GameCornerPrizeMonCheckDex
|
add_special Special_GameCornerPrizeMonCheckDex
|
||||||
add_special SpecialSeenMon
|
add_special SpecialSeenMon
|
||||||
add_special WaitSFX
|
add_special WaitSFX
|
||||||
|
@ -8,9 +8,9 @@ Get2bpp_2:: ; dc9
|
|||||||
|
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(Function104284)
|
ld a, BANK(_Get2bpp)
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
call Function104284
|
call _Get2bpp
|
||||||
pop af
|
pop af
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
@ -24,9 +24,9 @@ Get1bpp_2:: ; ddc
|
|||||||
|
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(Function1042b2)
|
ld a, BANK(_Get1bpp)
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
call Function1042b2
|
call _Get1bpp
|
||||||
pop af
|
pop af
|
||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ FarCopyBytesDouble_DoubleBankSwitch:: ; def
|
|||||||
ret
|
ret
|
||||||
; dfd
|
; dfd
|
||||||
|
|
||||||
Functiondfd:: ; dfd
|
OldDMATransfer:: ; dfd
|
||||||
dec c
|
dec c
|
||||||
ld a, [hBGMapMode]
|
ld a, [hBGMapMode]
|
||||||
push af
|
push af
|
||||||
@ -59,42 +59,47 @@ Functiondfd:: ; dfd
|
|||||||
rst Bankswitch
|
rst Bankswitch
|
||||||
|
|
||||||
.loop
|
.loop
|
||||||
|
; load the source and target MSB and LSB
|
||||||
ld a, d
|
ld a, d
|
||||||
ld [rHDMA1], a
|
ld [rHDMA1], a ; source MSB
|
||||||
ld a, e
|
ld a, e
|
||||||
and $f0
|
and $f0
|
||||||
ld [rHDMA2], a
|
ld [rHDMA2], a ; source LSB
|
||||||
ld a, h
|
ld a, h
|
||||||
and $1f
|
and $1f
|
||||||
ld [rHDMA3], a
|
ld [rHDMA3], a ; target MSB
|
||||||
ld a, l
|
ld a, l
|
||||||
and $f0
|
and $f0
|
||||||
ld [rHDMA4], a
|
ld [rHDMA4], a ; target LSB
|
||||||
|
; stop when c < 8
|
||||||
ld a, c
|
ld a, c
|
||||||
cp $8
|
cp $8
|
||||||
jr c, .done
|
jr c, .done
|
||||||
|
; decrease c by 8
|
||||||
sub $8
|
sub $8
|
||||||
ld c, a
|
ld c, a
|
||||||
|
; DMA transfer state
|
||||||
ld a, $f
|
ld a, $f
|
||||||
ld [hDMATransfer], a
|
ld [hDMATransfer], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
|
; add $100 to hl and de
|
||||||
ld a, l
|
ld a, l
|
||||||
add 0
|
add $100 % $100
|
||||||
ld l, a
|
ld l, a
|
||||||
ld a, h
|
ld a, h
|
||||||
adc 1
|
adc $100 / $100
|
||||||
ld h, a
|
ld h, a
|
||||||
ld a, e
|
ld a, e
|
||||||
add 0
|
add $100 % $100
|
||||||
ld e, a
|
ld e, a
|
||||||
ld a, d
|
ld a, d
|
||||||
adc 1
|
adc $100 / $100
|
||||||
ld d, a
|
ld d, a
|
||||||
jr .loop
|
jr .loop
|
||||||
|
|
||||||
.done
|
.done
|
||||||
ld a, c
|
ld a, c
|
||||||
and $7f
|
and $7f ; pretty silly, considering at most bits 0-2 would be set
|
||||||
ld [hDMATransfer], a
|
ld [hDMATransfer], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
pop af
|
pop af
|
||||||
@ -107,15 +112,15 @@ Functiondfd:: ; dfd
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Special_ReplaceKrisSprite:: ; e4a
|
ReplaceKrisSprite:: ; e4a
|
||||||
callba Function14135
|
callba _ReplaceKrisSprite
|
||||||
ret
|
ret
|
||||||
; e51
|
; e51
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Functione51:: ; e51
|
LoadStandardFont:: ; e51
|
||||||
callba Functionfb449
|
callba _LoadStandardFont
|
||||||
ret
|
ret
|
||||||
; e58
|
; e58
|
||||||
|
|
||||||
@ -126,27 +131,30 @@ LoadFontsBattleExtra:: ; e58
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Functione5f:: ; e5f
|
LoadFontsExtra:: ; e5f
|
||||||
callba Functionfb48a
|
callba _LoadFontsExtra1
|
||||||
callba Functionfb4b0
|
callba _LoadFontsExtra2
|
||||||
ret
|
ret
|
||||||
; e6c
|
; e6c
|
||||||
|
|
||||||
Functione6c:: ; e6c
|
LoadFontsExtra2:: ; e6c
|
||||||
callba Functionfb4b0
|
callba _LoadFontsExtra2
|
||||||
ret
|
ret
|
||||||
; e73
|
; e73
|
||||||
|
|
||||||
Functione73:: ; e73
|
DecompressRequest2bpp:: ; e73
|
||||||
push de
|
push de
|
||||||
ld a, BANK(sScratch)
|
ld a, BANK(sScratch)
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
push bc
|
push bc
|
||||||
|
|
||||||
ld de, sScratch
|
ld de, sScratch
|
||||||
ld a, b
|
ld a, b
|
||||||
call FarDecompress
|
call FarDecompress
|
||||||
|
|
||||||
pop bc
|
pop bc
|
||||||
pop hl
|
pop hl
|
||||||
|
|
||||||
ld de, sScratch
|
ld de, sScratch
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
|
@ -2022,8 +2022,8 @@ Function2bae:: ; 2bae
|
|||||||
call DisableLCD
|
call DisableLCD
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
callba Function14168
|
callba Function14168
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
ld a, [MapGroup]
|
ld a, [MapGroup]
|
||||||
|
@ -42,7 +42,7 @@ Function2de2:: ; 2de2
|
|||||||
call Function2e31
|
call Function2e31
|
||||||
ld a, $90
|
ld a, $90
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
call Special_ReplaceKrisSprite
|
call ReplaceKrisSprite
|
||||||
callba ReturnFromMapSetupScript
|
callba ReturnFromMapSetupScript
|
||||||
callba Function106594
|
callba Function106594
|
||||||
ret
|
ret
|
||||||
|
@ -607,7 +607,7 @@ endr
|
|||||||
|
|
||||||
call FadeToWhite
|
call FadeToWhite
|
||||||
|
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
|
|
||||||
pop hl
|
pop hl
|
||||||
ld de, StringBuffer1
|
ld de, StringBuffer1
|
||||||
@ -687,7 +687,7 @@ endr
|
|||||||
call PrintText
|
call PrintText
|
||||||
|
|
||||||
call FadeToWhite
|
call FadeToWhite
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
jr .asm_ebe2
|
jr .asm_ebe2
|
||||||
|
|
||||||
.asm_ebd1
|
.asm_ebd1
|
||||||
|
126
main.asm
126
main.asm
@ -109,8 +109,8 @@ Function5b44: ; 5b44
|
|||||||
xor a
|
xor a
|
||||||
ld [$ffde], a
|
ld [$ffde], a
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call ResetTextRelatedRAM
|
call ResetTextRelatedRAM
|
||||||
ret
|
ret
|
||||||
; 5b54
|
; 5b54
|
||||||
@ -582,7 +582,7 @@ Function5e9f: ; 5e9f
|
|||||||
call Function5ebf
|
call Function5ebf
|
||||||
call Function5f1c
|
call Function5f1c
|
||||||
call Function5f40
|
call Function5f40
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
ret
|
ret
|
||||||
; 5eaf
|
; 5eaf
|
||||||
@ -591,7 +591,7 @@ Function5eaf: ; 5eaf
|
|||||||
call Function5ebf
|
call Function5ebf
|
||||||
call Function5f1c
|
call Function5f1c
|
||||||
call Function5f48
|
call Function5f48
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
ret
|
ret
|
||||||
; 5ebf
|
; 5ebf
|
||||||
@ -856,7 +856,7 @@ NamePlayer: ; 0x6074
|
|||||||
call FadeToWhite
|
call FadeToWhite
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
|
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
|
|
||||||
xor a
|
xor a
|
||||||
@ -948,7 +948,7 @@ ShrinkPlayer: ; 610f
|
|||||||
call DelayFrames
|
call DelayFrames
|
||||||
|
|
||||||
call Intro_PlacePlayerSprite
|
call Intro_PlacePlayerSprite
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
|
|
||||||
ld c, 50
|
ld c, 50
|
||||||
call DelayFrames
|
call DelayFrames
|
||||||
@ -1431,7 +1431,7 @@ Data63ca: ; 63ca
|
|||||||
|
|
||||||
Copyright: ; 63e2
|
Copyright: ; 63e2
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
ld de, CopyrightGFX
|
ld de, CopyrightGFX
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, VTiles2 tile $60
|
||||||
lb bc, BANK(CopyrightGFX), $1d
|
lb bc, BANK(CopyrightGFX), $1d
|
||||||
@ -1553,11 +1553,11 @@ Function64bf:: ; 64bf
|
|||||||
; 64cd
|
; 64cd
|
||||||
|
|
||||||
Function64cd: ; 64cd
|
Function64cd: ; 64cd
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
ld a, $90
|
ld a, $90
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
call Function2e31
|
call Function2e31
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
ret
|
ret
|
||||||
; 64db
|
; 64db
|
||||||
|
|
||||||
@ -4783,7 +4783,7 @@ CutDownTreeOrGrass: ; c810
|
|||||||
call Function2914
|
call Function2914
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
ret
|
ret
|
||||||
; c840
|
; c840
|
||||||
|
|
||||||
@ -5020,7 +5020,7 @@ UsedSurfScript: ; c986
|
|||||||
copybytetovar Buffer2
|
copybytetovar Buffer2
|
||||||
writevarcode VAR_MOVEMENT
|
writevarcode VAR_MOVEMENT
|
||||||
|
|
||||||
special Special_ReplaceKrisSprite
|
special ReplaceKrisSprite
|
||||||
special PlayMapMusic
|
special PlayMapMusic
|
||||||
; step into the water
|
; step into the water
|
||||||
special Special_SurfStartStep ; (slow_step_x, step_end)
|
special Special_SurfStartStep ; (slow_step_x, step_end)
|
||||||
@ -5258,7 +5258,7 @@ FlyFunction: ; ca3b
|
|||||||
Functioncacb: ; cacb
|
Functioncacb: ; cacb
|
||||||
callba Function561d
|
callba Function561d
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call Special_ReplaceKrisSprite
|
call ReplaceKrisSprite
|
||||||
callba Function106594
|
callba Function106594
|
||||||
ret
|
ret
|
||||||
; cade
|
; cade
|
||||||
@ -6359,7 +6359,7 @@ PutTheRodAway: ; d095
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [PlayerAction], a
|
ld [PlayerAction], a
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call Special_ReplaceKrisSprite
|
call ReplaceKrisSprite
|
||||||
ret
|
ret
|
||||||
; d0a4
|
; d0a4
|
||||||
|
|
||||||
@ -6478,14 +6478,14 @@ Script_GetOnBike: ; 0xd13e
|
|||||||
writetext UnknownText_0xd17c
|
writetext UnknownText_0xd17c
|
||||||
closetext
|
closetext
|
||||||
loadmovesprites
|
loadmovesprites
|
||||||
special Special_ReplaceKrisSprite
|
special ReplaceKrisSprite
|
||||||
end
|
end
|
||||||
; 0xd14e
|
; 0xd14e
|
||||||
|
|
||||||
Script_GetOnBike_Register: ; 0xd14e
|
Script_GetOnBike_Register: ; 0xd14e
|
||||||
writecode VAR_MOVEMENT, $1
|
writecode VAR_MOVEMENT, $1
|
||||||
loadmovesprites
|
loadmovesprites
|
||||||
special Special_ReplaceKrisSprite
|
special ReplaceKrisSprite
|
||||||
end
|
end
|
||||||
; 0xd156
|
; 0xd156
|
||||||
|
|
||||||
@ -6502,7 +6502,7 @@ Script_GetOffBike: ; 0xd158
|
|||||||
|
|
||||||
UnknownScript_0xd163:
|
UnknownScript_0xd163:
|
||||||
loadmovesprites
|
loadmovesprites
|
||||||
special Special_ReplaceKrisSprite
|
special ReplaceKrisSprite
|
||||||
special PlayMapMusic
|
special PlayMapMusic
|
||||||
end
|
end
|
||||||
; 0xd16b
|
; 0xd16b
|
||||||
@ -11322,8 +11322,8 @@ Function11c11: ; 11c11 (4:5c11)
|
|||||||
Function11c51: ; 11c51
|
Function11c51: ; 11c51
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
callab Function8cf53
|
callab Function8cf53
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
|
|
||||||
ld de, GFX_11e65
|
ld de, GFX_11e65
|
||||||
ld hl, VTiles1 tile $6b
|
ld hl, VTiles1 tile $6b
|
||||||
@ -12525,7 +12525,7 @@ endr
|
|||||||
push af
|
push af
|
||||||
ld a, 1
|
ld a, 1
|
||||||
ld [hOAMUpdate], a
|
ld [hOAMUpdate], a
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
pop af
|
pop af
|
||||||
ld [hOAMUpdate], a
|
ld [hOAMUpdate], a
|
||||||
.ReturnEnd
|
.ReturnEnd
|
||||||
@ -16188,7 +16188,7 @@ GetEmote2bpp: ; 1412a
|
|||||||
ret
|
ret
|
||||||
; 14135
|
; 14135
|
||||||
|
|
||||||
Function14135:: ; 14135
|
_ReplaceKrisSprite:: ; 14135
|
||||||
call GetPlayerSprite
|
call GetPlayerSprite
|
||||||
ld a, [UsedSprites]
|
ld a, [UsedSprites]
|
||||||
ld [hUsedSpriteIndex], a
|
ld [hUsedSpriteIndex], a
|
||||||
@ -22316,7 +22316,7 @@ PokepicYesOrNo:: ; 24528
|
|||||||
call Function2173
|
call Function2173
|
||||||
call Function321c
|
call Function321c
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
ret
|
ret
|
||||||
; 24547
|
; 24547
|
||||||
|
|
||||||
@ -26660,7 +26660,7 @@ LinkCommunications: ; 28000
|
|||||||
call DelayFrames
|
call DelayFrames
|
||||||
call ClearScreen
|
call ClearScreen
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
callba Function16d69a
|
callba Function16d69a
|
||||||
call Function3200
|
call Function3200
|
||||||
@ -28897,7 +28897,7 @@ Function29082: ; 29082
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_2909b
|
.asm_2909b
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
scf
|
scf
|
||||||
ret
|
ret
|
||||||
; 290a0
|
; 290a0
|
||||||
@ -32264,7 +32264,7 @@ INCBIN "gfx/battle/balls.2bpp"
|
|||||||
|
|
||||||
_ShowLinkBattleParticipants: ; 2c1b2
|
_ShowLinkBattleParticipants: ; 2c1b2
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
hlcoord 2, 3
|
hlcoord 2, 3
|
||||||
ld b, 9
|
ld b, 9
|
||||||
ld c, 14
|
ld c, 14
|
||||||
@ -34330,8 +34330,8 @@ Function41a7f: ; 41a7f
|
|||||||
callba Function1de247
|
callba Function1de247
|
||||||
call Function41af7
|
call Function41af7
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
call Function414b7
|
call Function414b7
|
||||||
call Function4147b
|
call Function4147b
|
||||||
ld a, [wd265]
|
ld a, [wd265]
|
||||||
@ -36226,7 +36226,7 @@ Function4802f: ; 4802f (12:402f)
|
|||||||
ld [wd003], a
|
ld [wd003], a
|
||||||
.asm_4805a
|
.asm_4805a
|
||||||
call Function486bf
|
call Function486bf
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
ld de, GFX_488c3
|
ld de, GFX_488c3
|
||||||
ld hl, VTiles2 tile $10
|
ld hl, VTiles2 tile $10
|
||||||
lb bc, BANK(GFX_488c3), 1
|
lb bc, BANK(GFX_488c3), 1
|
||||||
@ -38087,7 +38087,7 @@ Function48e14: ; 48e14 (12:4e14)
|
|||||||
call DelayFrames
|
call DelayFrames
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Function48000
|
call Function48000
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
|
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
|
||||||
ld a, $0
|
ld a, $0
|
||||||
@ -39576,8 +39576,8 @@ Function49ed0: ; 49ed0
|
|||||||
xor a
|
xor a
|
||||||
ld [$ffde], a
|
ld [$ffde], a
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call ResetTextRelatedRAM
|
call ResetTextRelatedRAM
|
||||||
ret
|
ret
|
||||||
; 49ee0
|
; 49ee0
|
||||||
@ -39829,7 +39829,7 @@ Function4a100: ; 4a100 (12:6100)
|
|||||||
|
|
||||||
asm_4a111: ; 4a111 (12:6111)
|
asm_4a111: ; 4a111 (12:6111)
|
||||||
pop bc
|
pop bc
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
jp Function49f0a
|
jp Function49f0a
|
||||||
|
|
||||||
Function4a118: ; 4a118 (12:6118)
|
Function4a118: ; 4a118 (12:6118)
|
||||||
@ -40029,7 +40029,7 @@ Function4a28a: ; 4a28a (12:628a)
|
|||||||
callba Function11765d
|
callba Function11765d
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call Call_ExitMenu
|
call Call_ExitMenu
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
scf
|
scf
|
||||||
ret
|
ret
|
||||||
.asm_4a2f0
|
.asm_4a2f0
|
||||||
@ -40459,7 +40459,7 @@ Function4a6ab: ; 4a6ab (12:66ab)
|
|||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
callba Function11c1ab
|
callba Function11c1ab
|
||||||
pop bc
|
pop bc
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
jp Function4a4c4
|
jp Function4a4c4
|
||||||
|
|
||||||
Function4a6c5: ; 4a6c5 (12:66c5)
|
Function4a6c5: ; 4a6c5 (12:66c5)
|
||||||
@ -42267,8 +42267,8 @@ _ResetClock: ; 4d3b1
|
|||||||
callba Function8000
|
callba Function8000
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
ld de, MUSIC_MAIN_MENU
|
ld de, MUSIC_MAIN_MENU
|
||||||
call PlayMusic
|
call PlayMusic
|
||||||
ld hl, .text_askreset
|
ld hl, .text_askreset
|
||||||
@ -42543,8 +42543,8 @@ Function4d54c: ; 4d54c
|
|||||||
callba Function8000
|
callba Function8000
|
||||||
ld b, $8
|
ld b, $8
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
ld de, MUSIC_MAIN_MENU
|
ld de, MUSIC_MAIN_MENU
|
||||||
call PlayMusic
|
call PlayMusic
|
||||||
ld hl, UnknownText_0x4d580
|
ld hl, UnknownText_0x4d580
|
||||||
@ -44975,7 +44975,7 @@ Function4e881: ; 4e881
|
|||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
ld hl, VBGMap0
|
ld hl, VBGMap0
|
||||||
ld bc, VBGMap1 - VBGMap0
|
ld bc, VBGMap1 - VBGMap0
|
||||||
@ -45008,7 +45008,7 @@ Function4e8c2: ; 4e8c2
|
|||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
ld hl, VBGMap0
|
ld hl, VBGMap0
|
||||||
ld bc, VBGMap1 - VBGMap0
|
ld bc, VBGMap1 - VBGMap0
|
||||||
@ -49349,7 +49349,7 @@ WaterToLandSprite: ; 803f9
|
|||||||
push bc
|
push bc
|
||||||
ld a, PLAYER_NORMAL
|
ld a, PLAYER_NORMAL
|
||||||
ld [PlayerState], a
|
ld [PlayerState], a
|
||||||
call Special_ReplaceKrisSprite ; UpdateSprites
|
call ReplaceKrisSprite ; UpdateSprites
|
||||||
pop bc
|
pop bc
|
||||||
ret
|
ret
|
||||||
; 80404
|
; 80404
|
||||||
@ -49776,7 +49776,7 @@ Function8197c: ; 8197c
|
|||||||
ld de, VTiles0
|
ld de, VTiles0
|
||||||
ld bc, $10
|
ld bc, $10
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
ld hl, VTiles1
|
ld hl, VTiles1
|
||||||
lb bc, 8, 0
|
lb bc, 8, 0
|
||||||
.asm_8199d
|
.asm_8199d
|
||||||
@ -53681,7 +53681,7 @@ ShakeHeadbuttTree: ; 8c80a
|
|||||||
ld hl, VTiles1
|
ld hl, VTiles1
|
||||||
lb bc, BANK(Font), $c
|
lb bc, BANK(Font), $c
|
||||||
call Get1bpp
|
call Get1bpp
|
||||||
call Special_ReplaceKrisSprite
|
call ReplaceKrisSprite
|
||||||
ret
|
ret
|
||||||
; 8c893
|
; 8c893
|
||||||
|
|
||||||
@ -57994,7 +57994,7 @@ InitClock: ; 90672 (24:4672)
|
|||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a ; $ff00+$d4
|
ld [hBGMapMode], a ; $ff00+$d4
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
ld de, GFX_908fb
|
ld de, GFX_908fb
|
||||||
ld hl, VTiles2 tile $00
|
ld hl, VTiles2 tile $00
|
||||||
lb bc, BANK(GFX_908fb), 1
|
lb bc, BANK(GFX_908fb), 1
|
||||||
@ -58424,7 +58424,7 @@ Special_SetDayOfWeek: ; 90913
|
|||||||
ld a, [DefaultFlypoint]
|
ld a, [DefaultFlypoint]
|
||||||
ld [StringBuffer2], a
|
ld [StringBuffer2], a
|
||||||
call Function663
|
call Function663
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
pop af
|
pop af
|
||||||
ld [hInMenu], a
|
ld [hInMenu], a
|
||||||
ret
|
ret
|
||||||
@ -61336,7 +61336,7 @@ Function91ff2: ; 91ff2
|
|||||||
ld hl, TownMapGFX
|
ld hl, TownMapGFX
|
||||||
ld de, VTiles2
|
ld de, VTiles2
|
||||||
lb bc, BANK(TownMapGFX), $30
|
lb bc, BANK(TownMapGFX), $30
|
||||||
call Functione73
|
call DecompressRequest2bpp
|
||||||
ret
|
ret
|
||||||
; 91fff
|
; 91fff
|
||||||
|
|
||||||
@ -64511,7 +64511,7 @@ ReadAnyMail: ; b9237
|
|||||||
call ClearSprites
|
call ClearSprites
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
pop de
|
pop de
|
||||||
push de
|
push de
|
||||||
ld a, BANK(s0_a600)
|
ld a, BANK(s0_a600)
|
||||||
@ -64544,7 +64544,7 @@ ReadAnyMail: ; b9237
|
|||||||
call Functionb929a
|
call Functionb929a
|
||||||
call WhiteBGMap
|
call WhiteBGMap
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
jp EnableLCD
|
jp EnableLCD
|
||||||
; b929a
|
; b929a
|
||||||
|
|
||||||
@ -65981,8 +65981,8 @@ _CardFlip: ; e00ee (38:40ee)
|
|||||||
call PlayMusic
|
call PlayMusic
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
ld hl, LZ_e0d16
|
ld hl, LZ_e0d16
|
||||||
ld de, VTiles2 tile $00
|
ld de, VTiles2 tile $00
|
||||||
call Decompress
|
call Decompress
|
||||||
@ -71441,7 +71441,7 @@ Functione33e8: ; e33e8 (38:73e8)
|
|||||||
ld bc, $310
|
ld bc, $310
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
ld hl, PCMailGFX
|
ld hl, PCMailGFX
|
||||||
ld de, VTiles2 tile $5c
|
ld de, VTiles2 tile $5c
|
||||||
@ -71723,7 +71723,7 @@ Functione36f9: ; e36f9 (38:76f9)
|
|||||||
ld de, DefaultFlypoint
|
ld de, DefaultFlypoint
|
||||||
callba Function116c1
|
callba Function116c1
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
ld a, [MenuSelection]
|
ld a, [MenuSelection]
|
||||||
dec a
|
dec a
|
||||||
@ -72314,7 +72314,7 @@ Functione4512: ; e4512
|
|||||||
hlcoord 16, 15 ;where on the screen the number is drawn
|
hlcoord 16, 15 ;where on the screen the number is drawn
|
||||||
add "1"
|
add "1"
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
; e4520
|
; e4520
|
||||||
@ -74988,6 +74988,7 @@ Footprints: ; f9434
|
|||||||
INCBIN "gfx/misc/footprints.1bpp"
|
INCBIN "gfx/misc/footprints.1bpp"
|
||||||
; fb434
|
; fb434
|
||||||
|
|
||||||
|
; This and the following two functions are unreferenced.
|
||||||
Unknown_fb434:
|
Unknown_fb434:
|
||||||
db 0
|
db 0
|
||||||
|
|
||||||
@ -75003,9 +75004,10 @@ Functionfb43f: ; fb43f
|
|||||||
and a
|
and a
|
||||||
jp nz, Get2bpp_2
|
jp nz, Get2bpp_2
|
||||||
jp Get2bpp
|
jp Get2bpp
|
||||||
|
; End unreferenced block
|
||||||
; fb449
|
; fb449
|
||||||
|
|
||||||
Functionfb449:: ; fb449
|
_LoadStandardFont:: ; fb449
|
||||||
ld de, Font
|
ld de, Font
|
||||||
ld hl, VTiles1
|
ld hl, VTiles1
|
||||||
lb bc, BANK(Font), $80
|
lb bc, BANK(Font), $80
|
||||||
@ -75032,9 +75034,7 @@ Functionfb449:: ; fb449
|
|||||||
ret
|
ret
|
||||||
; fb48a
|
; fb48a
|
||||||
|
|
||||||
|
_LoadFontsExtra1:: ; fb48a
|
||||||
|
|
||||||
Functionfb48a:: ; fb48a
|
|
||||||
ld de, GFX_f9214
|
ld de, GFX_f9214
|
||||||
ld hl, VTiles2 tile $60
|
ld hl, VTiles2 tile $60
|
||||||
lb bc, BANK(GFX_f9214), 1
|
lb bc, BANK(GFX_f9214), 1
|
||||||
@ -75050,7 +75050,7 @@ Functionfb48a:: ; fb48a
|
|||||||
jr LoadFrame
|
jr LoadFrame
|
||||||
; fb4b0
|
; fb4b0
|
||||||
|
|
||||||
Functionfb4b0:: ; fb4b0
|
_LoadFontsExtra2:: ; fb4b0
|
||||||
ld de, GFX_f9424
|
ld de, GFX_f9424
|
||||||
ld hl, VTiles2 tile $61
|
ld hl, VTiles2 tile $61
|
||||||
ld b, BANK(GFX_f9424)
|
ld b, BANK(GFX_f9424)
|
||||||
@ -75521,8 +75521,8 @@ Functionfb877: ; fb877
|
|||||||
|
|
||||||
Functionfb8c8: ; fb8c8
|
Functionfb8c8: ; fb8c8
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
callba Function40ab2
|
callba Function40ab2
|
||||||
call Function3200
|
call Function3200
|
||||||
callba Function3da97
|
callba Function3da97
|
||||||
@ -77307,7 +77307,7 @@ Function104265: ; 104265 (41:4265)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
Function104284:: ; 104284
|
_Get2bpp:: ; 104284
|
||||||
; 2bpp when [rLCDC] & $80
|
; 2bpp when [rLCDC] & $80
|
||||||
; switch to WRAM bank 6
|
; switch to WRAM bank 6
|
||||||
ld a, [rSVBK]
|
ld a, [rSVBK]
|
||||||
@ -77350,7 +77350,7 @@ endr
|
|||||||
ret
|
ret
|
||||||
; 1042b2
|
; 1042b2
|
||||||
|
|
||||||
Function1042b2:: ; 1042b2
|
_Get1bpp:: ; 1042b2
|
||||||
; 1bpp when [rLCDC] & $80
|
; 1bpp when [rLCDC] & $80
|
||||||
.loop
|
.loop
|
||||||
ld a, c
|
ld a, c
|
||||||
@ -77785,7 +77785,7 @@ LoadGraphics: ; 1047cf
|
|||||||
xor a
|
xor a
|
||||||
ld [hTileAnimFrame], a ; $ff00+$df
|
ld [hTileAnimFrame], a ; $ff00+$df
|
||||||
callba Function14168
|
callba Function14168
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
callba Function106594
|
callba Function106594
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -81626,7 +81626,7 @@ Function1ddf26: ; 1ddf26 (77:5f26)
|
|||||||
ld hl, LZ_1ddf33
|
ld hl, LZ_1ddf33
|
||||||
ld de, VTiles2 tile $31
|
ld de, VTiles2 tile $31
|
||||||
lb bc, BANK(LZ_1ddf33), $3a
|
lb bc, BANK(LZ_1ddf33), $3a
|
||||||
call Functione73
|
call DecompressRequest2bpp
|
||||||
ret
|
ret
|
||||||
; 1ddf33 (77:5f33)
|
; 1ddf33 (77:5f33)
|
||||||
|
|
||||||
|
@ -435,7 +435,7 @@ PokeCenter2F_CheckGender:
|
|||||||
special Functionc225
|
special Functionc225
|
||||||
applymovement PLAYER, MovementData_0x192d1c
|
applymovement PLAYER, MovementData_0x192d1c
|
||||||
setflag ENGINE_KRIS_IN_CABLE_CLUB
|
setflag ENGINE_KRIS_IN_CABLE_CLUB
|
||||||
special Special_ReplaceKrisSprite
|
special ReplaceKrisSprite
|
||||||
loadfont
|
loadfont
|
||||||
writetext Text_LikeTheLook
|
writetext Text_LikeTheLook
|
||||||
closetext
|
closetext
|
||||||
@ -461,7 +461,7 @@ Script_CleanUpFemaleFlagAfterTrade:
|
|||||||
writebyte $90
|
writebyte $90
|
||||||
special Functionc225
|
special Functionc225
|
||||||
applymovement PLAYER, MovementData_0x192d1c
|
applymovement PLAYER, MovementData_0x192d1c
|
||||||
special Special_ReplaceKrisSprite
|
special ReplaceKrisSprite
|
||||||
applymovement PLAYER, MovementData_0x192d2a
|
applymovement PLAYER, MovementData_0x192d2a
|
||||||
applymovement $2, MovementData_0x192cfe
|
applymovement $2, MovementData_0x192cfe
|
||||||
end
|
end
|
||||||
@ -483,7 +483,7 @@ Script_CleanUpFemaleFlagAfterBattle:
|
|||||||
writebyte $90
|
writebyte $90
|
||||||
special Functionc225
|
special Functionc225
|
||||||
applymovement PLAYER, MovementData_0x192d1c
|
applymovement PLAYER, MovementData_0x192d1c
|
||||||
special Special_ReplaceKrisSprite
|
special ReplaceKrisSprite
|
||||||
applymovement PLAYER, MovementData_0x192d2a
|
applymovement PLAYER, MovementData_0x192d2a
|
||||||
applymovement $3, MovementData_0x192cfe
|
applymovement $3, MovementData_0x192cfe
|
||||||
end
|
end
|
||||||
@ -544,7 +544,7 @@ TimeCapsuleScript_CheckPlayerGender:
|
|||||||
applymovement PLAYER, MovementData_0x192d22
|
applymovement PLAYER, MovementData_0x192d22
|
||||||
faceperson PLAYER, $4
|
faceperson PLAYER, $4
|
||||||
setflag ENGINE_KRIS_IN_CABLE_CLUB
|
setflag ENGINE_KRIS_IN_CABLE_CLUB
|
||||||
special Special_ReplaceKrisSprite
|
special ReplaceKrisSprite
|
||||||
loadfont
|
loadfont
|
||||||
writetext Text_LikeTheLook
|
writetext Text_LikeTheLook
|
||||||
closetext
|
closetext
|
||||||
@ -571,7 +571,7 @@ Script_LeftTimeCapsule:
|
|||||||
writebyte $90
|
writebyte $90
|
||||||
special Functionc225
|
special Functionc225
|
||||||
applymovement PLAYER, MovementData_0x192d1c
|
applymovement PLAYER, MovementData_0x192d1c
|
||||||
special Special_ReplaceKrisSprite
|
special ReplaceKrisSprite
|
||||||
applymovement PLAYER, MovementData_0x192cfc
|
applymovement PLAYER, MovementData_0x192cfc
|
||||||
applymovement $4, MovementData_0x192d01
|
applymovement $4, MovementData_0x192d01
|
||||||
.Done:
|
.Done:
|
||||||
|
@ -499,8 +499,8 @@ Function8939a: ; 8939a
|
|||||||
Function893b3: ; 893b3 (22:53b3)
|
Function893b3: ; 893b3 (22:53b3)
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
call Function893ef
|
call Function893ef
|
||||||
call Function8942b
|
call Function8942b
|
||||||
call Function89455
|
call Function89455
|
||||||
@ -510,8 +510,8 @@ Function893b3: ; 893b3 (22:53b3)
|
|||||||
Function893cc: ; 893cc
|
Function893cc: ; 893cc
|
||||||
call DisableLCD
|
call DisableLCD
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
call Function893ef
|
call Function893ef
|
||||||
call Function89464
|
call Function89464
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
@ -4307,7 +4307,7 @@ Function8ac7c: ; 8ac7c
|
|||||||
|
|
||||||
.asm_8ace4
|
.asm_8ace4
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
ld a, [wd02f]
|
ld a, [wd02f]
|
||||||
ld c, a
|
ld c, a
|
||||||
and a
|
and a
|
||||||
@ -4319,7 +4319,7 @@ Function8ac7c: ; 8ac7c
|
|||||||
ld a, $2
|
ld a, $2
|
||||||
call Function89259
|
call Function89259
|
||||||
jp c, Function8ac7c
|
jp c, Function8ac7c
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
pop de
|
pop de
|
||||||
ld c, $0
|
ld c, $0
|
||||||
scf
|
scf
|
||||||
|
@ -411,7 +411,7 @@ Function1002dc: ; 1002dc
|
|||||||
callba RunMapSetupScript
|
callba RunMapSetupScript
|
||||||
xor a
|
xor a
|
||||||
ld [hMapEntryMethod], a
|
ld [hMapEntryMethod], a
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
ret
|
ret
|
||||||
; 1002ed
|
; 1002ed
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ Function1080b7: ; 1080b7
|
|||||||
call DisableLCD
|
call DisableLCD
|
||||||
call Function1081ad
|
call Function1081ad
|
||||||
call Function1081ca
|
call Function1081ca
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
@ -194,7 +194,7 @@ Function108157: ; 108157
|
|||||||
call DisableLCD
|
call DisableLCD
|
||||||
call Function1081ad
|
call Function1081ad
|
||||||
call Function1081ca
|
call Function1081ca
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
call EnableLCD
|
call EnableLCD
|
||||||
xor a
|
xor a
|
||||||
@ -326,7 +326,7 @@ Function10824b: ; 10824b
|
|||||||
ld [hWX], a
|
ld [hWX], a
|
||||||
ld a, $90
|
ld a, $90
|
||||||
ld [hWY], a
|
ld [hWY], a
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call LoadFontsBattleExtra
|
call LoadFontsBattleExtra
|
||||||
callba Function106462
|
callba Function106462
|
||||||
callba Function106464
|
callba Function106464
|
||||||
|
@ -10,8 +10,8 @@ Function17c000: ; 17c000
|
|||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
|
|
||||||
call Functione51
|
call LoadStandardFont
|
||||||
call Functione5f
|
call LoadFontsExtra
|
||||||
|
|
||||||
ld hl, HaveWantMap
|
ld hl, HaveWantMap
|
||||||
decoord 0, 0
|
decoord 0, 0
|
||||||
|
Loading…
Reference in New Issue
Block a user