83Plus:BCALLs:516D

From WikiTI
Revision as of 00:43, 8 March 2007 by Brandonw (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Unofficial Name: IsOneTwoThree

BCALL Address: 516D

Minimum OS Version: 2.30

Checks whether OP1 is the floating point value 1, 2, or 3.

Inputs

  • OP1: floating point number to check

Outputs

  • OP1=1: 0,(iy+3Fh) and 1,(iy+3Fh) reset
  • OP1=2: 0,(iy+3Fh) set and 1,(iy+3Fh) reset
  • OP1=3: 0,(iy+3Fh) and 1,(iy+3Fh) set

Registers Destroyed

Comments

This BCALL will throw ERR:DOMAIN if OP1 is not 1, 2, or 3.

I can't imagine a reason for this.