Comment And Control Statements - Sharp MZ-80B Basic Manual

Personal computer double precision disc
Hide thumbs Also See for MZ-80B:
Table of Contents

Advertisement

DEF KEY
1 5 DEF KEY ( l )=LIST
25 DEF KEY (2)=LOAD !

3 . 1 . 1 2 Comment and control statements

REM
200 REM JOB- I
STOP
850 STOP
END
1 999 END
CLR
300 CLR
CURSOR
50 CURSOR 2 5 , 1 5
60 PRINT "ABC"
CSRH
CSRV
CONSOLE
1 0 CONSOLE S l O, 20
20 CONSOLE C80
30 CONSOLE C40
40 CONSOLE R
50 CONSOLE N
CHANGE
1 0 CHANGE
A DEF KEY statement def mes a function for any of the ten special
function keys. The statement on line number 1 5 defines special
RUN
function key 1 as LIST. The statement on line number 25 defines
special function key 2 as the multi-command LOAD: RUN.
Comment statement (not executed).
Stops program execution and awaits a comm and entry. When a
CONT command is entered, program execution is continued.
Declares the end of a program. Although the program is stopped,
the following program is executed if a CONT command is entered.
Clears all variables and arrays, that is, fills all numeric variables and
arrays with zeros and all string variables and arrays with nulls.
The CURSOR command moves the cursor to any position on the
screen. The first operand represents the horizontal location of the
destination, and must be between 0 and 39 in 40-character mode ,
and must be between 0 and 79 in 80-character mode. The second
operand represents the vertical location of the destination and
must be between 0 and 24. The left example displays "ABC" start­
ing at location (25 , 1 5) (the 26th position from the left side and
the 16th position from the top).
System variable indicating the X-coordinate (horizontal location)
of the cursor.
System variable indicating the Y-coordinate (vertical location) of
the cursor.
Sets the scrolling area to lines 10 through 20.
Sets the display in the 80 characters/line mode.
Sets the display in the 40 characters/line mode.
Sets the display in the reverse mode.
Sets the display in the normal mode .
Reverses the function of the [ SHIFT ] key concerned with alpha­
betic keys.
51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents