Yamaha CX5M Owner's Manual page 44

Music computer
Hide thumbs Also See for CX5M:
Table of Contents

Advertisement

IF
-
GOTO
~
ELSE
IF conditional
expr
GOTO
line
number
IF conditional
expr
ELSE
statement
list
Selects different
options based
on
condition.
INPUT
INPUT
[(# filenum,)] variable
list
"prompt"
Reads
in
data
items;
must
be
in
proper format.
KEY/KEY
LIST
KEY
(keynum,
stringexpr)
KEY
LIST
Re-defines the use of the
special
function
key.
KEY
LIST
lists
on
the screen
entire text of
all
10
function keys
LINE
INPUT
LINE
INPUT
((# filenum,)]
string
var
"stcons";
Returns
entire
line
of input,
unformatted.
LET
[LET]
variable
expression
General
variable
assignment statement; the
LET
is
optional.
MAXFILES
MAXFILES
=
numexpr
Specifies
number
of I/O
files
to reserve
space
for.
MID
$
MID
$
(str
var, start
char
[,
length]
)
-
strexpr
In
place
replacement
of string variable
with
new
value.
ON
ERROR
GOTO
NO ERROR GOTO
line
number
Specifies error
trapping
and
location of handler.
ON GOTO/
GOSUB
ON
numexpr
(GOTO)
list
of
line
numbers
ON
numexpr
(GOSUB)
list
of
line
numbers
Case statement, does
a
GOTO
based
on
variable value.
Case
statement,
does
a
GOSUB
based
on
variable value.
ON/OFF/STOP
KEY
(keynum)
ON/OFF/STOP
STRIG
(num)
ON/OFF/STOP
STOP ON/OFF/STOP
SPRITE
ON/OFF/STOP
INTERVAL
ON/OFF/STOP
Specifies
function key-based
interrupt.
Specifies joystick
trigger interrupt.
Specifies
Control-Stop
interrupt.
Specifies
sprite collision interrupt.
Specifies
timer-based
interrupt.
ON
GOSUB
ON
(INTERVAL)*
ticks
ON
(KEY)
BOSUB
line
num
[,
line
num]
ON
(SPRITE)
GOSUB
line
num
[,
line
num]
ON
(STOP)
GOSUB
line
num
[,
line
num]
ON
(STRIG)
GOSUB
line
num
[,
line
num]
Defines
location of interrupt handler.
OPEN
OPEN
devfilename
(FOR
(APPEND)]
AS
(#]
filenum
OPEN
devfilename
[FOR
(INPUT)]
AS
[#]
filenum
OPEN
devfilename
(FOR
(OUTPUT)]
AS
[#]
filenum
Associates
file
number
with
device
name;
initializes.
CAS:
Cassettetape
CRT
:
CRT
display
GRP:
Graphics
screen
LPT:
Printer
OUT
OUT
address,
data
Sends
data to
Z-80 output
port.
POKE
POKE
loc,
data
Stores data
in
any
RAM
location.
PRINT/LPRINT
PRINT
[filenum,] print
list
LPRINT
[filenum,] print
list
Sends
data to
file
I/O device/sends data to
printer.
PRINT/LPRINT
USING
PRINT USING
[filenum,] [format;] print
list
LPRINT USING
[filenum,]
[format;] print
list
Option on
PRINT
statements
for
formatted
output.
PRINT
#/
INPUT #
PRINT
[#
filenum,] print
list
INPUT
[#
filenum,] variable
list
Sends
data
to text
display screen.
Returns
prompted
input,
must
be
in
proper format.
READ
READ
variable [.variable]
Inputs data
from
DATA
statement
to
variable.
REM
REM
any
text
Statement
that
is
totally
documentary.
RESTORE
RESTORE
[line
number]
Resets pointer to allow
DATA
to
be
re-READ.
RESUME
RESUME
RESUME
0
RESUME NEXT
RESUME
[line
number]
Specifies
end
of error
handler
and where
to
continue
at.
STOP
STOP
Temporarily
stops
execution with message,
may
be
restarted.
SWAP
SWAP
(numeric
variable,
numeric
variable)
string variable, string variable
Switches
values of
two
variables;
fast
and
totally
in
place.
TIME
TIME
=
numexpr
MSX
BASIC
keeps an
internal 16-bit
counter
which
it
continual-
ly
updates,
at
60
times per seconds.
Set the
system
clock.
WAIT
WAIT
port,
and
[,
xor]
Reads Z-80
input port
and
waits
until
condition
is
met.
VDP
(System
numeric
variable)
VDP
(reg
num)
Allows
access to actual
VDP
registers.
Graphics
and
Sound
Statements
BEEP
BEEP
no
parameters
Sounds
alarm
beep and
resets
all
sound
output.
CIRCLE
CIRCLE
[@]
[STEP]
(x, y),
radius
[,
color]
[startangle]
,
[,
endanglej
[.aspect]
Draws
circle, arcs,
wedges,
and
ovals.
CLS
CLS
Clears screen to
background
color.

Advertisement

Table of Contents
loading

Table of Contents