Difference between revisions of "83Plus:BCALLs:407B"
From WikiTI
m (Formatting) |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
=== Inputs === | === Inputs === | ||
| − | * OP1 = floating point | + | * [[83Plus:RAM:8478|OP1]] = floating point |
=== Outputs === | === Outputs === | ||
| − | * OP1 = OP1 | + | * [[83Plus:RAM:8478|OP1]] = OP1<sup>3</sup> |
| − | * OP2 = original OP1 | + | * [[83Plus:RAM:8483|OP2]] = original OP1 |
| − | === | + | === Destroys === |
| − | * AF, BC, DE, HL | + | * AF, BC, DE, HL |
| + | * [[83Plus:RAM:8483|OP2]], [[83Plus:RAM:848E|OP3]] | ||
== Example == | == Example == | ||
<nowiki>B_CALL OP1Set5 ;OP1=floating point 5 | <nowiki>B_CALL OP1Set5 ;OP1=floating point 5 | ||
| − | B_CALL Cube ;returns with OP1=floating point 125 | + | B_CALL Cube ;returns with OP1=floating point 125</nowiki> |
| − | </nowiki> | + | |
Latest revision as of 08:27, 25 April 2005
Contents
Synopsis
Official Name: Cube
BCALL Address: 407B
Raises a floating point number in OP1 to the third power.
Inputs
- OP1 = floating point
Outputs
Destroys
Example
B_CALL OP1Set5 ;OP1=floating point 5 B_CALL Cube ;returns with OP1=floating point 125