?ILLEGAL DIRECT ERROR

Commodore Commodore 64

Severity: Minor

What it means

Commodore's manual: the INPUT statement can only be used within a program, and not in direct mode.
Direct mode is a command typed without a line number, which runs as soon as you press RETURN.

Affected Models

  • Commodore 64
  • Commodore 64C
  • Commodore 128 in C64 mode

How to Fix It

  1. Put the INPUT in a numbered program line, for example 10 INPUT A, and then type RUN.