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

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

Latest revision as of 08:59, 14 April 2005

Synopsis

Official Name: InvOP2S

Call Address: 40BA

This routine inverts the sign of OP2.

Inputs

  • OP2 = floating point number

Outputs

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