83Plus:BCALLs:408A
From WikiTI
Revision as of 20:32, 24 April 2005 by 66.66.23.91 (Talk)
Synopsis
Official Name: InvOP1SC
BCALL Address: 408A
Negates the complex value represented by OP1 and OP2.
Inputs
- OP1:OP2 = complex number
Outputs
- OP1:OP2 = -(OP1:OP2)
Registers Destroyed
- AF
Comments
This routine inverts the sign bits of OP1 and OP2 unless they are floating point zeros. If the value in OP1 or OP2 is a floating point zero, then the sign bit of the floating point number is not inverted.
Example
B_CALL OP1Set3 ;OP1=floating point 3 B_CALL OP2Set2 ;OP2=floating point 2 ;now OP1:OP2=3+2i B_CALL InvOP1SC ;returns with OP1:OP2=-3-2i