Sony HB-501P Service Manual page 21

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

Advertisement

Available languages

Available languages

COMMANDS AND STATEMENTS
COMMANDS FOR PROGRAMMING
JkJD [starting line number] [, increment]
[line number) [-line number]
'[starting line number] [-] [end line number]
[starting line number] [ - ] [end line number]
=©<*UM
[new starting line number],
starting line number], [increment]
or
3EY LIST
function
Generate line numbers automatically.
Delete lines in a program.
Display program list.
Print program list on a connected printer.
Erase program.
Renumber lines.
Insert a comment
Display the function key contents.
example
AUTO 100, 10
DELETE 30-60
LIST
LLIST 100-200
RENUM 100, 10, 10
REM—PROGRAM 1-
COMMANDS FOR DEFINITION AND SETTING
§s*r
format
[size of character area] [, highest address]
variable name (maximum value of subscript
maxm
um value of subscript] ...)
__
»e
--
function
Initialize all variables and set the size of
the character area and the high memory.
Declare the name, type, size and
dimension of array.
INT
SNG
DBL
STR
character [-character]
Define matching between the first
character of a variable name and the
type of variable. (INT: integer, SNG:
single precision, DBL: double precision,
STR: string)
FN function name [(parameter)) = expression
EBASE [name of arr;
■arable] ...
*EY
Erase arrays
Define strings for function keys.
CLEAR 400, 55296
DIM AS (100)
DEFINT l-N
DEF FNA (X) = A * XA2 + B * X + C
ERASE A, B, C
KEY 1, "LLIST" + CHR$ (13)
COMMANDS
format
constant [, constant] [, constant] ...
fHWJT ["pron
* rariable] ...
INPUT [''prompt statement";] string type
H variable^expression
WiDS
|XS, M[,
N])=Y$
*HT [expression] [separator] [expression]
rator] ...
r expression] [separator] [expression]
function
Give data to be read with a READ
statement.
Give value of variable from the keyboard.
Give string of up to 254 characters from
the keyboard to the string type variable
Assign data to the variable.
Replace characters beginning with the
Mth character of the string X$ with
characters from the beginning to Nth
character of Y$.
Output data onto display screen. A
separator is a semi-colon (;), a comma
( ,) or a space.
example
DATA 3, 4, 5, 6, ABC, "C, D"
INPUT "A$=";AS
LINE INPUT "C$=";C$
LET A = A + 5
MID$ (AS, 2, 5) = B$
PRINT A;B;C
_et
ri¬
le
in
is
rs
iu
PRINT USING format symb^
IS
s
s
e
READ variable [, variable] [,
RESTORE (line number]
e
SWAP variable, variable
e
COMMANDS FOR C<
forma!'
RUN [line number]
STOP
CONT
END
TRON
s
TROFF_
r
FOR variable = initial value
\
1
[STE
NEXT [variable] [, variable]
GOSUB line number
>
1
RETURN [line number]
GOTO line number
Tthfn istat!
IF
expression
<
line
[GOTO line n
[ELSE ,statementj ]
ltLbt 'line nuber' J
ON expression GOTO line m
(, line number] ...
ON expression GOSUB line
[, line number] ...
1-19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hb-501f

Table of Contents