Home Page


BASIC Handbook

Basic2 Commands
Disk Drives
PEEK's and POKE's
RAM Memory Map
ROM Memory Map
Screen Display
Sprite
ASCII and CHR$ Codes

eMail
email5-commodorecheetah.co.uk

Note: You will need to replace the '-' with the @ symbol.
This is to minimize spam.

My BASIC Quick Reference Guide

GOTO
Abbreviation: G <SHIFT+O>

TYPE: Statement
FORMAT : GOTO <line number> or GO TO <line number>

Action: This statement allows the BASIC program to execute lines out of numerical order. The word GOTO followed by a number will make the program jump to the line with that number. GOTO NOT followed by a number equals GOTO 0. It must have the line number after the word GOTO.

It is possible to create loops with GOTO that will never end. The simplest example of this is a line that GOes TO itself, like 10 GOTO 10. These loops can be stopped using the <RUN/STOP> key on the keyboard.

EXAMPLES of GOTO Statement:

GOTO 100
10 GO TO 50
20 GOTO 999


Commodore Cheetah made by Allen Monks, started in the year 2000.