?RG ERROR

Radio Shack TRS-80

Severity: Minor

What it means

RG means RETURN without GOSUB.
Radio Shack's Level II BASIC manual: a RETURN statement was encountered before a matching GOSUB was executed.
Often the main program has run on into a subroutine.

Affected Models

  • TRS-80 Model I with Level II BASIC

How to Fix It

  1. Put END on the line just before the first subroutine.

  2. Check that each subroutine is reached with GOSUB, not GOTO.