7 / 28 page

Software Commands
Code
Name
Alternate
Argument
Returns
Description
$01
LOADX
N/A
FP
Nothing
Load X
$02
LOADY
N/A
FP
Nothing
Load Y
$03
READX
N/A
None
FP
Read X
$04
SWAP
N/A
None
Nothing
Swap X and Y
$05
DIGIT
N/A
DIGIT
ASCIIDIGIT
Find ASCII digit from X
$06
IEEECVT
N/A
None
Nothing
Convert X to IEEE
format
$07
FLOAT
$87
None
STATUS
24-bit integer in X to
floating point
$08
COMMCK
N/A
None
$22
Communications check
$09
FPCVT
N/A
None
Nothing
Convert X from IEEE
format
$0A
CHS
N/A
None
Nothing
X=-X
$0B
INT
$8B
None
STATUS
Convert X to 24-bit
integer
$0C
MUL
$8C
None
STATUS
X=X*Y
$0D
DIV
$8D
None
STATUS
X=X/Y
$0E
SUB
$8E
None
STATUS
X=X-Y
$0F
ADD
$8F
None
STATUS
X=X+Y
$10
OPT
N/A
OPTS
Nothing
Sets option bits
$11
ABS
N/A
None
Nothing
X=|X|
$12
STO0
N/A
None
Nothing
R0=X
$13
RCL0
N/A
None
Nothing
X=R0
$14
DIR
N/A
DIRS
Nothing
Sets direction register
$15
RIO
N/A
None
IBYTE
Reads input byte from
port
$16
WIO
N/A
OBYTE
Nothing
Writes byte to output port
$17
XTOY
N/A
None
Nothing
X=Y
$18
YTOX
N/A
None
Nothing
Y=X
$92
STO1
N/A
None
Nothing
R1=X
$93
RCL1
N/A
None
Nothing
X=R1
Notes and Key:
• FP – 32 bit floating point number (see text for format)
• DIGIT – A digit number. Zero returns +, -, or space if the number is
positive, negative, or zero. See reference for more details.
• ASCIIDIGIT – The ASCII representation of the requested digit
• STATUS – Floating point error flags
• OPTS – Options ( $80 turns on saturation; $40 enables rounding)
• R0, R1 – Temporary storage registers