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

From WikiTI
Jump to: navigation, search
 
m
 
Line 12: Line 12:
 
=== Outputs ===
 
=== Outputs ===
 
* OP1 = -OP1
 
* OP1 = -OP1
* 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:00, 14 April 2005

Synopsis

Official Name: InvOP1S

Call Address: 40B6

This routine inverts the sign of OP1.

Inputs

  • OP1 = floating point number

Outputs

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