Difference between revisions of "83Plus:BCALLs:516D"

From WikiTI
Jump to: navigation, search
m (purpose discovered)
m (purpose known)
 
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.
  
This is somehow used with the date/time functions.
+
This is probably the source of the 84+/SE BASIC setDtFmt( function.

Latest revision as of 20:12, 17 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.