83Plus:BCALLs:8048

From WikiTI
Revision as of 20:39, 28 March 2005 by Woozle (Talk | contribs)

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

Synopsis

Official Name: DivHLbyE

BCALL Address: 8048

Divides register HL by register E and stores the result in DE.

Inputs

  • HL = numerator
  • DE = denominator

Outputs

  • DE = HL / DE

Destroys

  • a, IX, HL, DE
  • Contents of memory addresses 8251h - 8253h

Comments

Simple enough to implement yourself if speed is important.

Example

 ld     hl,103h
 ld     e,3
 B_CALL DivHLbyE  ;should return 56h or 86 decimal