ZX80 Blank REM statements
Posted: Sun Mar 09, 2025 3:36 am
I'm sure this has been brought up here somewhere in the past, but my search isn't finding the topic.
Has anyone seen the behavior below on the ZX80?
Run this program. (Note that lines 11-14 do not have anything after the REM)
Now delete any single line from 11-14 and run again.
Delete another single line from this group and run.
If the number of empty REM lines is odd, line 20 is skipped.
If the REM line immediately preceding line 20 contains any character other than a space, 20 is executed.
Since I haven't done much playing on a ZX80, this is a new one to me.
Has anyone seen the behavior below on the ZX80?
Code: Select all
10 REM THIS IS A TEST
11 REM
12 REM
13 REM
14 REM
20 PRINT "NEW"
30 PRINT "TEST"
Now delete any single line from 11-14 and run again.
Delete another single line from this group and run.
If the number of empty REM lines is odd, line 20 is skipped.
If the REM line immediately preceding line 20 contains any character other than a space, 20 is executed.
Since I haven't done much playing on a ZX80, this is a new one to me.