Mandelplot Printer Art

Discussion about ZX80 / ZX81 Software
Post Reply
User avatar
GCHarder
Posts: 345
Joined: Sat Dec 14, 2013 7:46 pm

Mandelplot Printer Art

Post by GCHarder »

MANDELPLOT: MATHEMATICAL PRINTER ART

by Fred Nachbaur

NOTE: This program requires 64K RAM!

You can use 16K if you lower the picture array's dimensions, as mentioned in the text file.

Enjoy;

Greg

Edit: Corrected OCR error added a couple more printouts
Attachments
Mandelplot.zip
Program
(417.78 KiB) Downloaded 13 times
Sample printout reduced in size
Sample printout reduced in size
Last edited by GCHarder on Tue Jun 28, 2022 7:18 pm, edited 2 times in total.
User avatar
XavSnap
Posts: 1680
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Mandelplot Printer Art

Post by XavSnap »

Hi Greg,

Who many time to draw this picture? About 3 hours ?
:oops:

1 hour to reach $7000... and the real clock set to x5 !
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
GCHarder
Posts: 345
Joined: Sat Dec 14, 2013 7:46 pm

Re: Mandelplot Printer Art

Post by GCHarder »

I rendered the Mandelbrot with No$ZX which is very fast, only about 1/2 hour or so...but the printer output for No$ZX is all messed up, always has been and there's no way to get the author to fix it! I therefore saved the program with the rendered data and LOADed it into VB81 for printing. VB81 prints the results nicely but for some unknown reason freezes up at random points in the printing process, and I can't figure out why. I therefore edited LINE 6005 to print one panel at a time until completed. Kind of tedious in that you just can't start printing all six panels and walk away. The printing took way longer than the rendering.

Regards;

Greg
User avatar
mrtinb
Posts: 1664
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Mandelplot Printer Art

Post by mrtinb »

How about SZ81. It has a great printing routine.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
XavSnap
Posts: 1680
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Mandelplot Printer Art

Post by XavSnap »

Hi Greg,
I don't know if the BASIC line 310 freeze the program...
plot.JPG
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
GCHarder
Posts: 345
Joined: Sat Dec 14, 2013 7:46 pm

Re: Mandelplot Printer Art

Post by GCHarder »

Well it can't help. OCR error I missed. Maybe I'll try another run and see what happens.
User avatar
XavSnap
Posts: 1680
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Mandelplot Printer Art

Post by XavSnap »

Hi Greg,
This code run properly, but to speed up the code, Fred Nachbaur use one extra lines to set a variable :

Code: Select all

 230   LET SZ=ZR*ZR+ZI*ZI
 240   IF SZ>4 THEN GOTO 270


SZ is used only one time!

Code: Select all

 240   IF ZR*ZR+ZI*ZI>4 THEN GOTO 270
Take only one line and speedup the process...
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
XavSnap
Posts: 1680
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Mandelplot Printer Art

Post by XavSnap »

XavSnap wrote: Sun Jun 26, 2022 7:08 am Hi Greg,
This code run properly, but to speed up the code, Fred Nachbaur use one extra lines to set a variable :

Code: Select all

 230   LET SZ=ZR*ZR+ZI*ZI
 240   IF SZ>4 THEN GOTO 270


SZ is used only one time!

Code: Select all

 240   IF ZR*ZR+ZI*ZI>4 THEN GOTO 270
Take only one line and speedup the process...
EDIT
VB81 prints the results nicely but for some unknown reason freezes up at random points in the printing process, and I can't figure out why.
On the array calculation too. The VB debugger seen to point a system (Z80 emulator) process... but can't target it!
Is there a PCreg/DblReg limit on a A$(x,x)= in the ROM ? I had to check it... A$(50,192) seem to hang the computer...
Is it the same ROM on NoCash ? EO seem to hang to on this line...
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
GCHarder
Posts: 345
Joined: Sat Dec 14, 2013 7:46 pm

Re: Mandelplot Printer Art

Post by GCHarder »

I don't know what ROM No$ZX uses. It may not matter as No$ZX is more of a ZX81 simulator rather than an emulator, it doesn't use the Sinclair video drivers for example.

I did get the program to run and printout on sx81 with no problems.

Greg
Post Reply