From 557ce82073dc7c84ad701099713b00bcb7194860 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 26 Aug 2018 13:49:38 -0400 Subject: hQuotient is a four-byte buffer (fixes #558) --- engine/math/math.asm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/math') 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 -- cgit v1.2.3