Difference between revisions of "83:ROMCalls:40B2"

From WikiTI
Jump to: navigation, search
 
m (fix link)
 
Line 14: Line 14:
 
* OP1 = -OP1
 
* OP1 = -OP1
 
* OP2 = -OP2
 
* OP2 = -OP2
* A = ([[83:RAM:8039|OP1)
+
* A = ([[83:RAM:8039|OP1]]) = OP1 sign byte
 
* F = nc, nz if OP1 is negative, z if positive
 
* F = nc, nz if OP1 is negative, z if positive
 
* BC,DE,HL preserved
 
* BC,DE,HL preserved

Latest revision as of 09:01, 14 April 2005

Synopsis

Official Name: InvOP1SC

Call Address: 40B2

This routine calls InvOP2S and runs through InvOP1S inverting the sign of both OP1 and OP2.

Inputs

  • OP1 = floating point number
  • OP2 = floating point number

Outputs

  • OP1 = -OP1
  • OP2 = -OP2
  • A = (OP1) = OP1 sign byte
  • F = nc, nz if OP1 is negative, z if positive
  • BC,DE,HL preserved