Reference Guide

6-26 The Development Library
Syntax Example Notes
SB=1
XM=1
SR=1
MP=1
HST=a
?SB=1
?XM=1
?SR=1
?MP=1
?HST=1.a
See above. This is only valid in emulated Saturn
P=a
P=P+1 P+1
P=P-1 P-1
?P=a ?P#a
P=C.a C=P.a
CPEX.a
C=C+P+1 C+P+1
The HP ≠ character can be used instead of #
GOTO label
GOTOL label
GOLONG Lab
GOVLNG hex
GOVLNG =Label
GOVLNG ="COMND"
GOSUB label
GOSUBL label
GOSBVL hex
GOSBVL =Label
GOSBVL ="COMND"
GOC label
GONC label
GOTOC label
GOTONC label
GOTO is limited to 1KB jumps
GOTOL can jump over 16KB of code
This jumps to a specific address
GOSUB is limited to 1KB jumps
GOSUBL is limited to 16KB jumps
GOSBVL jumps to a specific address
GO if Carry set (limited to 64 bytes)
GO if no carry (limited to 64 bytes)
Equivalent to SKNC { GOTO label }
Equivalent to SKC { GOTO label }
RTN
RTNSXM
RTNCC
RTNSC
RTNC
RTNNC
RTI
RTNYES RTY
Return from subroutine (GOSUB call)
RTN + XM=1
RTN + set carry
RTN + clear carry
RTN if carry set
RTN if carry not set
Return from interrupt
Return if test true (see test section)
C=RSTK
RSTK=C
Pop value from RSTK in Ca
Push value from Ca in RSTK
OUT=CS
OUT=C
A=IN
C=IN
Set the first 2 nibbles of the OUT register to the value of Cb
Set the OUT register to the value of C4
Copy the IN register in Ax or Cx (buggy instruction, do not use if you do
not know what you are doing)
SETDEC SETHEX
UNCNGF CONFIG
RESET
SHUTDN
INTON INTOFF
RSI
Set the SPU in DECIMAL or HEXADECIMAL mode
Deconfigure/Configure memory modules
Deconfigure ALL memory modules
STOP the CPU waiting for an interrupt
Enable/disable keyboard interrupts
Reset interrupt system
GOINC
label
Equivalent to LC(5)label-&. (& is the address of the instruction)
GOINA
label
Equivalent to LA(5)label-& (& is the address of the instruction)
$
hhh
...
hhh
NIBHEX
hhh
...
hh
Includes hexadecimal data in the program. Example:
$12ACD545680B.
$/
hhhh
...
hhh
Includes hexadecimal data in reverse order. Example: $/123ABC is
equivalent to $CBA321.