Name all functions in gfx/pics/animation.asm

This commit is contained in:
pikalaxalt
2016-05-15 23:56:09 -04:00
parent 1544185bec
commit e515543500
2 changed files with 185 additions and 179 deletions

View File

@@ -116,7 +116,7 @@ LoadMonAnimation: ; d00a3
ld b, [hl] ld b, [hl]
ld c, a ld c, a
pop hl pop hl
call Functiond01d6 call PokeAnim_InitPicAttributes
ret ret
; d00b4 ; d00b4
@@ -152,7 +152,7 @@ setup_command: macro
\1_: dw \1 \1_: dw \1
endm endm
setup_command PokeAnim_Finish setup_command PokeAnim_Finish
setup_command PokeAnim_Nop setup_command PokeAnim_BasePic
setup_command PokeAnim_SetWait setup_command PokeAnim_SetWait
setup_command PokeAnim_Wait setup_command PokeAnim_Wait
setup_command PokeAnim_Setup setup_command PokeAnim_Setup
@@ -185,8 +185,8 @@ PokeAnim_Wait: ; d00fe
PokeAnim_Setup: ; d010b PokeAnim_Setup: ; d010b
ld c, FALSE ld c, FALSE
ld b, 0 ld b, 0
call Functiond0228 call PokeAnim_InitAnim
call Functiond0504 call PokeAnim_SetVBank1
ld a, [wPokeAnimSceneIndex] ld a, [wPokeAnimSceneIndex]
inc a inc a
ld [wPokeAnimSceneIndex], a ld [wPokeAnimSceneIndex], a
@@ -196,8 +196,8 @@ PokeAnim_Setup: ; d010b
PokeAnim_Setup2: ; d011d PokeAnim_Setup2: ; d011d
ld c, FALSE ld c, FALSE
ld b, 4 ld b, 4
call Functiond0228 call PokeAnim_InitAnim
call Functiond0504 call PokeAnim_SetVBank1
ld a, [wPokeAnimSceneIndex] ld a, [wPokeAnimSceneIndex]
inc a inc a
ld [wPokeAnimSceneIndex], a ld [wPokeAnimSceneIndex], a
@@ -207,8 +207,8 @@ PokeAnim_Setup2: ; d011d
PokeAnim_Extra: ; d012f PokeAnim_Extra: ; d012f
ld c, TRUE ld c, TRUE
ld b, 0 ld b, 0
call Functiond0228 call PokeAnim_InitAnim
call Functiond0504 call PokeAnim_SetVBank1
ld a, [wPokeAnimSceneIndex] ld a, [wPokeAnimSceneIndex]
inc a inc a
ld [wPokeAnimSceneIndex], a ld [wPokeAnimSceneIndex], a
@@ -216,11 +216,11 @@ PokeAnim_Extra: ; d012f
; d0141 ; d0141
PokeAnim_Play: ; d0141 PokeAnim_Play: ; d0141
call Functiond0250 call PokeAnim_DoAnimScript
ld a, [w2_d17e] ld a, [wPokeAnimJumptableIndex]
bit 7, a bit 7, a
ret z ret z
call Functiond04bd call PokeAnim_PlaceGraphic
ld a, [wPokeAnimSceneIndex] ld a, [wPokeAnimSceneIndex]
inc a inc a
ld [wPokeAnimSceneIndex], a ld [wPokeAnimSceneIndex], a
@@ -228,8 +228,8 @@ PokeAnim_Play: ; d0141
; d0155 ; d0155
PokeAnim_Play2: ; d0155 PokeAnim_Play2: ; d0155
call Functiond0250 call PokeAnim_DoAnimScript
ld a, [w2_d17e] ld a, [wPokeAnimJumptableIndex]
bit 7, a bit 7, a
ret z ret z
ld a, [wPokeAnimSceneIndex] ld a, [wPokeAnimSceneIndex]
@@ -238,8 +238,8 @@ PokeAnim_Play2: ; d0155
ret ret
; d0166 ; d0166
PokeAnim_Nop: ; d0166 PokeAnim_BasePic: ; d0166
call Functiond01a9 call PokeAnim_DeinitFrames
ld a, [wPokeAnimSceneIndex] ld a, [wPokeAnimSceneIndex]
inc a inc a
ld [wPokeAnimSceneIndex], a ld [wPokeAnimSceneIndex], a
@@ -247,7 +247,7 @@ PokeAnim_Nop: ; d0166
; d0171 ; d0171
PokeAnim_Finish: ; d0171 PokeAnim_Finish: ; d0171
call Functiond01a9 call PokeAnim_DeinitFrames
ld hl, wPokeAnimSceneIndex ld hl, wPokeAnimSceneIndex
set 7, [hl] set 7, [hl]
ret ret
@@ -282,14 +282,14 @@ PokeAnim_StereoCry: ; d0196
ret ret
; d01a9 ; d01a9
Functiond01a9: ; d01a9 PokeAnim_DeinitFrames: ; d01a9
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, $2 ld a, $2
ld [rSVBK], a ld [rSVBK], a
call Functiond04bd call PokeAnim_PlaceGraphic
callba HDMATransferTileMapToWRAMBank3 callba HDMATransferTileMapToWRAMBank3
call Functiond0536 call PokeAnim_SetVBank0
callba HDMATransferAttrMapToWRAMBank3 callba HDMATransferAttrMapToWRAMBank3
pop af pop af
ld [rSVBK], a ld [rSVBK], a
@@ -310,7 +310,7 @@ AnimateMon_CheckIfPokemon: ; d01c6
ret ret
; d01d6 ; d01d6
Functiond01d6: ; d01d6 PokeAnim_InitPicAttributes: ; d01d6
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, $2 ld a, $2
@@ -337,28 +337,33 @@ Functiond01d6: ; d01d6
ld [wPokeAnimCoord], a ld [wPokeAnimCoord], a
ld a, h ld a, h
ld [wPokeAnimCoord + 1], a ld [wPokeAnimCoord + 1], a
; d = ????? ; d = start tile
ld a, d ld a, d
ld [w2_d16e], a ld [wPokeAnimGraphicStartTile], a
ld a, $1 ld a, $1
ld hl, CurPartySpecies ld hl, CurPartySpecies
call GetFarWRAMByte call GetFarWRAMByte
ld [wPokeAnimSpecies], a ld [wPokeAnimSpecies], a
ld a, $1 ld a, $1
ld hl, UnownLetter ld hl, UnownLetter
call GetFarWRAMByte call GetFarWRAMByte
ld [wPokeAnimUnownLetter], a ld [wPokeAnimUnownLetter], a
call PokeAnim_GetSpeciesOrUnown call PokeAnim_GetSpeciesOrUnown
ld [wPokeAnimSpeciesOrUnown], a ld [wPokeAnimSpeciesOrUnown], a
call PokeAnim_GetFrontpicDims call PokeAnim_GetFrontpicDims
ld a, c ld a, c
ld [wPokeAnimFrontpicHeight], a ld [wPokeAnimFrontpicHeight], a
pop af pop af
ld [rSVBK], a ld [rSVBK], a
ret ret
; d0228 ; d0228
Functiond0228: ; d0228 PokeAnim_InitAnim: ; d0228
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, $2 ld a, $2
@@ -370,7 +375,7 @@ Functiond0228: ; d0228
call ByteFill call ByteFill
pop bc pop bc
ld a, b ld a, b
ld [w2_d173], a ld [wPokeAnimSpeed], a
ld a, c ld a, c
ld [wPokeAnimExtraFlag], a ld [wPokeAnimExtraFlag], a
call GetMonAnimPointer call GetMonAnimPointer
@@ -381,76 +386,75 @@ Functiond0228: ; d0228
ret ret
; d0250 ; d0250
Functiond0250: ; d0250 PokeAnim_DoAnimScript: ; d0250
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
.loop
Functiond0253: ; d0253 ld a, [wPokeAnimJumptableIndex]
ld a, [w2_d17e]
and $7f and $7f
ld hl, Tabled025d ld hl, .Jumptable
rst JumpTable rst JumpTable
ret ret
; d025d ; d025d
Tabled025d: ; d025d .Jumptable: ; d025d
dw Functiond0261 dw .RunAnim
dw Functiond0282 dw .WaitAnim
; d0261 ; d0261
Functiond0261: ; d0261 .RunAnim: ; d0261
call Functiond02f8 call PokeAnim_GetPointer
ld a, [w2_d182] ld a, [wPokeAnimCommand]
cp $ff cp -1
jr z, PokeAnim_End jr z, PokeAnim_End
cp $fe cp -2
jr z, PokeAnim_SetRepeat jr z, .SetRepeat
cp $fd cp -3
jr z, PokeAnim_DoRepeat jr z, .DoRepeat
call Functiond02c8 call PokeAnim_GetFrame
ld a, [w2_d183] ld a, [wPokeAnimParameter]
call Functiond02ae call PokeAnim_GetDuration
ld [wPokeAnimWaitCounter], a ld [wPokeAnimWaitCounter], a
call Functiond02dc call PokeAnim_StartWaitAnim
.WaitAnim: ; d0282
Functiond0282: ; d0282
ld a, [wPokeAnimWaitCounter] ld a, [wPokeAnimWaitCounter]
dec a dec a
ld [wPokeAnimWaitCounter], a ld [wPokeAnimWaitCounter], a
ret nz ret nz
call Functiond02e4 call PokeAnim_StopWaitAnim
ret ret
; d028e ; d028e
PokeAnim_SetRepeat: ; d028e .SetRepeat: ; d028e
ld a, [w2_d183] ld a, [wPokeAnimParameter]
ld [wPokeAnimRepeatTimer], a ld [wPokeAnimRepeatTimer], a
jr Functiond0253 jr .loop
; d0296 ; d0296
PokeAnim_DoRepeat: ; d0296 .DoRepeat: ; d0296
ld a, [wPokeAnimRepeatTimer] ld a, [wPokeAnimRepeatTimer]
and a and a
ret z ret z
dec a dec a
ld [wPokeAnimRepeatTimer], a ld [wPokeAnimRepeatTimer], a
ret z ret z
ld a, [w2_d183] ld a, [wPokeAnimParameter]
ld [w2_d17d], a ld [wPokeAnimFrame], a
jr Functiond0253 jr .loop
; d02a8 ; d02a8
PokeAnim_End: ; d02a8 PokeAnim_End: ; d02a8
ld hl, w2_d17e ld hl, wPokeAnimJumptableIndex
set 7, [hl] set 7, [hl]
ret ret
; d02ae ; d02ae
Functiond02ae: ; d02ae PokeAnim_GetDuration: ; d02ae
; a * (1 + [wPokeAnimSpeed] / 16)
ld c, a ld c, a
ld b, $0 ld b, $0
ld hl, 0 ld hl, 0
ld a, [w2_d173] ld a, [wPokeAnimSpeed]
call AddNTimes call AddNTimes
ld a, h ld a, h
swap a swap a
@@ -464,30 +468,30 @@ Functiond02ae: ; d02ae
ret ret
; d02c8 ; d02c8
Functiond02c8: ; d02c8 PokeAnim_GetFrame: ; d02c8
call Functiond04bd call PokeAnim_PlaceGraphic
ld a, [w2_d182] ld a, [wPokeAnimCommand]
and a and a
ret z ret z
call Functiond031b call PokeAnim_GetBitmaskIndex
push hl push hl
call Functiond033b call PokeAnim_CopyBitmaskToBuffer
pop hl pop hl
call Functiond036b call PokeAnim_ConvertAndApplyBitmask
ret ret
; d02dc ; d02dc
Functiond02dc: ; d02dc PokeAnim_StartWaitAnim: ; d02dc
ld a, [w2_d17e] ld a, [wPokeAnimJumptableIndex]
inc a inc a
ld [w2_d17e], a ld [wPokeAnimJumptableIndex], a
ret ret
; d02e4 ; d02e4
Functiond02e4: ; d02e4 PokeAnim_StopWaitAnim: ; d02e4
ld a, [w2_d17e] ld a, [wPokeAnimJumptableIndex]
dec a dec a
ld [w2_d17e], a ld [wPokeAnimJumptableIndex], a
ret ret
; d02ec ; d02ec
@@ -503,9 +507,9 @@ PokeAnim_IsEgg: ; d02f2
ret ret
; d02f8 ; d02f8
Functiond02f8: ; d02f8 PokeAnim_GetPointer: ; d02f8
push hl push hl
ld a, [w2_d17d] ld a, [wPokeAnimFrame]
ld e, a ld e, a
ld d, $0 ld d, $0
ld hl, wPokeAnimPointerAddr ld hl, wPokeAnimPointerAddr
@@ -517,17 +521,17 @@ Functiond02f8: ; d02f8
ld a, [wPokeAnimPointerBank] ld a, [wPokeAnimPointerBank]
call GetFarHalfword call GetFarHalfword
ld a, l ld a, l
ld [w2_d182], a ld [wPokeAnimCommand], a
ld a, h ld a, h
ld [w2_d183], a ld [wPokeAnimParameter], a
ld hl, w2_d17d ld hl, wPokeAnimFrame
inc [hl] inc [hl]
pop hl pop hl
ret ret
; d031b ; d031b
Functiond031b: ; d031b PokeAnim_GetBitmaskIndex: ; d031b
ld a, [w2_d182] ld a, [wPokeAnimCommand]
dec a dec a
ld c, a ld c, a
ld b, $0 ld b, $0
@@ -541,34 +545,34 @@ Functiond031b: ; d031b
call GetFarHalfword call GetFarHalfword
ld a, [wPokeAnimFramesBank] ld a, [wPokeAnimFramesBank]
call GetFarByte call GetFarByte
ld [w2_d180], a ld [wPokeAnimCurBitmask], a
inc hl inc hl
ret ret
; d033b ; d033b
Functiond033b: ; d033b PokeAnim_CopyBitmaskToBuffer: ; d033b
call Functiond0356 call .GetSize
push bc push bc
ld hl, wPokeAnimBitmaskAddr ld hl, wPokeAnimBitmaskAddr
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
ld l, a ld l, a
ld a, [w2_d180] ld a, [wPokeAnimCurBitmask]
call AddNTimes call AddNTimes
pop bc pop bc
ld de, w2_d188 ld de, wPokeAnimBitmaskBuffer
ld a, [wPokeAnimBitmaskBank] ld a, [wPokeAnimBitmaskBank]
call FarCopyBytes call FarCopyBytes
ret ret
; d0356 ; d0356
Functiond0356: ; d0356 .GetSize: ; d0356
push hl push hl
ld a, [wPokeAnimFrontpicHeight] ld a, [wPokeAnimFrontpicHeight]
sub 5 sub 5 ; to get a number 0, 1, or 2
ld c, a ld c, a
ld b, 0 ld b, 0
ld hl, Unknown_d0368 ld hl, .Sizes
add hl, bc add hl, bc
ld c, [hl] ld c, [hl]
ld b, 0 ld b, 0
@@ -576,16 +580,28 @@ Functiond0356: ; d0356
ret ret
; d0368 ; d0368
Unknown_d0368: db 4, 5, 7 .Sizes: db 4, 5, 7
Functiond036b: ; d036b poke_anim_box: MACRO
y = 7
rept \1
x = 7 +- \1
rept \1
db x + y
x = x + 1
endr
y = y + 7
endr
endm
PokeAnim_ConvertAndApplyBitmask: ; d036b
xor a xor a
ld [w2_d187], a ld [wPokeAnimBitmaskCurBit], a
ld [w2_d186], a ld [wPokeAnimBitmaskCurRow], a
ld [w2_d185], a ld [wPokeAnimBitmaskCurCol], a
.loop .loop
push hl push hl
call Functiond0392 call .IsCurBitSet
pop hl pop hl
ld a, b ld a, b
and a and a
@@ -595,38 +611,40 @@ Functiond036b: ; d036b
call GetFarByte call GetFarByte
inc hl inc hl
push hl push hl
call Functiond03bd call .ApplyFrame
pop hl pop hl
.next .next
push hl push hl
call Functiond0499 call .NextBit
pop hl pop hl
jr nc, .loop jr nc, .loop
ret ret
; d0392 ; d0392
Functiond0392: ; d0392 .IsCurBitSet: ; d0392
ld a, [w2_d187] ; which byte
ld a, [wPokeAnimBitmaskCurBit]
and $f8 and $f8
rrca rrca
rrca rrca
rrca rrca
ld e, a ld e, a
ld d, 0 ld d, 0
ld hl, w2_d188 ld hl, wPokeAnimBitmaskBuffer
add hl, de add hl, de
ld b, [hl] ld b, [hl]
ld a, [w2_d187] ; which bit
and 7 ld a, [wPokeAnimBitmaskCurBit]
and $7
jr z, .skip jr z, .skip
ld c, a ld c, a
ld a, b ld a, b
.loop .loop2
rrca rrca
dec c dec c
jr nz, .loop jr nz, .loop2
ld b, a ld b, a
.skip .skip
@@ -637,40 +655,40 @@ Functiond0392: ; d0392
.finish .finish
ld b, a ld b, a
ld hl, w2_d187 ld hl, wPokeAnimBitmaskCurBit
inc [hl] inc [hl]
ret ret
; d03bd ; d03bd
Functiond03bd: ; d03bd .ApplyFrame: ; d03bd
push af push af
call Functiond03cd call .GetCoord
pop af pop af
push hl push hl
call Functiond03f7 call .GetTilemap
ld hl, w2_d16e ld hl, wPokeAnimGraphicStartTile
add [hl] add [hl]
pop hl pop hl
ld [hl], a ld [hl], a
ret ret
; d03cd ; d03cd
Functiond03cd: ; d03cd .GetCoord: ; d03cd
call Functiond046c call .GetStartCoord
ld a, [w2_d186] ld a, [wPokeAnimBitmaskCurRow]
ld bc, SCREEN_WIDTH ld bc, SCREEN_WIDTH
call AddNTimes call AddNTimes
ld a, [wBoxAlignment] ld a, [wBoxAlignment]
and a and a
jr nz, .go jr nz, .go
ld a, [w2_d185] ld a, [wPokeAnimBitmaskCurCol]
ld e, a ld e, a
ld d, 0 ld d, 0
add hl, de add hl, de
jr .skip jr .skip2
.go .go
ld a, [w2_d185] ld a, [wPokeAnimBitmaskCurCol]
ld e, a ld e, a
ld a, l ld a, l
sub e sub e
@@ -679,13 +697,14 @@ Functiond03cd: ; d03cd
sbc 0 sbc 0
ld h, a ld h, a
.skip .skip2
ret ret
; d03f4 ; d03f4
Unknown_d03f4: db 6, 5, 4 ; XXX
db 6, 5, 4
Functiond03f7: ; d03f7 .GetTilemap: ; d03f7
push af push af
ld a, [wPokeAnimFrontpicHeight] ld a, [wPokeAnimFrontpicHeight]
cp 5 cp 5
@@ -701,7 +720,7 @@ Functiond03f7: ; d03f7
jr nc, .add_24 jr nc, .add_24
push hl push hl
push de push de
ld hl, Unknown_d042f ld hl, ._5by5
ld e, a ld e, a
ld d, 0 ld d, 0
add hl, de add hl, de
@@ -720,7 +739,7 @@ Functiond03f7: ; d03f7
jr nc, .add_13 jr nc, .add_13
push hl push hl
push de push de
ld hl, Unknown_d0448 ld hl, ._6by6
ld e, a ld e, a
ld d, 0 ld d, 0
add hl, de add hl, de
@@ -734,28 +753,16 @@ Functiond03f7: ; d03f7
ret ret
; d042f ; d042f
macro_d042f: MACRO ._5by5:
y = 7 poke_anim_box 5
rept 7 +- \1
x = \1
rept 7 +- \1
db x + y
x = x + 1
endr
y = y + 7
endr
endm
Unknown_d042f:
macro_d042f 2
; db 9, 10, 11, 12, 13 ; db 9, 10, 11, 12, 13
; db 16, 17, 18, 19, 20 ; db 16, 17, 18, 19, 20
; db 23, 24, 25, 26, 27 ; db 23, 24, 25, 26, 27
; db 30, 31, 32, 33, 34 ; db 30, 31, 32, 33, 34
; db 37, 38, 39, 40, 41 ; db 37, 38, 39, 40, 41
Unknown_d0448: ._6by6:
macro_d042f 1 poke_anim_box 6
; db 8, 9, 10, 11, 12, 13 ; db 8, 9, 10, 11, 12, 13
; db 15, 16, 17, 18, 19, 20 ; db 15, 16, 17, 18, 19, 20
; db 22, 23, 24, 25, 26, 27 ; db 22, 23, 24, 25, 26, 27
@@ -764,7 +771,7 @@ Unknown_d0448:
; db 43, 44, 45, 46, 47, 48 ; db 43, 44, 45, 46, 47, 48
Functiond046c: ; d046c .GetStartCoord: ; d046c
ld hl, wPokeAnimCoord ld hl, wPokeAnimCoord
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
@@ -775,12 +782,12 @@ Functiond046c: ; d046c
ld bc, 6 ld bc, 6
cp 7 cp 7
jr z, .okay jr z, .okay
ld de, 21 ld de, SCREEN_WIDTH + 1
ld bc, 25 ld bc, SCREEN_WIDTH + 5
cp 6 cp 6
jr z, .okay jr z, .okay
ld de, 41 ld de, 2 * SCREEN_WIDTH + 1
ld bc, 45 ld bc, 2 * SCREEN_WIDTH + 5
.okay .okay
ld a, [wBoxAlignment] ld a, [wBoxAlignment]
@@ -794,19 +801,19 @@ Functiond046c: ; d046c
ret ret
; d0499 ; d0499
Functiond0499: ; d0499 .NextBit: ; d0499
ld a, [w2_d186] ld a, [wPokeAnimBitmaskCurRow]
inc a inc a
ld [w2_d186], a ld [wPokeAnimBitmaskCurRow], a
ld c, a ld c, a
ld a, [wPokeAnimFrontpicHeight] ld a, [wPokeAnimFrontpicHeight]
cp c cp c
jr nz, .no_carry jr nz, .no_carry
xor a xor a
ld [w2_d186], a ld [wPokeAnimBitmaskCurRow], a
ld a, [w2_d185] ld a, [wPokeAnimBitmaskCurCol]
inc a inc a
ld [w2_d185], a ld [wPokeAnimBitmaskCurCol], a
ld c, a ld c, a
ld a, [wPokeAnimFrontpicHeight] ld a, [wPokeAnimFrontpicHeight]
cp c cp c
@@ -819,16 +826,16 @@ Functiond0499: ; d0499
ret ret
; d04bd ; d04bd
Functiond04bd: ; d04bd PokeAnim_PlaceGraphic: ; d04bd
call Functiond04f6 call .ClearBox
ld a, [wBoxAlignment] ld a, [wBoxAlignment]
and a and a
jr nz, .minus_one_and_six jr nz, .flipped
ld de, 1 ld de, 1
ld bc, 0 ld bc, 0
jr .okay jr .okay
.minus_one_and_six .flipped
ld de, -1 ld de, -1
ld bc, 6 ld bc, 6
@@ -840,7 +847,7 @@ Functiond04bd: ; d04bd
add hl, bc add hl, bc
ld c, 7 ld c, 7
ld b, 7 ld b, 7
ld a, [w2_d16e] ld a, [wPokeAnimGraphicStartTile]
.loop .loop
push bc push bc
push hl push hl
@@ -861,7 +868,7 @@ Functiond04bd: ; d04bd
ret ret
; d04f6 ; d04f6
Functiond04f6: ; d04f6 .ClearBox: ; d04f6
ld hl, wPokeAnimCoord ld hl, wPokeAnimCoord
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
@@ -872,67 +879,67 @@ Functiond04f6: ; d04f6
ret ret
; d0504 ; d0504
Functiond0504: ; d0504 PokeAnim_SetVBank1: ; d0504
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, $2 ld a, $2
ld [rSVBK], a ld [rSVBK], a
xor a xor a
ld [hBGMapMode], a ld [hBGMapMode], a
call Functiond051b call .SetFlag
callba HDMATransferAttrMapToWRAMBank3 callba HDMATransferAttrMapToWRAMBank3
pop af pop af
ld [rSVBK], a ld [rSVBK], a
ret ret
; d051b ; d051b
Functiond051b: ; d051b .SetFlag: ; d051b
call Functiond0551 call PokeAnim_GetAttrMapCoord
ld b, 7 ld b, 7
ld c, 7 ld c, 7
ld de, $0014 ld de, SCREEN_WIDTH
.asm_d0525 .row
push bc push bc
push hl push hl
.asm_d0527 .col
ld a, [hl] ld a, [hl]
or 8 or 8
ld [hl], a ld [hl], a
add hl, de add hl, de
dec c dec c
jr nz, .asm_d0527 jr nz, .col
pop hl pop hl
inc hl inc hl
pop bc pop bc
dec b dec b
jr nz, .asm_d0525 jr nz, .row
ret ret
; d0536 ; d0536
Functiond0536: ; d0536 PokeAnim_SetVBank0: ; d0536
call Functiond0551 call PokeAnim_GetAttrMapCoord
ld b, 7 ld b, 7
ld c, 7 ld c, 7
ld de, $0014 ld de, SCREEN_WIDTH
.asm_d0540 .row
push bc push bc
push hl push hl
.asm_d0542 .col
ld a, [hl] ld a, [hl]
and $f7 and $f7
ld [hl], a ld [hl], a
add hl, de add hl, de
dec c dec c
jr nz, .asm_d0542 jr nz, .col
pop hl pop hl
inc hl inc hl
pop bc pop bc
dec b dec b
jr nz, .asm_d0540 jr nz, .row
ret ret
; d0551 ; d0551
Functiond0551: ; d0551 PokeAnim_GetAttrMapCoord: ; d0551
ld hl, wPokeAnimCoord ld hl, wPokeAnimCoord
ld a, [hli] ld a, [hli]
ld h, [hl] ld h, [hl]
@@ -1112,7 +1119,6 @@ PokeAnim_GetSpeciesOrUnown: ; d065c
Predef48: ; d0669 Predef 48 Predef48: ; d0669 Predef 48
ld a, $1 ld a, $1
ld [wBoxAlignment], a ld [wBoxAlignment], a
HOF_AnimateFrontpic: ; d066e Predef 49 HOF_AnimateFrontpic: ; d066e Predef 49
call AnimateMon_CheckIfPokemon call AnimateMon_CheckIfPokemon
jr c, .fail jr c, .fail

View File

@@ -2902,31 +2902,31 @@ wPokeAnimPointer:: ds 2
wPokeAnimSpecies:: ds 1 wPokeAnimSpecies:: ds 1
wPokeAnimUnownLetter:: ds 1 wPokeAnimUnownLetter:: ds 1
wPokeAnimSpeciesOrUnown:: ds 1 wPokeAnimSpeciesOrUnown:: ds 1
w2_d16e:: ds 1 wPokeAnimGraphicStartTile:: ds 1
wPokeAnimCoord:: ds 2 wPokeAnimCoord:: ds 2
wPokeAnimFrontpicHeight:: ds 1 wPokeAnimFrontpicHeight:: ds 1
; PokeAnim Data ; PokeAnim Data
wPokeAnimExtraFlag:: ds 1 wPokeAnimExtraFlag:: ds 1
w2_d173:: ds 1 wPokeAnimSpeed:: ds 1
wPokeAnimPointerBank:: ds 1 wPokeAnimPointerBank:: ds 1
wPokeAnimPointerAddr:: ds 2 wPokeAnimPointerAddr:: ds 2
wPokeAnimFramesBank:: ds 1 wPokeAnimFramesBank:: ds 1
wPokeAnimFramesAddr:: ds 2 wPokeAnimFramesAddr:: ds 2
wPokeAnimBitmaskBank:: ds 1 wPokeAnimBitmaskBank:: ds 1
wPokeAnimBitmaskAddr:: ds 2 wPokeAnimBitmaskAddr:: ds 2
w2_d17d:: ds 1 wPokeAnimFrame:: ds 1
w2_d17e:: ds 1 wPokeAnimJumptableIndex:: ds 1
wPokeAnimRepeatTimer:: ds 1 wPokeAnimRepeatTimer:: ds 1
w2_d180:: ds 1 wPokeAnimCurBitmask:: ds 1
wPokeAnimWaitCounter:: ds 1 wPokeAnimWaitCounter:: ds 1
w2_d182:: ds 1 wPokeAnimCommand:: ds 1
w2_d183:: ds 1 wPokeAnimParameter:: ds 1
w2_d184:: ds 1 ds 1
w2_d185:: ds 1 wPokeAnimBitmaskCurCol:: ds 1
w2_d186:: ds 1 wPokeAnimBitmaskCurRow:: ds 1
w2_d187:: ds 1 wPokeAnimBitmaskCurBit:: ds 1
w2_d188:: ds 1 wPokeAnimBitmaskBuffer:: ds 7
ds 8 ds 2
wPokeAnimStructEnd:: wPokeAnimStructEnd::