Difference between revisions of "83Plus:BCALLs:408A"
From WikiTI
(→Synopsis) |
|||
Line 5: | Line 5: | ||
'''BCALL Address:''' 408A | '''BCALL Address:''' 408A | ||
− | Negates the complex value represented by [[83Plus:RAM: | + | Negates the complex value represented by [[83Plus:RAM:8478|OP1]] and [[83Plus:RAM:8483|OP2]]. |
=== Inputs === | === Inputs === |
Latest revision as of 20:32, 24 April 2005
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