Revision as of 21:30, 29 March 2005 by FloppusMaximus
Official Name: Div16By8
Other Name: DivHLbyE
BCALL Address: 8048
Divides register HL by register E and stores the result in DE and the remainder in HL.
- HL = numerator
- E = denominator
- DE = HL / E
- HL = HL % E
- A, IX, HL, DE
- Contents of memory addresses 8251h - 8253h
Simple enough to implement yourself if speed is important.
ld hl,103h ld e,3 B_CALL DivHLbyE ;should return DE=56h and HL=1