Re: A83: floating point...


[Prev][Next][Index][Thread]

Re: A83: floating point...



> To the guy who has to do [a]^1 * [b] -> [b]:
> _FPRECIP :   1/op1
> _FPSQUARE :  op1 * op1
> _FPMULT :    op1 * op2
>
> I'm sure Henk Poleys RomCall Reference has something about these calls.

Well I do have...

+- _FPRECIP --------+-------+-------+-------+-------+-------+-------+-------+
|                   |  40C2 |  40C2 |  40C2 |  40C2 |  40C2 |  40C2 |  40C2 |
+-------------------+-------+-------+-------+-------+-------+-------+-------+
| Call to:          |  ???? |  ???? |  ???? |  ???? |  0B3F |  ???? |  0B7E |
+-------------------+-------+-------+-------+-------+-------+-------+-------+
input: OP1
output: OP1 = 1 / OP1
       OP2 = input OP1
destroyed: All registers
          OP2, OP3
description: reciproke of OP1  =>  1/OP1  =>  OP1^-1
NOTE: Beware of the error-handler

+- _FPSQUARE -------+-------+-------+-------+-------+-------+-------+-------+
|                   |  40A6 |  40A6 |  40A6 |  40A6 |  40A6 |  40A6 |  40A6 |
+-------------------+-------+-------+-------+-------+-------+-------+-------+
| Call to:          |  ???? |  ???? |  ???? |  ???? |  0982 |  ???? |  09C1 |
+-------------------+-------+-------+-------+-------+-------+-------+-------+
input: OP1
output: OP1 = OP1 * OP1
       OP2 = inputted OP1
destroyed: All registers
          OP2, OP3
description: OP1 = SQUARE(OP1) = OP1 * OP1 = OP1^2
NOTE: Beware of the error-handler


+- _FPMULT ---------+-------+-------+-------+-------+-------+-------+-------+
|                   |  40AA |  40AA |  40AA |  40AA |  40AA |  40AA |  40AA |
+-------------------+-------+-------+-------+-------+-------+-------+-------+
| Call to:          |  ???? |  ???? |  ???? |  ???? |  0983 |  ???? |  09C2 |
+-------------------+-------+-------+-------+-------+-------+-------+-------+
input: OP1,OP2
output: OP1 = OP1 * OP2
destroyed: All registers
          OP2, OP3
description: OP1 = OP1 * OP2
NOTE: Beware of the error-handler