?OS ERROR
Radio Shack TRS-80
Severity: MinorWhat it means
OS stands for Out of String Space: the amount of string space allocated was exceeded.
Radio Shack's manual explains that the TRS-80 sets aside 50 bytes for strings when it is turned on. Programs that store more text need more.
Affected Models
- TRS-80 Model I with Level II BASIC
How to Fix It
-
Put a CLEAR with a number at the start of the program, for example 10 CLEAR 1000.
That sets aside 1000 bytes for strings.
CLEAR also sets every variable to zero, so it belongs before the program gives them values. -
Make the number at least as large as the most characters the program keeps in strings at one time.