summaryrefslogtreecommitdiff
path: root/engine/overworld/cut2.asm
diff options
context:
space:
mode:
authorluckytyphlosion <alan.rj.huang@gmail.com>2016-03-28 15:59:19 -0400
committerluckytyphlosion <alan.rj.huang@gmail.com>2016-03-28 15:59:19 -0400
commit9ca431b4f9706a3bbbbcfb03e2bab3360a5258a2 (patch)
treeeb8b05c448eb6a0b00ad344e65fb1b708c89c2aa /engine/overworld/cut2.asm
parent817729c36ac6d43129731290f3feed9db9ff65a4 (diff)
Complete documentation of bank1e
Todo: address comments for data/animations.asm
Diffstat (limited to 'engine/overworld/cut2.asm')
-rwxr-xr-xengine/overworld/cut2.asm8
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/overworld/cut2.asm b/engine/overworld/cut2.asm
index 1cf832b5..9bb4ee2c 100755
--- a/engine/overworld/cut2.asm
+++ b/engine/overworld/cut2.asm
@@ -1,4 +1,4 @@
-AnimCut: ; 79e96 (1e:5e96)
+AnimCut: ; 7a037 (1e:6037)
ld a, [wCutTile]
cp $52
jr z, .grass
@@ -18,6 +18,7 @@ AnimCut: ; 79e96 (1e:5e96)
ld a, [rOBP1]
xor $64
ld [rOBP1], a
+ call UpdateGBCPal_OBP1
call DelayFrame
pop bc
dec c
@@ -43,7 +44,7 @@ AnimCut: ; 79e96 (1e:5e96)
jr nz, .cutGrassLoop
ret
-AnimCutGrass_UpdateOAMEntries: ; 79eed (1e:5eed)
+AnimCutGrass_UpdateOAMEntries: ; 7a091 (1e:6091)
push bc
ld hl, wOAMBuffer + $91
ld a, 1
@@ -68,13 +69,14 @@ AnimCutGrass_UpdateOAMEntries: ; 79eed (1e:5eed)
ld a, [rOBP1]
xor $64
ld [rOBP1], a
+ call UpdateGBCPal_OBP1
call DelayFrame
pop bc
dec c
jr nz, AnimCutGrass_UpdateOAMEntries
ret
-AnimCutGrass_SwapOAMEntries: ; 79f30 (1e:5f30)
+AnimCutGrass_SwapOAMEntries: ; 7a0d7 (1e:60d7)
ld hl, wOAMBuffer + $90
ld de, wBuffer
ld bc, $8