83Plus:BCALLs:516D: Difference between revisions

From WikiTI
Jump to navigationJump to search
No edit summary
 
m purpose known
 
(One intermediate revision by the same user not shown)
Line 24: Line 24:
This BCALL will throw ERR:DOMAIN if [[83Plus:RAM:8478|OP1]] is not 1, 2, or 3.
This BCALL will throw ERR:DOMAIN if [[83Plus:RAM:8478|OP1]] is not 1, 2, or 3.


I can't imagine a reason for this.
This is probably the source of the 84+/SE BASIC setDtFmt( function.

Latest revision as of 03:12, 18 May 2007

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.

This is probably the source of the 84+/SE BASIC setDtFmt( function.