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: 393
Joined: Wed Apr 22, 2009 10:22 am

Re: Anyone know useful ZX80 ROM tricks?

Post by Shaun_B » Thu Apr 13, 2017 6: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.

Shaun_B
Posts: 393
Joined: Wed Apr 22, 2009 10:22 am

Re: Anyone know useful ZX80 ROM tricks?

Post by Shaun_B » Thu Dec 21, 2017 3:07 pm

I found this by accident:

Code: Select all

   1 PRINT "HELLO ZX80 FANZ";
   2 POKE 16421,38
[EDIT] The POKE is wrong, I've worked it out. Please see attached demo (32 x 24 text in BASIC).

This seems to remove the message at the bottom of the screen. I was using EightyOne for this.

Thanks,

Shaun.
Attachments
32x24.o
(249 Bytes) Downloaded 11 times

Post Reply