summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2016-02-15 18:57:49 -0500
committeryenatch <yenatch@gmail.com>2016-02-15 18:57:49 -0500
commit776dd6182347322f16f0d5e677f91b7ee68d112f (patch)
treec4fc82c0343b6f1bd1a01635ec643711ac3129f3
parentbd11b60477833bcaa88489ec2e4f6e90c5bb01ab (diff)
hRemainder
-rw-r--r--hram.asm1
-rwxr-xr-xmisc/mobile_12.asm4
2 files changed, 3 insertions, 2 deletions
diff --git a/hram.asm b/hram.asm
index 3e921f78e..dc6c480bf 100644
--- a/hram.asm
+++ b/hram.asm
@@ -50,6 +50,7 @@ hStringCmpString2 EQU $ffb5
hDividend EQU $ffb3 ; length in b register, before 'call Divide' (max 4 bytes)
hDivisor EQU $ffb7 ; 1 byte long
hQuotient EQU $ffb4 ; result (3 bytes long)
+hRemainder EQU $ffb7
hMultiplicand EQU $ffb4 ; 3 bytes long
hMultiplier EQU $ffb7 ; 1 byte long
diff --git a/misc/mobile_12.asm b/misc/mobile_12.asm
index 48e740681..dd0f63135 100755
--- a/misc/mobile_12.asm
+++ b/misc/mobile_12.asm
@@ -1805,8 +1805,8 @@ Function48d94: ; 48d94 (12:4d94)
ld [hDivisor], a
ld b, 2
call Divide
- ld a, [hDivisor]
- ld c, $a
+ ld a, [hRemainder]
+ ld c, 10
call SimpleDivide
sla b
sla b