Basic Command List - Yamaha CX5M Owner's Manual

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

Advertisement

BASIC
COMMAND
LIST
wm-'w
-m
Commands
AUTO
AUTO
[start]
(,
increment]
Automatic
line
numbering
to
speed
up
text
entry
CONT
CONT
Continues execution
after
STOP
statement
or
Control-STOP.
DELETE
DELETE
line
range
Erases
groups
of
lines
from
memory.
LIST/LLIST
LIST
[line
num]
[—
line
num]
LLST
[line
num]
[—
line
num]
Displays
your program on
the
screen.
Displays
your program on
the
printer.
NEW
NEW
Erases
all
of
your program and
does
a
CLEAR
RENUM
RENUM
[new]
[,
old]
[.increment]
Renumbers
lines
in
memory.
RUN
RUN
[(line
number
devfilename)]
Starts
execution
of
program;
enters
run
mode.
SAVE/LOAD
MERGE
SAVE
devfilename
LOAD
devfilename
[.
R]
MERGE
devfilename
Saves
program
to tape
in
ASCII
text
format.
Loads program from
tape;
must
be
in
ASCII
text
format.
Adds
a
program from
tape
in
ASCII
text
format
to
one
in
RAM.
BASE
(System
numeric
variable)
BASE
(tabentry)
Allows
VRAM
locations for
VDP
tables to
be
set,
all
SCREENS
|
Highest
resolution
mode
|
- Multicolor
mode
5
10
15
:
Base
of
Name
Table
6
11
:
Base
of
Color Table
7
12
17
:
Base
of Pattern
Generator Table
8
13
18
:
Base
of Sprite
Attribute Table
9
14
19
:
Base
of Sprite Pattern
Table
BSAVE/BLOAD
BSAVE
devfilename,
start
addr,
end
addr
[,
run addr]
B
LOAD
devfilename
[,
runoption]
[,
offsetaddr]
Saves
a
block
of
memory
to
tape
in
pure binary image format.
Loads
into
RAM
a
binary
image
stored
on
tape.
CSAVE/CLOAD
CLOAD?
CSAVE
filename,
speed
CLOAD
(filename]
CLOAD?
[filename]
Saves
program
to
tape
in
internal
format.
Loads program from
tape;
must
be
in
internal
format.
TRON/TROFF
TRON
TROFF
Turns on
line
number
trace
during execution.
Turns
off
line
number
trace
during execution.
Statements
CLEAR
CLEAR
(string size
[,
freespace]
)
Reserves
RAM
for string
space and/or
non-BASIC
use;
and
also
erases
all
variables,
open
files,
etc.
CALL
CALL
routine
name
[{parameter
list)]
Activates
an
expanded
BASIC
statement
capability.
CLOSE
CLOSE
([#]
bufnum)
(,
[#]
bufnum)
Ends
I/O
with
specified
file
number.
DATA
DATA
element
[,
element]
Specifies
list
of internal
data
items.
DIM
DIM
varname
[,
varname]
Defines,
reserves,
and
initializes
arrays.
DEFINT
DEFSNG
DEFDBL
DEFSTR
DEFINT
vartype range
[,
range]
DEFSNG
vartype range
[,
range]
DEFDBL
vartype range
[,
range]
DEFSTR
vartype range
[,
range]
Defines default
variable type.
DEFFN
DEFFN
varname
[{argvar
[,
argvar]
)]
*
expression
Specifies user-defined functions.
DEF USR
DEF USR
[digit]
«
intexpr
Specifies starting location of user-defined
machine-language
function.
ERASE
ERASE
array
name
[,
array
name]
Deletes the specified
array.
END
END
Finishes
execution,
returns to direct
mode
ERROR
ERROR
errnum
Statement which
will
cause
any
error to
occur.
FOR
-
NEXT
FOR
variable
=
start
TO
stop
[STEP
increment]
NEXT
variable
Loop
statement; changes value
of
loop
control
variable
ends
a
loop
started
with
a
FOR
statement.
GOSUB
~
RETURN
GOSUB
line
number
RETURN
Calls
new
line
number.
Ends
a
subroutine, returns to
statement
after
GOSUB.
GOTO
GOTO
line
number
Jumps
to
new
line
number.
IF
~THEN/
IF
~GOTO
IF conditional
expr
THEN
statement
list
IF
conditional
expr
GOTO
line
number
Selects different
options based
on
condition.
IF
~THEN
~
ELSE
IF conditional
expr
THEN
statement
list
ELSE
statement
list
Selects different
options based
on
condition.
-
40
-

Advertisement

Table of Contents
loading

Table of Contents