?RETURN WITHOUT GOSUB ERROR

Commodore Commodore 64

Severity: Minor

What it means

Commodore's manual: a RETURN statement was encountered, and no GOSUB command has been issued.

Affected Models

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

How to Fix It

  1. Look at the line just before your subroutines.

    If the main program runs on into them, it reaches their RETURN without a GOSUB. Put END on the line before the first subroutine.

  2. Check for a GOTO that jumps into a subroutine where a GOSUB was meant.