How can I slow down the zx80 so I can see it count?
10 for a=1 to 1000
20 print a
40 next a
I'm planning a little basic game based on dice rolls and would like a pause between moves so screen text can be read. is this possible? I also like the idea of zx81's pause statment that can be pushed forward by pushing any key to speed things up but I'm guessing the only way this could be done on the zx80 would be to input a string then press newline?
Code: Select all
FOR I=0 TO 10000 NEXT I
But depending on the value you count, you can vary the TO value or put other commands between, can be a divsion for example or a multiplication which should take some time. Would be possible to put an additional FOR NEXT loop inside as well (have then 65535*65535 times to do - this should give an enormous amount of delay ).
But the ZX80 does not generate a visible screen content while program is running. Could be forced with INPUT I think but anyway screen will flicker quite much as well.
There is no INKEY$ function - this needs a timer as well. You could write an own assembler code doing keyboard enquiries.gozzo wrote:I had also wondered if there was any way of simulating the zx81's PAUSE on a zx80, either timed or ended by keypress. unfortunately I don't know what will do it, yet!!
Here is a good readable online manual: