summaryrefslogtreecommitdiff
path: root/engine/math/math.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2018-06-30 17:50:33 -0400
committerGitHub <noreply@github.com>2018-06-30 17:50:33 -0400
commit2641f93ad084b1329b3f3b9f7c8c222445fc4832 (patch)
treefb048bbc8bb7257dbd8169e2442117da5d2b30d2 /engine/math/math.asm
parent91f914718a263839daef24d44eda857bfc7cca95 (diff)
parentda5125e1411f9599b883181c5ee6e31252d37ac8 (diff)
Merge pull request #534 from Rangi42/master
[RTM] Fix triple newlines left over from removing address comments, and other improvements
Diffstat (limited to 'engine/math/math.asm')
-rw-r--r--engine/math/math.asm5
1 files changed, 0 insertions, 5 deletions
diff --git a/engine/math/math.asm b/engine/math/math.asm
index 4240ef6cd..c2e5f70a3 100644
--- a/engine/math/math.asm
+++ b/engine/math/math.asm
@@ -1,5 +1,4 @@
_Multiply::
-
; hMultiplier is one byte.
ld a, 8
ld b, a
@@ -11,7 +10,6 @@ _Multiply::
ld [hMathBuffer + 3], a
ld [hMathBuffer + 4], a
-
.loop
ld a, [hMultiplier]
srl a
@@ -46,7 +44,6 @@ _Multiply::
dec b
jr z, .done
-
; hMultiplicand <<= 1
ld a, [hMultiplicand + 2]
@@ -67,7 +64,6 @@ _Multiply::
jr .loop
-
.done
ld a, [hMathBuffer + 4]
ld [hProduct + 3], a
@@ -83,7 +79,6 @@ _Multiply::
ret
-
_Divide::
xor a
ld [hMathBuffer + 0], a