83Plus:BCALLs:400F

From WikiTI
Revision as of 15:32, 7 April 2005 by Woozle (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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