mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Merge pull request #756 from mid-kid/master
Rub a dub dub, thanks for the grub
This commit is contained in:
commit
0b31d12dac
@ -59,7 +59,8 @@ Music_LookYoungster_Ch1:
|
|||||||
rest 1
|
rest 1
|
||||||
rest 16
|
rest 16
|
||||||
sound_loop 0, .mainloop
|
sound_loop 0, .mainloop
|
||||||
sound_ret
|
|
||||||
|
sound_ret ; unused
|
||||||
|
|
||||||
Music_LookYoungster_Ch2:
|
Music_LookYoungster_Ch2:
|
||||||
stereo_panning TRUE, FALSE
|
stereo_panning TRUE, FALSE
|
||||||
@ -156,7 +157,8 @@ Music_LookYoungster_Ch2:
|
|||||||
note C_, 1
|
note C_, 1
|
||||||
rest 1
|
rest 1
|
||||||
sound_loop 0, .mainloop
|
sound_loop 0, .mainloop
|
||||||
sound_ret
|
|
||||||
|
sound_ret ; unused
|
||||||
|
|
||||||
Music_LookYoungster_Ch3:
|
Music_LookYoungster_Ch3:
|
||||||
stereo_panning TRUE, TRUE
|
stereo_panning TRUE, TRUE
|
||||||
@ -290,4 +292,5 @@ Music_LookYoungster_Ch3:
|
|||||||
note G#, 1
|
note G#, 1
|
||||||
rest 1
|
rest 1
|
||||||
sound_loop 0, .mainloop
|
sound_loop 0, .mainloop
|
||||||
sound_ret
|
|
||||||
|
sound_ret ; unused
|
||||||
|
@ -282,6 +282,7 @@
|
|||||||
charmap "「", $70
|
charmap "「", $70
|
||||||
charmap "」", $71
|
charmap "」", $71
|
||||||
charmap "』", $73
|
charmap "』", $73
|
||||||
|
charmap "・", $74
|
||||||
charmap "⋯", $75
|
charmap "⋯", $75
|
||||||
|
|
||||||
charmap " ", $7f
|
charmap " ", $7f
|
||||||
|
@ -673,7 +673,7 @@ StartTrainerBattle_LoadPokeBallGraphics:
|
|||||||
call CopyBytes
|
call CopyBytes
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, 1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call BattleStart_CopyTilemapAtOnce
|
call BattleStart_CopyTilemapAtOnce
|
||||||
|
@ -4920,7 +4920,7 @@ LoadBattleMenu2:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.mobile
|
.mobile
|
||||||
farcall Function100b12
|
farcall Mobile_LoadBattleMenu
|
||||||
ld a, [wcd2b]
|
ld a, [wcd2b]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
@ -5311,7 +5311,7 @@ CheckAmuletCoin:
|
|||||||
MoveSelectionScreen:
|
MoveSelectionScreen:
|
||||||
call IsMobileBattle
|
call IsMobileBattle
|
||||||
jr nz, .not_mobile
|
jr nz, .not_mobile
|
||||||
farcall MobileMoveSelectionScreen
|
farcall Mobile_MoveSelectionScreen
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.not_mobile
|
.not_mobile
|
||||||
|
@ -1417,7 +1417,7 @@ BattleAnim_SetBGPals:
|
|||||||
call CopyPals
|
call CopyPals
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1438,7 +1438,7 @@ BattleAnim_SetOBPals:
|
|||||||
call CopyPals
|
call CopyPals
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -2546,7 +2546,7 @@ BGEffects_LoadBGPal0_OBPal1:
|
|||||||
pop bc
|
pop bc
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -2573,7 +2573,7 @@ BGEffects_LoadBGPal1_OBPal0:
|
|||||||
pop bc
|
pop bc
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -448,7 +448,7 @@ Function81c33:
|
|||||||
hlcoord 15, 2
|
hlcoord 15, 2
|
||||||
ld de, wc608 + 2
|
ld de, wc608 + 2
|
||||||
call Function81ca7
|
call Function81ca7
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ld a, $3
|
ld a, $3
|
||||||
ld [wJumptableIndex], a
|
ld [wJumptableIndex], a
|
||||||
@ -1227,7 +1227,7 @@ Function822a3:
|
|||||||
call Function81ca7
|
call Function81ca7
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ret
|
ret
|
||||||
|
@ -167,7 +167,7 @@ INCBIN "gfx/overworld/heal_machine.2bpp"
|
|||||||
ld bc, 1 palettes
|
ld bc, 1 palettes
|
||||||
ld a, BANK(wOBPals2)
|
ld a, BANK(wOBPals2)
|
||||||
call FarCopyWRAM
|
call FarCopyWRAM
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -231,7 +231,7 @@ INCLUDE "gfx/overworld/heal_machine.pal"
|
|||||||
|
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ LoadPoisonBGPals:
|
|||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ld c, 4
|
ld c, 4
|
||||||
call DelayFrames
|
call DelayFrames
|
||||||
|
@ -189,7 +189,7 @@ _CGB_PokegearPals:
|
|||||||
ld a, BANK(wBGPals1)
|
ld a, BANK(wBGPals1)
|
||||||
call FarCopyWRAM
|
call FarCopyWRAM
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ _CGB_StatsScreenHPPals:
|
|||||||
|
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -282,7 +282,7 @@ _CGB_Pokedex:
|
|||||||
call FarCopyWRAM
|
call FarCopyWRAM
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -317,7 +317,7 @@ _CGB_BillsPC:
|
|||||||
call InitPartyMenuOBPals
|
call InitPartyMenuOBPals
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -339,7 +339,7 @@ Function9009:
|
|||||||
call InitPartyMenuOBPals
|
call InitPartyMenuOBPals
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -362,7 +362,7 @@ _CGB_PokedexUnownMode:
|
|||||||
call InitPartyMenuOBPals
|
call InitPartyMenuOBPals
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -415,7 +415,7 @@ _CGB_SlotMachine:
|
|||||||
call ByteFill
|
call ByteFill
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -433,7 +433,7 @@ _CGB_BetaTitleScreen:
|
|||||||
call FillBoxCGB
|
call FillBoxCGB
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -573,7 +573,7 @@ _CGB_Evolution:
|
|||||||
call WipeAttrmap
|
call WipeAttrmap
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -591,7 +591,7 @@ _CGB_GSTitleScreen:
|
|||||||
ld a, SCGB_DIPLOMA
|
ld a, SCGB_DIPLOMA
|
||||||
ld [wDefaultSGBLayout], a
|
ld [wDefaultSGBLayout], a
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -725,7 +725,7 @@ _CGB_TrainerCard:
|
|||||||
ld [hl], a
|
ld [hl], a
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -749,7 +749,7 @@ _CGB_MoveList:
|
|||||||
call FillBoxCGB
|
call FillBoxCGB
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -759,7 +759,7 @@ _CGB_BetaPikachuMinigame:
|
|||||||
call WipeAttrmap
|
call WipeAttrmap
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -771,7 +771,7 @@ _CGB_PokedexSearchOption:
|
|||||||
call WipeAttrmap
|
call WipeAttrmap
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -819,7 +819,7 @@ _CGB_PackPals:
|
|||||||
call FillBoxCGB
|
call FillBoxCGB
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -877,7 +877,7 @@ _CGB_MagnetTrain:
|
|||||||
call FillBoxCGB
|
call FillBoxCGB
|
||||||
call ApplyAttrmap
|
call ApplyAttrmap
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ Function8b07: ; unreferenced
|
|||||||
call FarCopyWRAM
|
call FarCopyWRAM
|
||||||
|
|
||||||
call ApplyPals
|
call ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -352,7 +352,7 @@ ApplyHPBarPals:
|
|||||||
ld bc, 4
|
ld bc, 4
|
||||||
ld a, BANK(wBGPals2)
|
ld a, BANK(wBGPals2)
|
||||||
call FarCopyWRAM
|
call FarCopyWRAM
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ MG_Mobile_Layout01:
|
|||||||
.asm_49467
|
.asm_49467
|
||||||
farcall ApplyAttrmap
|
farcall ApplyAttrmap
|
||||||
farcall ApplyPals
|
farcall ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -180,12 +180,12 @@ DoAnimFrame:
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
sla a
|
sla a
|
||||||
sla a
|
sla a
|
||||||
ld d, $2
|
|
||||||
|
|
||||||
|
ld d, 2
|
||||||
ld hl, SPRITEANIMSTRUCT_0C
|
ld hl, SPRITEANIMSTRUCT_0C
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
add $3
|
add 3
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
call .Sprites_Sine
|
call .Sprites_Sine
|
||||||
|
|
||||||
@ -204,7 +204,7 @@ DoAnimFrame:
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
inc a
|
inc a
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
ld d, $2
|
ld d, 2
|
||||||
call .Sprites_Sine
|
call .Sprites_Sine
|
||||||
|
|
||||||
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
||||||
@ -391,7 +391,7 @@ DoAnimFrame:
|
|||||||
inc [hl]
|
inc [hl]
|
||||||
.move_vertical
|
.move_vertical
|
||||||
ld a, e
|
ld a, e
|
||||||
ld d, $20
|
ld d, 32
|
||||||
call .Sprites_Sine
|
call .Sprites_Sine
|
||||||
|
|
||||||
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
||||||
@ -456,10 +456,10 @@ DoAnimFrame:
|
|||||||
ld hl, SPRITEANIMSTRUCT_0C
|
ld hl, SPRITEANIMSTRUCT_0C
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
cp $30
|
cp 48
|
||||||
jr c, .asm_8d4cd
|
jr c, .asm_8d4cd
|
||||||
dec [hl]
|
dec [hl]
|
||||||
ld d, $28
|
ld d, 40
|
||||||
call .Sprites_Sine
|
call .Sprites_Sine
|
||||||
|
|
||||||
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
||||||
@ -492,8 +492,8 @@ DoAnimFrame:
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and a
|
and a
|
||||||
jr z, .asm_8d51c
|
jr z, .asm_8d51c
|
||||||
ld d, a
|
|
||||||
|
|
||||||
|
ld d, a
|
||||||
ld hl, SPRITEANIMSTRUCT_0C
|
ld hl, SPRITEANIMSTRUCT_0C
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
@ -759,11 +759,11 @@ DoAnimFrame:
|
|||||||
ld hl, SPRITEANIMSTRUCT_0D
|
ld hl, SPRITEANIMSTRUCT_0D
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
add $2
|
add 2
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
xor $ff
|
xor $ff
|
||||||
inc a
|
inc a
|
||||||
ld d, $20
|
ld d, 32
|
||||||
call .Sprites_Sine
|
call .Sprites_Sine
|
||||||
|
|
||||||
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
||||||
@ -777,13 +777,13 @@ DoAnimFrame:
|
|||||||
ld hl, SPRITEANIMSTRUCT_0C
|
ld hl, SPRITEANIMSTRUCT_0C
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
cp $14
|
cp 20
|
||||||
jr nc, .asm_8d67f
|
jr nc, .asm_8d67f
|
||||||
add $2
|
add 2
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
xor $ff
|
xor $ff
|
||||||
inc a
|
inc a
|
||||||
ld d, $20
|
ld d, 32
|
||||||
call .Sprites_Sine
|
call .Sprites_Sine
|
||||||
|
|
||||||
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
ld hl, SPRITEANIMSTRUCT_YOFFSET
|
||||||
@ -799,7 +799,6 @@ DoAnimFrame:
|
|||||||
inc [hl]
|
inc [hl]
|
||||||
inc [hl]
|
inc [hl]
|
||||||
inc [hl]
|
inc [hl]
|
||||||
|
|
||||||
ld hl, SPRITEANIMSTRUCT_0C
|
ld hl, SPRITEANIMSTRUCT_0C
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
|
@ -135,16 +135,16 @@ _InitSpriteAnimStruct::
|
|||||||
; Back up the structure address to bc.
|
; Back up the structure address to bc.
|
||||||
ld c, l
|
ld c, l
|
||||||
ld b, h
|
ld b, h
|
||||||
; Value [wSpriteAnimCount] is initially set to -1. Set it to
|
|
||||||
; the number of objects loaded into this array.
|
; Increment [wSpriteAnimCount], skipping a 0 value.
|
||||||
ld hl, wSpriteAnimCount
|
ld hl, wSpriteAnimCount
|
||||||
inc [hl]
|
inc [hl]
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and a
|
and a
|
||||||
jr nz, .initialized
|
jr nz, .nonzero
|
||||||
inc [hl]
|
inc [hl]
|
||||||
|
.nonzero
|
||||||
|
|
||||||
.initialized
|
|
||||||
; Get row a of SpriteAnimSeqData, copy the pointer into de
|
; Get row a of SpriteAnimSeqData, copy the pointer into de
|
||||||
pop af
|
pop af
|
||||||
ld e, a
|
ld e, a
|
||||||
@ -228,9 +228,9 @@ DeinitializeAllSprites:
|
|||||||
UpdateAnimFrame:
|
UpdateAnimFrame:
|
||||||
call InitSpriteAnimBuffer ; init WRAM
|
call InitSpriteAnimBuffer ; init WRAM
|
||||||
call GetSpriteAnimFrame ; read from a memory array
|
call GetSpriteAnimFrame ; read from a memory array
|
||||||
cp -3
|
cp dowait_command
|
||||||
jr z, .done
|
jr z, .done
|
||||||
cp -4
|
cp delanim_command
|
||||||
jr z, .delete
|
jr z, .delete
|
||||||
call GetFrameOAMPointer
|
call GetFrameOAMPointer
|
||||||
; add byte to [wCurAnimVTile]
|
; add byte to [wCurAnimVTile]
|
||||||
|
@ -1141,7 +1141,7 @@ EvoStoneEffect:
|
|||||||
cp EVERSTONE
|
cp EVERSTONE
|
||||||
jr z, .NoEffect
|
jr z, .NoEffect
|
||||||
|
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ld [wForceEvolution], a
|
ld [wForceEvolution], a
|
||||||
farcall EvolvePokemon
|
farcall EvolvePokemon
|
||||||
|
|
||||||
|
@ -959,6 +959,15 @@ Intro_PlacePlayerSprite:
|
|||||||
db 10 * 8 + 4, 9 * 8, 2
|
db 10 * 8 + 4, 9 * 8, 2
|
||||||
db 10 * 8 + 4, 10 * 8, 3
|
db 10 * 8 + 4, 10 * 8, 3
|
||||||
|
|
||||||
|
|
||||||
|
const_def
|
||||||
|
const TITLESCREENOPTION_MAIN_MENU
|
||||||
|
const TITLESCREENOPTION_DELETE_SAVE_DATA
|
||||||
|
const TITLESCREENOPTION_RESTART
|
||||||
|
const TITLESCREENOPTION_UNUSED
|
||||||
|
const TITLESCREENOPTION_RESET_CLOCK
|
||||||
|
NUM_TITLESCREENOPTIONS EQU const_value
|
||||||
|
|
||||||
IntroSequence:
|
IntroSequence:
|
||||||
callfar Copyright_GameFreakPresents
|
callfar Copyright_GameFreakPresents
|
||||||
jr c, StartTitleScreen
|
jr c, StartTitleScreen
|
||||||
@ -969,7 +978,7 @@ IntroSequence:
|
|||||||
StartTitleScreen:
|
StartTitleScreen:
|
||||||
ldh a, [rSVBK]
|
ldh a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, BANK(wBGPals1)
|
ld a, BANK(wLYOverrides)
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
|
|
||||||
call .TitleScreen
|
call .TitleScreen
|
||||||
@ -999,8 +1008,8 @@ StartTitleScreen:
|
|||||||
ld b, SCGB_DIPLOMA
|
ld b, SCGB_DIPLOMA
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call UpdateTimePals
|
call UpdateTimePals
|
||||||
ld a, [wIntroSceneFrameCounter]
|
ld a, [wTitleScreenSelectedOption]
|
||||||
cp $5
|
cp NUM_TITLESCREENOPTIONS
|
||||||
jr c, .ok
|
jr c, .ok
|
||||||
xor a
|
xor a
|
||||||
.ok
|
.ok
|
||||||
@ -1183,7 +1192,7 @@ TitleScreenMain:
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and D_LEFT + D_UP
|
and D_LEFT + D_UP
|
||||||
cp D_LEFT + D_UP
|
cp D_LEFT + D_UP
|
||||||
jr z, .clock_reset
|
jr z, .reset_clock
|
||||||
|
|
||||||
; Press Start or A to start the game.
|
; Press Start or A to start the game.
|
||||||
.check_start
|
.check_start
|
||||||
@ -1193,14 +1202,14 @@ TitleScreenMain:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.incave
|
.incave
|
||||||
ld a, 0
|
ld a, TITLESCREENOPTION_MAIN_MENU
|
||||||
jr .done
|
jr .done
|
||||||
|
|
||||||
.delete_save_data
|
.delete_save_data
|
||||||
ld a, 1
|
ld a, TITLESCREENOPTION_DELETE_SAVE_DATA
|
||||||
|
|
||||||
.done
|
.done
|
||||||
ld [wIntroSceneFrameCounter], a
|
ld [wTitleScreenSelectedOption], a
|
||||||
|
|
||||||
; Return to the intro sequence.
|
; Return to the intro sequence.
|
||||||
ld hl, wJumptableIndex
|
ld hl, wJumptableIndex
|
||||||
@ -1223,9 +1232,9 @@ TitleScreenMain:
|
|||||||
inc [hl]
|
inc [hl]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.clock_reset
|
.reset_clock
|
||||||
ld a, 4
|
ld a, TITLESCREENOPTION_RESET_CLOCK
|
||||||
ld [wIntroSceneFrameCounter], a
|
ld [wTitleScreenSelectedOption], a
|
||||||
|
|
||||||
; Return to the intro sequence.
|
; Return to the intro sequence.
|
||||||
ld hl, wJumptableIndex
|
ld hl, wJumptableIndex
|
||||||
@ -1242,8 +1251,8 @@ TitleScreenEnd:
|
|||||||
and a
|
and a
|
||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
ld a, 2
|
ld a, TITLESCREENOPTION_RESTART
|
||||||
ld [wIntroSceneFrameCounter], a
|
ld [wTitleScreenSelectedOption], a
|
||||||
|
|
||||||
; Back to the intro.
|
; Back to the intro.
|
||||||
ld hl, wJumptableIndex
|
ld hl, wJumptableIndex
|
||||||
|
@ -308,7 +308,7 @@ GameFreakLogoScene4:
|
|||||||
ld [wOBPals2 + 13], a
|
ld [wOBPals2 + 13], a
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1508,7 +1508,7 @@ Intro_Scene24_ApplyPaletteFade:
|
|||||||
jr nz, .loop1
|
jr nz, .loop1
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1632,7 +1632,7 @@ CrystalIntro_UnownFade:
|
|||||||
|
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1710,7 +1710,7 @@ Intro_Scene20_AppearUnown:
|
|||||||
|
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1773,7 +1773,7 @@ endr
|
|||||||
|
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1886,7 +1886,7 @@ Intro_RustleGrass:
|
|||||||
dw IntroGrass2GFX
|
dw IntroGrass2GFX
|
||||||
|
|
||||||
Intro_SetCGBPalUpdate:
|
Intro_SetCGBPalUpdate:
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1903,7 +1903,7 @@ Intro_ClearBGPals:
|
|||||||
|
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
|
@ -10,7 +10,7 @@ _TitleScreen:
|
|||||||
; Reset timing variables
|
; Reset timing variables
|
||||||
ld hl, wJumptableIndex
|
ld hl, wJumptableIndex
|
||||||
ld [hli], a ; wJumptableIndex
|
ld [hli], a ; wJumptableIndex
|
||||||
ld [hli], a ; wIntroSceneFrameCounter
|
ld [hli], a ; wTitleScreenSelectedOption
|
||||||
ld [hli], a ; wTitleScreenTimer
|
ld [hli], a ; wTitleScreenTimer
|
||||||
ld [hl], a ; wTitleScreenTimer + 1
|
ld [hl], a ; wTitleScreenTimer + 1
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ _TitleScreen:
|
|||||||
|
|
||||||
; 'CRYSTAL VERSION'
|
; 'CRYSTAL VERSION'
|
||||||
hlbgcoord 5, 9
|
hlbgcoord 5, 9
|
||||||
ld bc, NAME_LENGTH ; length of version text
|
ld bc, 11 ; length of version text
|
||||||
ld a, 1
|
ld a, 1
|
||||||
call ByteFill
|
call ByteFill
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ _TitleScreen:
|
|||||||
call ByteFill
|
call ByteFill
|
||||||
|
|
||||||
; Back to VRAM bank 0
|
; Back to VRAM bank 0
|
||||||
ld a, $0
|
ld a, 0
|
||||||
ldh [rVBK], a
|
ldh [rVBK], a
|
||||||
|
|
||||||
; Decompress logo
|
; Decompress logo
|
||||||
@ -108,14 +108,14 @@ _TitleScreen:
|
|||||||
hlcoord 0, 3
|
hlcoord 0, 3
|
||||||
lb bc, 7, 20
|
lb bc, 7, 20
|
||||||
ld d, $80
|
ld d, $80
|
||||||
ld e, $14
|
ld e, 20
|
||||||
call DrawTitleGraphic
|
call DrawTitleGraphic
|
||||||
|
|
||||||
; Draw copyright text
|
; Draw copyright text
|
||||||
hlbgcoord 3, 0, vBGMap1
|
hlbgcoord 3, 0, vBGMap1
|
||||||
lb bc, 1, 13
|
lb bc, 1, 13
|
||||||
ld d, $c
|
ld d, $c
|
||||||
ld e, $10
|
ld e, 16
|
||||||
call DrawTitleGraphic
|
call DrawTitleGraphic
|
||||||
|
|
||||||
; Initialize running Suicune?
|
; Initialize running Suicune?
|
||||||
@ -125,14 +125,12 @@ _TitleScreen:
|
|||||||
; Initialize background crystal
|
; Initialize background crystal
|
||||||
call InitializeBackground
|
call InitializeBackground
|
||||||
|
|
||||||
; Save WRAM bank
|
; Update palette colors
|
||||||
ldh a, [rSVBK]
|
ldh a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
; WRAM bank 5
|
|
||||||
ld a, BANK(wBGPals1)
|
ld a, BANK(wBGPals1)
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
|
|
||||||
; Update palette colors
|
|
||||||
ld hl, TitleScreenPalettes
|
ld hl, TitleScreenPalettes
|
||||||
ld de, wBGPals1
|
ld de, wBGPals1
|
||||||
ld bc, 16 palettes
|
ld bc, 16 palettes
|
||||||
@ -143,7 +141,6 @@ _TitleScreen:
|
|||||||
ld bc, 16 palettes
|
ld bc, 16 palettes
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
|
|
||||||
; Restore WRAM bank
|
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
|
|
||||||
@ -201,7 +198,7 @@ _TitleScreen:
|
|||||||
ld a, -112
|
ld a, -112
|
||||||
ldh [hWY], a
|
ldh [hWY], a
|
||||||
|
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
|
|
||||||
; Update BG Map 0 (bank 0)
|
; Update BG Map 0 (bank 0)
|
||||||
|
@ -88,7 +88,7 @@ UnusedTitleScreen:
|
|||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
|
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
|
|
||||||
ld de, MUSIC_TITLE
|
ld de, MUSIC_TITLE
|
||||||
|
@ -33,7 +33,7 @@ ReanchorBGMap_NoOAMUpdate::
|
|||||||
call _OpenAndCloseMenu_HDMATransferTilemapAndAttrmap
|
call _OpenAndCloseMenu_HDMATransferTilemapAndAttrmap
|
||||||
farcall LoadOW_BGPal7
|
farcall LoadOW_BGPal7
|
||||||
farcall ApplyPals
|
farcall ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
xor a
|
xor a
|
||||||
ldh [hBGMapMode], a
|
ldh [hBGMapMode], a
|
||||||
|
@ -246,7 +246,7 @@ endr
|
|||||||
.loop3
|
.loop3
|
||||||
; Choose one of the middle three Pokemon.
|
; Choose one of the middle three Pokemon.
|
||||||
call Random
|
call Random
|
||||||
and NUM_GRASSMON
|
maskbits NUM_GRASSMON
|
||||||
cp 2
|
cp 2
|
||||||
jr c, .loop3
|
jr c, .loop3
|
||||||
cp 5
|
cp 5
|
||||||
|
@ -811,8 +811,8 @@ ChooseMoveToDelete:
|
|||||||
|
|
||||||
.ChooseMoveToDelete
|
.ChooseMoveToDelete
|
||||||
call SetUpMoveScreenBG
|
call SetUpMoveScreenBG
|
||||||
ld de, DeleteMoveScreenAttrs
|
ld de, DeleteMoveScreen2DMenuData
|
||||||
call SetMenuAttributes
|
call Load2DMenuData
|
||||||
call SetUpMoveList
|
call SetUpMoveList
|
||||||
ld hl, w2DMenuFlags1
|
ld hl, w2DMenuFlags1
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
@ -848,12 +848,12 @@ ChooseMoveToDelete:
|
|||||||
pop af
|
pop af
|
||||||
ret
|
ret
|
||||||
|
|
||||||
DeleteMoveScreenAttrs:
|
DeleteMoveScreen2DMenuData:
|
||||||
db 3, 1
|
db 3, 1 ; cursor start y, x
|
||||||
db 3, 1
|
db 3, 1 ; rows, columns
|
||||||
db $40, $00
|
db $40, $00 ; flags
|
||||||
dn 2, 0
|
dn 2, 0 ; cursor offset
|
||||||
db D_UP | D_DOWN | A_BUTTON | B_BUTTON
|
db D_UP | D_DOWN | A_BUTTON | B_BUTTON ; accepted buttons
|
||||||
|
|
||||||
ManagePokemonMoves:
|
ManagePokemonMoves:
|
||||||
ld a, [wCurPartySpecies]
|
ld a, [wCurPartySpecies]
|
||||||
@ -878,8 +878,8 @@ MoveScreenLoop:
|
|||||||
ld [wPartyMenuCursor], a
|
ld [wPartyMenuCursor], a
|
||||||
call SetUpMoveScreenBG
|
call SetUpMoveScreenBG
|
||||||
call PlaceMoveScreenArrows
|
call PlaceMoveScreenArrows
|
||||||
ld de, MoveScreenAttributes
|
ld de, MoveScreen2DMenuData
|
||||||
call SetMenuAttributes
|
call Load2DMenuData
|
||||||
.loop
|
.loop
|
||||||
call SetUpMoveList
|
call SetUpMoveList
|
||||||
ld hl, w2DMenuFlags1
|
ld hl, w2DMenuFlags1
|
||||||
@ -1077,12 +1077,12 @@ MoveScreenLoop:
|
|||||||
call ClearSprites
|
call ClearSprites
|
||||||
jp ClearTilemap
|
jp ClearTilemap
|
||||||
|
|
||||||
MoveScreenAttributes:
|
MoveScreen2DMenuData:
|
||||||
db 3, 1
|
db 3, 1 ; cursor start y, x
|
||||||
db 3, 1
|
db 3, 1 ; rows, columns
|
||||||
db $40, $00
|
db $40, $00 ; flags
|
||||||
dn 2, 0
|
dn 2, 0 ; cursor offsets
|
||||||
db D_UP | D_DOWN | D_LEFT | D_RIGHT | A_BUTTON | B_BUTTON
|
db D_UP | D_DOWN | D_LEFT | D_RIGHT | A_BUTTON | B_BUTTON ; accepted buttons
|
||||||
|
|
||||||
String_MoveWhere:
|
String_MoveWhere:
|
||||||
db "Where?@"
|
db "Where?@"
|
||||||
|
@ -612,8 +612,8 @@ InitPartyMenuWithCancel:
|
|||||||
; with cancel
|
; with cancel
|
||||||
xor a
|
xor a
|
||||||
ld [wSwitchMon], a
|
ld [wSwitchMon], a
|
||||||
ld de, PartyMenuAttributes
|
ld de, PartyMenu2DMenuData
|
||||||
call SetMenuAttributes
|
call Load2DMenuData
|
||||||
ld a, [wPartyCount]
|
ld a, [wPartyCount]
|
||||||
inc a
|
inc a
|
||||||
ld [w2DMenuNumRows], a ; list length
|
ld [w2DMenuNumRows], a ; list length
|
||||||
@ -637,8 +637,8 @@ InitPartyMenuWithCancel:
|
|||||||
|
|
||||||
InitPartyMenuNoCancel:
|
InitPartyMenuNoCancel:
|
||||||
; no cancel
|
; no cancel
|
||||||
ld de, PartyMenuAttributes
|
ld de, PartyMenu2DMenuData
|
||||||
call SetMenuAttributes
|
call Load2DMenuData
|
||||||
ld a, [wPartyCount]
|
ld a, [wPartyCount]
|
||||||
ld [w2DMenuNumRows], a ; list length
|
ld [w2DMenuNumRows], a ; list length
|
||||||
ld b, a
|
ld b, a
|
||||||
@ -656,20 +656,12 @@ InitPartyMenuNoCancel:
|
|||||||
ld [wMenuJoypadFilter], a
|
ld [wMenuJoypadFilter], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
PartyMenuAttributes:
|
PartyMenu2DMenuData:
|
||||||
; cursor y
|
db 1, 0 ; cursor start y, x
|
||||||
; cursor x
|
db 0, 1 ; rows, columns
|
||||||
; num rows
|
db $60, $00 ; flags
|
||||||
; num cols
|
dn 2, 0 ; cursor offset
|
||||||
; bit 6: animate sprites bit 5: wrap around
|
db 0 ; accepted buttons
|
||||||
; ?
|
|
||||||
; distance between items (hi: y, lo: x)
|
|
||||||
; allowed buttons (mask)
|
|
||||||
db 1, 0
|
|
||||||
db 0, 1
|
|
||||||
db $60, $00
|
|
||||||
dn 2, 0
|
|
||||||
db 0
|
|
||||||
|
|
||||||
PartyMenuSelect:
|
PartyMenuSelect:
|
||||||
; sets carry if exitted menu.
|
; sets carry if exitted menu.
|
||||||
|
@ -1,20 +1,22 @@
|
|||||||
SetMenuAttributes::
|
Load2DMenuData::
|
||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
ld hl, w2DMenuCursorInitY
|
ld hl, w2DMenuData
|
||||||
ld b, $8
|
ld b, w2DMenuDataEnd - w2DMenuData
|
||||||
.loop
|
.loop
|
||||||
ld a, [de]
|
ld a, [de]
|
||||||
inc de
|
inc de
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
dec b
|
dec b
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
|
|
||||||
|
; Reset menu state
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [hli], a
|
ld [hli], a ; wMenuCursorY
|
||||||
ld [hli], a
|
ld [hli], a ; wMenuCursorX
|
||||||
xor a
|
xor a
|
||||||
ld [hli], a
|
ld [hli], a ; wCursorOffCharacter
|
||||||
ld [hli], a
|
ld [hli], a ; wCursorCurrentTile
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
pop bc
|
pop bc
|
||||||
pop hl
|
pop hl
|
||||||
|
@ -99,7 +99,7 @@ DmgToCgbBGPals::
|
|||||||
ld c, 8
|
ld c, 8
|
||||||
call CopyPals
|
call CopyPals
|
||||||
; request pal update
|
; request pal update
|
||||||
ld a, 1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
|
|
||||||
pop af
|
pop af
|
||||||
@ -147,7 +147,7 @@ DmgToCgbObjPals::
|
|||||||
ld c, 8
|
ld c, 8
|
||||||
call CopyPals
|
call CopyPals
|
||||||
; request pal update
|
; request pal update
|
||||||
ld a, 1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
|
|
||||||
pop af
|
pop af
|
||||||
@ -182,7 +182,7 @@ DmgToCgbObjPal0::
|
|||||||
ld b, a
|
ld b, a
|
||||||
ld c, 1
|
ld c, 1
|
||||||
call CopyPals
|
call CopyPals
|
||||||
ld a, 1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
|
|
||||||
pop af
|
pop af
|
||||||
@ -219,7 +219,7 @@ DmgToCgbObjPal1::
|
|||||||
ld b, a
|
ld b, a
|
||||||
ld c, 1
|
ld c, 1
|
||||||
call CopyPals
|
call CopyPals
|
||||||
ld a, 1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
|
|
||||||
pop af
|
pop af
|
||||||
@ -319,7 +319,7 @@ ReloadSpritesNoPalettes::
|
|||||||
call ByteFill
|
call ByteFill
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, 1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ret
|
ret
|
||||||
|
@ -698,7 +698,7 @@ TextCommands::
|
|||||||
dw TextCommand_PROMPT_BUTTON ; TX_PROMPT_BUTTON
|
dw TextCommand_PROMPT_BUTTON ; TX_PROMPT_BUTTON
|
||||||
dw TextCommand_SCROLL ; TX_SCROLL
|
dw TextCommand_SCROLL ; TX_SCROLL
|
||||||
dw TextCommand_START_ASM ; TX_START_ASM
|
dw TextCommand_START_ASM ; TX_START_ASM
|
||||||
dw TextCommand_NUM ; TX_NUM
|
dw TextCommand_DECIMAL ; TX_DECIMAL
|
||||||
dw TextCommand_PAUSE ; TX_PAUSE
|
dw TextCommand_PAUSE ; TX_PAUSE
|
||||||
dw TextCommand_SOUND ; TX_SOUND_DEX_FANFARE_50_79
|
dw TextCommand_SOUND ; TX_SOUND_DEX_FANFARE_50_79
|
||||||
dw TextCommand_DOTS ; TX_DOTS
|
dw TextCommand_DOTS ; TX_DOTS
|
||||||
@ -851,8 +851,8 @@ TextCommand_START_ASM::
|
|||||||
ld [hl], a
|
ld [hl], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
TextCommand_NUM::
|
TextCommand_DECIMAL::
|
||||||
; print a number
|
; print a decimal number
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld e, a
|
ld e, a
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
|
@ -197,7 +197,7 @@ ClearPalettes::
|
|||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
|
|
||||||
; Request palette update
|
; Request palette update
|
||||||
ld a, 1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
2
hram.asm
2
hram.asm
@ -89,7 +89,7 @@ hPrintNumBuffer:: ds 10
|
|||||||
|
|
||||||
NEXTU
|
NEXTU
|
||||||
; miscellaneous
|
; miscellaneous
|
||||||
ds 9
|
ds 9
|
||||||
hMGStatusFlags:: db
|
hMGStatusFlags:: db
|
||||||
ENDU
|
ENDU
|
||||||
|
|
||||||
|
@ -61,9 +61,9 @@ text_asm: MACRO
|
|||||||
db TX_START_ASM
|
db TX_START_ASM
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
const TX_NUM ; $09
|
const TX_DECIMAL ; $09
|
||||||
text_decimal: MACRO
|
text_decimal: MACRO
|
||||||
db TX_NUM
|
db TX_DECIMAL
|
||||||
dw \1 ; address
|
dw \1 ; address
|
||||||
dn \2, \3 ; bytes, digits
|
dn \2, \3 ; bytes, digits
|
||||||
ENDM
|
ENDM
|
||||||
|
@ -409,7 +409,7 @@ Function1002dc:
|
|||||||
Function1002ed:
|
Function1002ed:
|
||||||
farcall LoadOW_BGPal7
|
farcall LoadOW_BGPal7
|
||||||
farcall ApplyPals
|
farcall ApplyPals
|
||||||
ld a, $01
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
call DelayFrame
|
call DelayFrame
|
||||||
ret
|
ret
|
||||||
@ -1689,7 +1689,7 @@ Unknown_100b0a:
|
|||||||
|
|
||||||
popc
|
popc
|
||||||
|
|
||||||
Function100b12:
|
Mobile_LoadBattleMenu:
|
||||||
call Function100dd8
|
call Function100dd8
|
||||||
ret c
|
ret c
|
||||||
ld hl, BattleMenuHeader
|
ld hl, BattleMenuHeader
|
||||||
@ -1747,7 +1747,7 @@ Function100b7a:
|
|||||||
set 7, [hl]
|
set 7, [hl]
|
||||||
ret
|
ret
|
||||||
|
|
||||||
MobileMoveSelectionScreen:
|
Mobile_MoveSelectionScreen:
|
||||||
xor a
|
xor a
|
||||||
ld [wMoveSwapBuffer], a
|
ld [wMoveSwapBuffer], a
|
||||||
farcall CheckPlayerHasUsableMoves
|
farcall CheckPlayerHasUsableMoves
|
||||||
@ -1765,7 +1765,7 @@ MobileMoveSelectionScreen:
|
|||||||
.GetMoveSelection:
|
.GetMoveSelection:
|
||||||
xor a
|
xor a
|
||||||
ldh [hBGMapMode], a
|
ldh [hBGMapMode], a
|
||||||
call Function100c74
|
call .ListMoves
|
||||||
call Function100c98
|
call Function100c98
|
||||||
.master_loop
|
.master_loop
|
||||||
farcall MoveInfoBox
|
farcall MoveInfoBox
|
||||||
@ -1860,7 +1860,7 @@ MobileMoveSelectionScreen:
|
|||||||
call SafeLoadTempTilemapToTilemap
|
call SafeLoadTempTilemapToTilemap
|
||||||
jp .GetMoveSelection
|
jp .GetMoveSelection
|
||||||
|
|
||||||
Function100c74:
|
.ListMoves:
|
||||||
hlcoord 0, 8
|
hlcoord 0, 8
|
||||||
ld b, 8
|
ld b, 8
|
||||||
ld c, 8
|
ld c, 8
|
||||||
@ -1876,8 +1876,8 @@ Function100c74:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
Function100c98:
|
Function100c98:
|
||||||
ld de, .attrs
|
ld de, .data
|
||||||
call SetMenuAttributes
|
call Load2DMenuData
|
||||||
ld a, [wNumMoves]
|
ld a, [wNumMoves]
|
||||||
inc a
|
inc a
|
||||||
ld [w2DMenuNumRows], a
|
ld [w2DMenuNumRows], a
|
||||||
@ -1886,12 +1886,12 @@ Function100c98:
|
|||||||
ld [wMenuCursorY], a
|
ld [wMenuCursorY], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.attrs
|
.data:
|
||||||
db 10, 1
|
db 10, 1 ; cursor start y, x
|
||||||
db 255, 1
|
db -1, 1 ; rows, columns
|
||||||
db $a0, $00
|
db $a0, $00 ; flags
|
||||||
dn 2, 0
|
dn 2, 0 ; cursor offsets
|
||||||
db D_UP | D_DOWN | A_BUTTON | B_BUTTON
|
db D_UP | D_DOWN | A_BUTTON | B_BUTTON ; accepted buttons
|
||||||
|
|
||||||
Mobile_PartyMenuSelect:
|
Mobile_PartyMenuSelect:
|
||||||
call Function100dd8
|
call Function100dd8
|
||||||
@ -2210,7 +2210,7 @@ Function100eca:
|
|||||||
|
|
||||||
Function100ed4:
|
Function100ed4:
|
||||||
farcall ApplyPals
|
farcall ApplyPals
|
||||||
ld a, $01
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -5944,7 +5944,7 @@ Function1029cf:
|
|||||||
ld hl, wcd4b
|
ld hl, wcd4b
|
||||||
set 1, [hl]
|
set 1, [hl]
|
||||||
ld de, MenuData3_102a33
|
ld de, MenuData3_102a33
|
||||||
call SetMenuAttributes
|
call Load2DMenuData
|
||||||
ld a, [wcd4a]
|
ld a, [wcd4a]
|
||||||
inc a
|
inc a
|
||||||
ld [wcd4a], a
|
ld [wcd4a], a
|
||||||
@ -5981,11 +5981,11 @@ String_102a26:
|
|||||||
db "@"
|
db "@"
|
||||||
|
|
||||||
MenuData3_102a33:
|
MenuData3_102a33:
|
||||||
db 8, 11
|
db 8, 11 ; cursor start y, x
|
||||||
db 2, 1
|
db 2, 1 ; rows, columns
|
||||||
db $80, $00
|
db $80, $00 ; flags
|
||||||
dn 2, 0
|
dn 2, 0 ; cursor offset
|
||||||
db A_BUTTON
|
db A_BUTTON ; accepted buttons
|
||||||
|
|
||||||
Function102a3b:
|
Function102a3b:
|
||||||
ld a, [wcd30]
|
ld a, [wcd30]
|
||||||
@ -6115,8 +6115,8 @@ Function102b4e:
|
|||||||
ld [wMonType], a
|
ld [wMonType], a
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
push af
|
push af
|
||||||
ld de, Unknown_102b73
|
ld de, MenuData_102b73
|
||||||
call SetMenuAttributes
|
call Load2DMenuData
|
||||||
pop af
|
pop af
|
||||||
ld [wMenuCursorY], a
|
ld [wMenuCursorY], a
|
||||||
ld a, [wOTPartyCount]
|
ld a, [wOTPartyCount]
|
||||||
@ -6130,32 +6130,32 @@ Function102b68: ; unreferenced
|
|||||||
call ByteFill
|
call ByteFill
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Unknown_102b73:
|
MenuData_102b73:
|
||||||
db 9, 6
|
db 9, 6 ; cursor start y, x
|
||||||
db 255, 1
|
db -1, 1 ; rows, columns
|
||||||
db $a0, $00
|
db $a0, $00 ; flags
|
||||||
dn 1, 0
|
dn 1, 0 ; cursor offset
|
||||||
db D_UP | D_DOWN | A_BUTTON
|
db D_UP | D_DOWN | A_BUTTON ; accepted buttons
|
||||||
|
|
||||||
Function102b7b:
|
Function102b7b:
|
||||||
xor a
|
xor a
|
||||||
ld [wMonType], a
|
ld [wMonType], a
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
push af
|
push af
|
||||||
ld de, Unknown_102b94
|
ld de, MenuData_102b94
|
||||||
call SetMenuAttributes
|
call Load2DMenuData
|
||||||
pop af
|
pop af
|
||||||
ld [wMenuCursorY], a
|
ld [wMenuCursorY], a
|
||||||
ld a, [wPartyCount]
|
ld a, [wPartyCount]
|
||||||
ld [w2DMenuNumRows], a
|
ld [w2DMenuNumRows], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Unknown_102b94:
|
MenuData_102b94:
|
||||||
db 1, 6
|
db 1, 6 ; cursor start y, x
|
||||||
db 255, 1
|
db 255, 1 ; rows, columns
|
||||||
db $a0, $00
|
db $a0, $00 ; flags
|
||||||
dn 1, 0
|
dn 1, 0 ; cursor offset
|
||||||
db D_UP | D_DOWN | A_BUTTON
|
db D_UP | D_DOWN | A_BUTTON ; accepted buttons
|
||||||
|
|
||||||
Function102b9c:
|
Function102b9c:
|
||||||
ld a, [wcd4d]
|
ld a, [wcd4d]
|
||||||
|
@ -1450,7 +1450,7 @@ Function108b5a:
|
|||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1474,7 +1474,7 @@ Function108b78:
|
|||||||
ld [hld], a
|
ld [hld], a
|
||||||
pop af
|
pop af
|
||||||
ldh [rSVBK], a
|
ldh [rSVBK], a
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -650,7 +650,7 @@ Function16cbd1:
|
|||||||
ld a, $5
|
ld a, $5
|
||||||
call FarCopyWRAM
|
call FarCopyWRAM
|
||||||
farcall ApplyPals
|
farcall ApplyPals
|
||||||
ld a, $1
|
ld a, TRUE
|
||||||
ldh [hCGBPalUpdate], a
|
ldh [hCGBPalUpdate], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
7
wram.asm
7
wram.asm
@ -1436,13 +1436,14 @@ wcf65:: db
|
|||||||
wcf66:: db
|
wcf66:: db
|
||||||
|
|
||||||
NEXTU
|
NEXTU
|
||||||
; intro and title data
|
; intro data
|
||||||
wIntroSceneFrameCounter:: db
|
wIntroSceneFrameCounter:: db
|
||||||
UNION
|
|
||||||
wIntroSceneTimer:: db
|
wIntroSceneTimer:: db
|
||||||
|
|
||||||
NEXTU
|
NEXTU
|
||||||
|
; title data
|
||||||
|
wTitleScreenSelectedOption:: db
|
||||||
wTitleScreenTimer:: dw
|
wTitleScreenTimer:: dw
|
||||||
ENDU
|
|
||||||
|
|
||||||
NEXTU
|
NEXTU
|
||||||
; credits data
|
; credits data
|
||||||
|
Loading…
Reference in New Issue
Block a user