Print values fast (10X faster)

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
Bean
Posts: 65
Joined: Fri Aug 01, 2014 8:40 pm

Print values fast (10X faster)

Post by Bean »

I love the ZX81, but printing values is crazy slow.
Try this

10 FOR X=1 TO 200
20 PRINT X;" ";
30 NEXT X

So I thought I would write a short machine code program to make it faster.
I have timed it and it seems to be about 10 times faster than Sinclair BASIC.

All comments welcome...

Bean
Attachments
prtx.p
(1.08 KiB) Downloaded 523 times
Fast Print Value.txt
(2.53 KiB) Downloaded 594 times
poglad
Posts: 133
Joined: Mon Mar 24, 2014 3:11 pm
Location: Aberdeen, Scotland

Re: Print values fast (10X faster)

Post by poglad »

What we need here is a Like button! :D
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: Print values fast (10X faster)

Post by sirmorris »

Yup, Nice work, Bean!
Bean
Posts: 65
Joined: Fri Aug 01, 2014 8:40 pm

Re: Print values fast (10X faster)

Post by Bean »

Thanks guys.
Oh, I forgot to mention that it works with LPRINT too.

Bean
Post Reply