summaryrefslogtreecommitdiff
path: root/tilesets/animations.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-12-25 19:01:36 -0500
committerGitHub <noreply@github.com>2017-12-25 19:01:36 -0500
commit73db02d3cdaf81a214ec6faa5462195618a80a48 (patch)
treeb4d1a5187fda9da6186c52c03e836a5ff8f4dd90 /tilesets/animations.asm
parentec8c9688ce970b9c3b63a5b287a99542f0bc9984 (diff)
parent29b41068cb0644956494dd2b7b75331a336b8d26 (diff)
Merge pull request #433 from roukaour/master
More code cleanup
Diffstat (limited to 'tilesets/animations.asm')
-rw-r--r--tilesets/animations.asm21
1 files changed, 10 insertions, 11 deletions
diff --git a/tilesets/animations.asm b/tilesets/animations.asm
index 3de67ee6e..dc84a0cba 100644
--- a/tilesets/animations.asm
+++ b/tilesets/animations.asm
@@ -1,4 +1,3 @@
-
_AnimateTileset:: ; fc000
; Iterate over a given pointer array of
; animation functions (one per frame).
@@ -476,10 +475,10 @@ AnimateWaterTile: ; fc402
add a
add a
- add WaterTileFrames % $100
+ add LOW(WaterTileFrames)
ld l, a
ld a, 0
- adc WaterTileFrames / $100
+ adc HIGH(WaterTileFrames)
ld h, a
; Stack now points to the start of the tile for this frame.
@@ -514,10 +513,10 @@ ForestTreeLeftAnimation: ; fc45c
add a
add a
add a
- add ForestTreeLeftFrames % $100
+ add LOW(ForestTreeLeftFrames)
ld l, a
ld a, 0
- adc ForestTreeLeftFrames / $100
+ adc HIGH(ForestTreeLeftFrames)
ld h, a
.asm_fc47d
@@ -556,10 +555,10 @@ ForestTreeRightAnimation: ; fc4c4
add a
add a
add a
- add ForestTreeLeftFrames % $100
+ add LOW(ForestTreeLeftFrames)
ld l, a
ld a, 0
- adc ForestTreeLeftFrames / $100
+ adc HIGH(ForestTreeLeftFrames)
ld h, a
push bc
ld bc, ForestTreeRightFrames - ForestTreeLeftFrames
@@ -592,10 +591,10 @@ ForestTreeLeftAnimation2: ; fc4f2
add a
add a
add a
- add ForestTreeLeftFrames % $100
+ add LOW(ForestTreeLeftFrames)
ld l, a
ld a, 0
- adc ForestTreeLeftFrames / $100
+ adc HIGH(ForestTreeLeftFrames)
ld h, a
.asm_fc515
@@ -624,10 +623,10 @@ ForestTreeRightAnimation2: ; fc51c
add a
add a
add a
- add ForestTreeLeftFrames % $100
+ add LOW(ForestTreeLeftFrames)
ld l, a
ld a, 0
- adc ForestTreeLeftFrames / $100
+ adc HIGH(ForestTreeLeftFrames)
ld h, a
push bc
ld bc, ForestTreeRightFrames - ForestTreeLeftFrames