hRemainder

This commit is contained in:
yenatch 2016-02-15 18:57:49 -05:00
parent bd11b60477
commit 776dd61823
2 changed files with 3 additions and 2 deletions

View File

@ -50,6 +50,7 @@ hStringCmpString2 EQU $ffb5
hDividend EQU $ffb3 ; length in b register, before 'call Divide' (max 4 bytes) hDividend EQU $ffb3 ; length in b register, before 'call Divide' (max 4 bytes)
hDivisor EQU $ffb7 ; 1 byte long hDivisor EQU $ffb7 ; 1 byte long
hQuotient EQU $ffb4 ; result (3 bytes long) hQuotient EQU $ffb4 ; result (3 bytes long)
hRemainder EQU $ffb7
hMultiplicand EQU $ffb4 ; 3 bytes long hMultiplicand EQU $ffb4 ; 3 bytes long
hMultiplier EQU $ffb7 ; 1 byte long hMultiplier EQU $ffb7 ; 1 byte long

View File

@ -1805,8 +1805,8 @@ Function48d94: ; 48d94 (12:4d94)
ld [hDivisor], a ld [hDivisor], a
ld b, 2 ld b, 2
call Divide call Divide
ld a, [hDivisor] ld a, [hRemainder]
ld c, $a ld c, 10
call SimpleDivide call SimpleDivide
sla b sla b
sla b sla b