Sony HB-501P Service Manual page 22

Home computer
Hide thumbs Also See for HB-501P:
Table of Contents

Advertisement

Available languages

Available languages

I
ol; expression
Output data onto display screen in the
specified format.
Format symbols:
"!"
Output the first character.
"\n spaces \"
Outputs n + 2 characters.
Output the entire string.
"H"
Specify the number of display
digits of the numeric data.
" +
"
Add
+
or - before (after) numeric
data.
Add
-
after negative numeric
data.
"**"
Fill space befor numeric data
with
*
.
"££"
Put £ in front of numeric data.
,l * *
£"
Put £ in front of numeric data
and fill space in front of it with
* .
"
,
"
Put, after every third digit to the
left of the decimal point.
"aaaa"
Output with floating decimal
points.
10 A$="ABCDEFG"
20 PRINT USING "!";A$
30 PRINT USING
"\
\";A$
40 PRINT USING "SSS&TTT";A$
PRINT USING
"###.#
#";123.45,10.5
PRING USING
" + # #
#";100,
-
200
PRINT USING
"# # # —
100,
200
PRING USING
"**##
#";100,
-
200
PRINT USING
'££# #
#";100,-200
PRING USING
"**£# #
#";10,
-
20
PRINT USING
"#####,.#
#";1234.56
PRINT USING
"#.# #aaaa";123.98
variable] ...
Read data in DATA statement.
READ A%
Specify the DATA statement to be read
RFSTORE100
with a READ statement executed next.
nLO 1 W i 1 L 1
XJU
Exchange values of two variables.
SWAP A,B
DNTROLLING PROGRAM EXECUTION AND FLOW
t
function
Start program execution.
RUN 100
Interrupt program execution.
Restart program execution.
Terminate program execution.
Display line number that was executed.
j Cancel TRON.
ro
end value
!P increment]
» I
Repeat the program execution between
FOR and NEXT.
FOR 1=1 TO 10 STEP 2
1
NEXT 1
Transfer control to the specified
subroutine. Return to the main routine
with RUTURN.
100 GOSUB 100
1
1000
1
1100 RETURN
Transfer control to the specified line.
GOTO 100
jment
. T
number*
>
umber
J
«
Branch control according to the
expression value.
IF X=0 THEN 100 ELSE 200
umber
Branch control according to the
expression value,
ON A GOTO 100, 200, 300
number
Branch controi according to the
expression value.
ON SGN
(A)
+ 2 GOSUB 1000, 2000, 3000
1-20
COMMANDS FOR DISPLAY SCREEN
SCREEN [mode], [sprite size], [key click switch],
[baud rate], [printer type]
Specify the
Mode
0: 40x24 i
1: 32x24 «
2: high res
3: multi-cc
Sprite size
0: 8x8 do
1: 8x8 do
2: 16x16 <
3: 16x16 <
Key click sw
0: SupresJ
1: Produce
Baud rate
0: 1200 ba
1: 2400 ba
Printer type
0: MSX pr
1: Non-MS
WIDTH number of display characters per line
Specify the
line in the
U
CLS
Erase all dis
LOCATE [x-coordinate], [y-coordinate],
[cursor switch]
Move the cu
Cursor switc
0: Not dis
1: Display
COLOR [foreground color], [background color],
[border color]
Specify colo
background
PUT SPRITE sprite plane number, [, [STEP]
(x-coordinate, y-coordinate)], [color code],
[sprite number]
Display the
the specifie*
sprite plane.
CIRCLE [STEP] (x-coordinate, y-coordinate),
radius, [color code], [start angle], [end angle],
[aspect ratio]
Draw a circl
DRAW "graphic subcommands"
Draw an arb
LINE [[STEP] (x-coordinate, y-coordinate)]-[STEP]
(x-coordinate, y-coordinate), [color code]
Jgpy
Draw a line
PAINT [STEP] (x-coordinate, y-coordinate),
[color code], [border line color code]
Color the ar
PSET [STEP] (x-coordinate, y-coordinate)
[, color code]
Mark a dot.
PRESET [STEP] (x-coordinate, y-coordinate)
[, color code]
Mark or era:
GW
Display or e
keys.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hb-501f

Table of Contents