Difference between revisions of "83Plus:BCALLs:400F"

From WikiTI
Jump to: navigation, search
 
(No difference)

Latest revision as of 16:32, 7 April 2005

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