summaryrefslogtreecommitdiff
path: root/engine/math/math.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-08-26 13:49:38 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-08-26 13:49:38 -0400
commit557ce82073dc7c84ad701099713b00bcb7194860 (patch)
tree6d6a604f834d17cd622528b78c3926ca422e3fa1 /engine/math/math.asm
parentcb32c895e479f4a470ca7fb113dc8db870302a5e (diff)
hQuotient is a four-byte buffer (fixes #558)
Diffstat (limited to 'engine/math/math.asm')
-rw-r--r--engine/math/math.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/math/math.asm b/engine/math/math.asm
index f06b5488a..d6fc4fe4c 100644
--- a/engine/math/math.asm
+++ b/engine/math/math.asm
@@ -175,15 +175,15 @@ _Divide::
ldh [hRemainder], a
ldh a, [hMathBuffer + 4]
- ldh [hQuotient + 2], a
+ ldh [hQuotient + 3], a
ldh a, [hMathBuffer + 3]
- ldh [hQuotient + 1], a
+ ldh [hQuotient + 2], a
ldh a, [hMathBuffer + 2]
- ldh [hQuotient + 0], a
+ ldh [hQuotient + 1], a
ldh a, [hMathBuffer + 1]
- ldh [hQuotient - 1], a
+ ldh [hQuotient + 0], a
ret