Difference between revisions of "83Plus:BCALLs:80B1"
From WikiTI
m |
|||
| Line 1: | Line 1: | ||
| − | + | [[Category:83Plus:BCALLs:By Name:Math:Integer|Div32By16]] [[Category:83Plus:BCALLs:By Name:Math|Div32By16]] [[Category:83Plus:BCALLs:By Name|Div32By16]] [[Category:83Plus:BCALLs:By Address|80B1 - Div32By16]] | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
== Synopsis == | == Synopsis == | ||
| − | '''Official Name:''' | + | '''Official Name:''' Div32By16 |
| − | '''BCALL Address:''' | + | '''BCALL Address:''' 80B1 |
| − | + | ||
| − | + | Divide a 32-bit number stored in OP1 by DE. | |
=== Inputs === | === Inputs === | ||
| − | * [[83Plus:RAM:8478|OP1]]: | + | * [[83Plus:RAM:8478|OP1]]: 32-bit big endian dividend |
| − | * | + | * DE: divisor |
| − | + | ||
=== Outputs === | === Outputs === | ||
| − | * | + | * [[83Plus:RAM:8478|OP1]]: 32-bit big endian quotient |
| − | * | + | * [[83Plus:RAM:8483|OP2]]: 32-bit big endian remainder |
=== Destroys === | === Destroys === | ||
| − | * | + | * AF, BC, HL, IX |
| + | * [[83Plus:RAM:8251|bootTemp]]: 4 bytes | ||
== Comments == | == Comments == | ||
| − | This | + | This routine is rather inefficient. |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Latest revision as of 13:55, 30 March 2005
Synopsis
Official Name: Div32By16
BCALL Address: 80B1
Divide a 32-bit number stored in OP1 by DE.
Inputs
- OP1: 32-bit big endian dividend
- DE: divisor
Outputs
Destroys
- AF, BC, HL, IX
- bootTemp: 4 bytes
Comments
This routine is rather inefficient.