Yamaha CX5M Owner's Manual page 45

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

Advertisement

COLOR
COLOR
Icolornum]
[,
colornum]
[,
colornum]
Sets default
foreground;
background;
{not
SCREEN
0)
border
color.
Here
are
the color
numbers:
0
TRANSPARENT
8
MEDIUM RED
1
BLACK
9
LIGHT
RED
2
MEDIUM GREEN
10
DARK YELLOW
3
LIGHTGREEN
11
LIGHTYELLOW
4
DARK
BLUE
12
DARK GREEN
5
LIGHT
BLUE
13
MAGENTA
6
DARK
RED
14
GREY
7
CYAN
15
WHITE
DRAW
DRAW
string
expr
Uses Graphics
Macro Language
to
draw
entire objects.
LINE
LINE[[@]
[STEP]
(x1,y1)—
[@]
[STEP]
(x2,
y2)
Draws
lines,
hollow
boxes,
filled-in
boxes.
[[,
color],
<B)(BF>]
LOCATE
LOCATE
[x], [y], [switch]
Moves
text
cursor
and
turns
it
on
or
off.
PUT
SPRITE
PUT
SPRITE
sprnum
[,
[@]
[STEP]
[x,
y)]
Actually controls
display of
32
possible
sprites.
[,
color]
I,
sprimage]
PAINT
PAINT
[@]
[STEP]
(x, y)
[,
color]
[,
strexpr]
Fills
any
enclosed
area
with
any
color.
PLAY
PLAY
[strexpr]
[,
strexpr]
[,
strexpr]
Uses Music
Macro
Language
to play 3-part
background
music.
PSET/PRESET
PSET
[@]
[STEP]
(x,
y)
[,
color]
Resets
any
point
on
screen to
background
color.
PRESET
[@]
[STEP]
(x,
y)
[,
color]
Sets
any
point
on
screen
to
foreground
color.
SCREEN
SCREEN
[mode]
[,
sprite]
[,
key
click)
Sets display screen
type
and
sprite size
[,
tape speed]
,
[,
printer]
SCREEN
MODE
0
:
Text
mode
(40 x
24
characters)
1
:
Text
mode
(32 x
24
characters)
2
:
Highestresolution
mode
3
:
Multicolor
mode
SPRITE
SIZE
0:8x8
pixels
2
:
16
x
16
pixels
1:8x8
pixels
(large)
3:16x16
pixels
(large)
SPRITE
$
SPRITE
$ (num) -
stringexpr
Accesses
64
or
256
possible
sprite
data
patterns.
VPOKE
VPOKE
address,
data
Writes data
directly to
any
location
in
VRAM.
ON/OFF
KEY:
ON/OFF
MOTOR
ON/OFF
Turn
function
key
prompt
line
on
or
off.
Turn
cassette
motor on
and
off.
SOUND
SOUND
register,
setting
Allows
access to actual
PSG
registers.
WIDTH
WIDTH
size
Sets
with
of text screens,
numeric
expression
in
range
1
-
32
if
SCREEN
1,
or
1
-
40
if
SCREEN
0
String
Functions
BIN
$
BIN $
(integer
expression)
Converts
integer to
binary notation
in
character
string.
POINT
POINT
(x,
y)
Returns
color
of
any
point
on
screen.
VPEEK
VPEEK
(address)
Reads any
location
in
VRAM.
Address
:
:
=
a
numeric
expression
in
range
0
1
6383
STICK
STICK
(which)
Read
digital
joystick
J
?
which
: :
=
numeric
expression
in
range
\
I
/
0
— 3,0=
keyboard,
1
and
,
j
2 = joystick sockets
1
and
2.
/
[\
6
!
4
STRIG
STRIG
(num)
<ON/OFF/STOP>
Reads
trigger
buttons
from
joystick.
PDL
PDL
(choice)
Reads
game
paddles (knobs).
PAD
PAD
(select)
Reads
graphics
pad
(tablet).
TIME
TIME
Return
the
system
clock.
-
42
-

Advertisement

Table of Contents
loading

Table of Contents