diff options
author | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-07-06 13:35:48 -0400 |
---|---|---|
committer | luckytyphlosion <alan.rj.huang@gmail.com> | 2015-07-06 13:35:48 -0400 |
commit | 9c9fb882c70650b82f4e684d12a5f5cf03d18ae6 (patch) | |
tree | 38e83aa984862e0e6010e490f2092b9eaf5d5807 /engine/battle/core.asm | |
parent | 9facc162f3b750a35ed10ad0fa00e5a17e260adf (diff) |
Complete documentation of bank3d
todo: label functions past engine/items/tm_prices.asm
check if hlCoords are correct.
Diffstat (limited to 'engine/battle/core.asm')
-rwxr-xr-x | engine/battle/core.asm | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm index c335eeb3..8775604e 100755 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -6822,120 +6822,6 @@ Func_3f069: ; 3f069 (f:7069) ld [wc0f2], a jp PlaySound -Func_3f073: ; 3f073 (f:7073) - ld a, [wPredefRegisters] - ld h, a - ld a, [wPredefRegisters + 1] - ld l, a - ld a, [$ffe1] - ld [H_DOWNARROWBLINKCNT1], a - ld b, $4c - ld a, [W_ISINBATTLE] - and a - jr z, .asm_3f0bc - add b - ld [hl], a - call Delay3 - ld bc, -41 - add hl, bc - ld a, $1 - ld [wcd6c], a - ld bc, $303 - predef Func_79aba - ld c, $4 - call DelayFrames - ld bc, -41 - add hl, bc - xor a - ld [wcd6c], a - ld bc, $505 - predef Func_79aba - ld c, $5 - call DelayFrames - ld bc, -41 - jr .asm_3f0bf -.asm_3f0bc - ld bc, -123 -.asm_3f0bf - add hl, bc - ld a, [H_DOWNARROWBLINKCNT1] - add $31 - jr asm_3f0d0 - -Func_3f0c6: ; 3f0c6 (f:70c6) - ld a, [wPredefRegisters] - ld h, a - ld a, [wPredefRegisters + 1] - ld l, a - ld a, [$ffe1] -asm_3f0d0: ; 3f0d0 (f:70d0) - ld bc, $707 - ld de, $14 - push af - ld a, [W_SPRITEFLIPPED] - and a - jr nz, .asm_3f0ed - pop af -.asm_3f0de - push bc - push hl -.asm_3f0e0 - ld [hl], a - add hl, de - inc a - dec c - jr nz, .asm_3f0e0 - pop hl - inc hl - pop bc - dec b - jr nz, .asm_3f0de - ret - -.asm_3f0ed - push bc - ld b, $0 - dec c - add hl, bc - pop bc - pop af -.asm_3f0f4 - push bc - push hl -.asm_3f0f6 - ld [hl], a - add hl, de - inc a - dec c - jr nz, .asm_3f0f6 - pop hl - dec hl - pop bc - dec b - jr nz, .asm_3f0f4 - ret - -LoadMonBackPic: ; 3f103 (f:7103) -; Assumes the monster's attributes have -; been loaded with GetMonHeader. - ld a, [wBattleMonSpecies2] - ld [wcf91], a - hlCoord 1, 5 - ld b, $7 - ld c, $8 - call ClearScreenArea - ld hl, W_MONHBACKSPRITE - W_MONHEADER - call UncompressMonSprite - predef ScaleSpriteByTwo - ld de, vBackPic - call InterlaceMergeSpriteBuffers ; combine the two buffers to a single 2bpp sprite - ld hl, vSprites - ld de, vBackPic - ld c, (2*SPRITEBUFFERSIZE)/16 ; count of 16-byte chunks to be copied - ld a, [H_LOADEDROMBANK] - ld b, a - jp CopyVideoData - JumpMoveEffect: ; 3f132 (f:7132) call _JumpMoveEffect ld b, $1 |