ref: 776dd6182347322f16f0d5e677f91b7ee68d112f
parent: bd11b60477833bcaa88489ec2e4f6e90c5bb01ab
author: yenatch <yenatch@gmail.com>
date: Mon Feb 15 13:57:49 EST 2016
hRemainder
--- a/hram.asm
+++ b/hram.asm
@@ -50,6 +50,7 @@
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
--- a/misc/mobile_12.asm
+++ b/misc/mobile_12.asm
@@ -1805,8 +1805,8 @@
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