diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2018-08-26 22:54:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-26 22:54:11 -0400 |
commit | a71b28e5b724564fe19f329f5cbb474f8b111acb (patch) | |
tree | 0fbb1d3add4c64eb72e9c6790bf35b884fbcee8a /engine/math | |
parent | 3eacab563d0e1ab5557c2443556a7a5e58d14cad (diff) | |
parent | b42ba692c49f09bb51b2fd233a8a97e7eb3208db (diff) |
Merge pull request #557 from Rangi42/master
Miscellaneous changes
Diffstat (limited to 'engine/math')
-rw-r--r-- | engine/math/math.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/math/math.asm b/engine/math/math.asm index 18aa042ed..d6fc4fe4c 100644 --- a/engine/math/math.asm +++ b/engine/math/math.asm @@ -172,18 +172,18 @@ _Divide:: .done ldh a, [hDividend + 1] - ldh [hDivisor], a + ldh [hRemainder], a ldh a, [hMathBuffer + 4] - ldh [hDividend + 3], a + ldh [hQuotient + 3], a ldh a, [hMathBuffer + 3] - ldh [hDividend + 2], a + ldh [hQuotient + 2], a ldh a, [hMathBuffer + 2] - ldh [hDividend + 1], a + ldh [hQuotient + 1], a ldh a, [hMathBuffer + 1] - ldh [hDividend + 0], a + ldh [hQuotient + 0], a ret |