83Plus:BCALLs:4090
From WikiTI
Revision as of 20:29, 24 April 2005 by 66.66.23.91 (Talk)
Synopsis
Official Name: InvOP2S
BCALL Address: 4090
Negates the floating point number in OP2.
Inputs
- OP2 = floating point number
Outputs
- OP2 = -OP2
Registers Destroyed
- AF
Comments
This routine inverts the sign bit of OP2 unless it is a floating point zero. If the value in OP2 is a floating point zero, then the sign bit is not inverted.
Example
B_CALL OP2Set3 ;OP2=floating point 3 B_CALL InvOP2S ;returns with OP2=-3