Commodore 128 Programmer's Reference Manual page 55

Hide thumbs Also See for 128:
Table of Contents

Advertisement

BASIC BUILDING BLOCKS AND BASIC 7.0 ENCYCLOPEDIA
45
20 GET B, C, D
GET numeric variables B,C and D from the keyboard without
waiting for a key to be pressed.
GETKEY
Receive input data from the keyboard, one character at a time and wait for a key to be
pressed.
GETKEY variable list
EXAMPLE:
10 GETKEY A$
This line waits for a key to be pressed. Typing any key continues the program.
10 GETKEY A$,B$,C$
This line waits for three alphanumeric characters to be entered from the keyboard.
GET#
Receive input data from a tape, disk or RS232
GET# logical file number, variable list
EXAMPLE:
10 GET#1,A$
This example receives one character, which is stored in the
variable A$, from logical file number 1. This example assumes
that file 1 was previously opened. See the OPEN statement.
GO64
Switch to C64 mode
GO64
To return to C128 mode, press the reset button, or turn off the computer power and
turn it on again.
GOSUB
Call a subroutine from the specified line number
GOSUB line number
EXAMPLE:
20 GOSUB 800
This example calls the subroutine beginning at line 800 and executes
it. All subroutines must terminate with a RETURN statement.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents