83Plus:BCALLs:400F
From WikiTI
Synopsis
Official Name: DivHLBy10
BCALL Address: 400F
Divides the value in HL by 10.
Inputs
- HL: integer
Outputs
- HL = HL / 10
- A = HL mod 10
Registers Destroyed
- none
Comments
Simple enough to implement if speed is important.
Example
ld hl,13 B_CALL DivHLBy10 ;should return HL=1, A=3