AUTO (BASIC 3.5)

From C64-Wiki
Jump to navigationJump to search
BASIC keyword
Keyword: AUTO
Abbreviation: A Shift+U
Type: Command
Token code: 220/$DC
Handling routine
in BASIC ROM:
BASIC 3.5:
46797–46813
$B6CD–B6DD
BASIC 7.0:
22901–22917
$5975–$5985
List of all BASIC keywords


Remark: This article describes the BASIC command AUTO in Commodore BASIC V3.5 or higher.

Type: Command
General Programming-Syntax: AUTO [<step>]

AUTO is a BASIC 3.5 command that turns on automatic line numbering. If active, it will automatically start a new input line to enter with a automatic line number increased by value <step> (10 if absent) every time the line is finished by entering RETURN . This command is usable in direct mode only.

Note: The BASIC line numbers can be used only in the range from 0 to 63999.

Note 2: This command can't use in BASIC programs!


Examples[edit | edit source]

automatically numbers lines in increments of 10:

AUTO 10

automatically numbers lines in increments of 64:

AUTO 64

automatically numbers lines in increments of 100:

AUTO 100

turns off automatic line numbering:

AUTO

will also turn off automatic line numbering:

RUN


BASIC V3.5 Commands

ABS | ASC | ATN | AUTO | BACKUP | BOX | CHAR | CHR$ | CIRCLE | CLOSE | CLR | CMD | COLLECT | COLOR | CONT | COPY | COS | DATA | DEC | DEF | DELETE | DIM | DIRECTORY | DLOAD | DO | DRAW | DS | DS$ | DSAVE | END | EL | ELSE | ER | ERR$ | EXIT | EXP | FN | FOR | FRE | GET | GET# | GETKEY | GOSUB | GOTO | GRAPHIC | GSHAPE | HEADER | HELP | HEX$ | IF | INPUT | INPUT# | INSTR | INT | JOY | KEY | LEFT$ | LEN | LET | LIST | LOAD | LOCATE | LOG | LOOP | MID$ | MONITOR | NEW | NEXT | ON | OPEN | PAINT | PEEK | POKE | POS | PRINT | PRINT USING | PRINT# | PUDEF | RCLR | RDOT | READ | REM | RENAME | RENUMBER | RESTORE | RESUME | RETURN | RGR | RIGHT$ | RLUM | RND | RUN | SAVE | SCALE | SCNCLR | SCRATCH | SGN | SIN | SOUND | SPC | SQR | SSHAPE | STOP | STR$ | SYS | TAB | TAN | TRAP | TROFF | TRON | UNTIL | USR | VAL | VERIFY | VOL | WHILE | WAIT