83Plus:BCALLs:8048: Difference between revisions
From WikiTI
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
=== Inputs === | === Inputs === | ||
* HL = numerator | * HL = numerator | ||
* | * E = denominator | ||
<!-- We need to figure out how we're doing flags and link that up --> | <!-- We need to figure out how we're doing flags and link that up --> | ||
=== Outputs === | === Outputs === | ||
* DE = HL / | * DE = HL / E | ||
=== Destroys === | === Destroys === | ||
Revision as of 03:43, 29 March 2005
Synopsis
Official Name: DivHLbyE
BCALL Address: 8048
Divides register HL by register E and stores the result in DE.
Inputs
- HL = numerator
- E = denominator
Outputs
- DE = HL / E
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