Anyone know useful ZX80 ROM tricks?

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Shaun_B
Posts: 312
Joined: Wed Apr 22, 2009 9:22 am

Re: Anyone know useful ZX80 ROM tricks?

Post by Shaun_B » Thu Apr 13, 2017 5:29 pm

Try this 4K ROM listing - do not put any spaces in the lines with REM:

Code: Select all

   1 RAMDOMISE
   2 GO TO 50
  10 PRINT "I WIN"
  15 REM
  20 PRINT "NO, I WIN"
  25 REM
  30 PRINT "WINNING HERE"
  35 REM
  40 PRINT "ERR... I THINK I AM THE WINNER"
  45 STOP
  50 GO TO RND(4)*10
A practical use for this - I think - would be:

Code: Select all

   10 IF A={condition to ignore next line} THEN REM
   20 PRINT "SOMETHING"
Regards,

Shaun.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest