[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]

System Specification for C65Fred BowenMarch 1, 1991

GET - Get input data from the keyboard

    GET variable_list

The GET statement is a way to get data from the keyboard one character at a time. When the GET is executed, the character that was typed is received. If no character was typed, then a null (empty) character is returned, and the program continues without waiting for a key. There is no need to hit the RETURN key, and in fact the RETURN key can be received with a GET. The word GET is followed by a variable name, usually a string variable. If a numeric were used and any key other than a number was hit, the program would stop with an error message. The GET statement may also be put into a loop, checking for an empty result, that waits for a key to be struck to continue. The GETKEY statement could also be used in this case. This statement can only be executed within a program.

    10 DO: GET A$: LOOP UNTIL A$ ="A"

This line waits for the A key to be pressed to continue.

GETKEY - Get input character from keyboard (wait for key)

    GETKEY variable_list

The GETKEY statement is very similar to the GET statement. Unlike the GET statement, GETKEY waits for the user to type a character on the keyboard. This lets it be used easily to wait for a single character to be typed. This statement can only be executed within a program.

    10 GETKEY A$

This line waits for a key to be struck. Typing any key will continue the program.

GET# - Get input data from a channel (file)

    GET# logical_channel_number, variable_list

Used with a previously OPENed device or file to input one character at a time. Otherwise, it works like the GET statement. This statement can only executed within a program.

    10 GET#1,A$

GO64 - Exit C64DX mode and switch to C64 mode

    GO64

This statement switches from C64DX mode to C64 mode. The question 'ARE YOU SURE?' (in direct mode only) is posted for the user to respond to. If Y and return is typed then the currently loaded program is lost and control is given to C64 mode. This statement can be used in direct mode or within a program.


[Prev] [Next] [Contents] [Commodore] [New] [Search] [Home]
This page has been created by Sami Rautiainen.
Read the small print. Last updated May 28, 2002.