Sony HB-501P Service Manual page 18

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

Advertisement

Available languages

Available languages

example
GOSUB 1000, 2000, 3000
DN
DFF
5TO P
'
G GOSUB 1000,, 2000
) ON
!) OFF
i) STO P
3 GOSUB 1000
!TE GOSUB 1000
;RVAL = 100 GOSUB 1000
COMMANDS FOR CONNECTED DEVICE
format_
function
example
LPRINT [expression] [separator expression]
[separator expression] ...
Output data on the printer.
LPRINT A, B, C
LPRINT USING format symbol; expression
Output data on the printer in the
specified format. {See PRINT USING.)
LPRINT USING "#
H
A, B
MOTOR f{°FNF}]
Turn the tape recorder motor on or off.
MOTOR OFF
I
COMMANDS FOR ERROR PROCESSING
format
ERROR error code
function
Generate an error.of the specified error
code. Define error codes.
example
ERROR 3
IF A>100 THEN ERROR 250
ON ERROR GOTO line number
Transfer control to the specified line
when an error occurs.
ON ERROR GOTO 1000
RESUME
[j
NEXT
1]
Inline number
J
Return control to the main program after
executing an error processing routine.
RESUME 10
COMMANDS FOR MACHINE LANGUAGE SUBROUTINES
format
function
example
DEFUSR [numeric] = starting address
Define the starting address of user
subroutine.
DEFUSR0 = 53248
POKE address, expression
Write data into memory.
POKE &HA400, &HFF
COMMANDS FOR I/O PORT AND MEMORY
format
OUT port number, expression
WAIT port number, expression [, expression}
VPOKE address, expression
function
Output data to the I/O port.
Hold program execution until the input
data form the I/O port reaches a certain
value.
_
Output data to the video RAM.
OUT &H90, 3
WAIT &H90, 255
VPOKE 263, 01
COMMANDS FOR EXTENDED COMMANDS
format_
■■
function..
.R
;;: i
% ■■
.""
CALL subroutine name
Transfer control to the machine language
or
_subroutine name
subroutine, or transfer control to an
CALL SUB
CALL extended command [argument, argument ...]
extended command of the ROM
or
_extended command [argument, argument ...]
cartridge.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hb-501f

Table of Contents