mirror of https://github.com/pret/pokecrystal.git
hRemainder
This commit is contained in:
parent
bd11b60477
commit
776dd61823
1
hram.asm
1
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue