Superfast Mandelbrot
Superfast Mandelbrot
I have finally finished my first gfx program for the QL. It is the Superfast Mandelbrot Generator. It is available in two variants: 128x256 and 256x256.
-
- Aurora
- Posts: 874
- Joined: Mon Nov 24, 2014 2:03 pm
Re: Superfast Mandelbrot
Hi Vol,
I downloaded the file, but in the 'mandel' program, the procedure 'mandl' (see line 310) is missing... so there is no screen output...
Steve.
____________________
I downloaded the file, but in the 'mandel' program, the procedure 'mandl' (see line 310) is missing... so there is no screen output...
Steve.
____________________
Re: Superfast Mandelbrot
Not having tried it, I think, the procedure would be linked in with the binary code creation of the boot program.stevepoole wrote:I downloaded the file, but in the 'mandel' program, the procedure 'mandl' (see line 310) is missing... so there is no screen output...
Try to save it instead of CALLing it and look to it with a suitable editor. Perhaps there is a keyword "mandl".
7000 4E75
Re: Superfast Mandelbrot
Sorry to know this. I just put both files on the mdv1 virtual drive using sQLux or QemuLator. You need to run BOOT (you may rename this file), this asks about the device with file MANDEL, enter it or just press Enter if you use MDV1. I hope this can help.stevepoole wrote: I downloaded the file, but in the 'mandel' program, the procedure 'mandl' (see line 310) is missing... so there is no screen output...
-
- Aurora
- Posts: 874
- Joined: Mon Nov 24, 2014 2:03 pm
Re: Superfast Mandelbrot
Hi Vol,
I just ran your programs under QDOS, and they are very impressive indeed...
However, under SMSQ/E, they lock up the QL (and of course QPC2) !
An SMSQ/E version would please many users, but the machine code would need modifying....
Mnay thanks , though, for the routines....
Steve.
_____________________
I just ran your programs under QDOS, and they are very impressive indeed...
However, under SMSQ/E, they lock up the QL (and of course QPC2) !
An SMSQ/E version would please many users, but the machine code would need modifying....
Mnay thanks , though, for the routines....
Steve.
_____________________
-
- Aurora
- Posts: 874
- Joined: Mon Nov 24, 2014 2:03 pm
Re: Superfast Mandelbrot
Hi again,
Perhaps the problem is with the value '1105' in Line number 250 ?
What does this '1105' relate to in the QDOS memory map?
And what is the SMSQ/E equivalent ?
Does anyone know ?
Regards, Steve.
____________________
Perhaps the problem is with the value '1105' in Line number 250 ?
What does this '1105' relate to in the QDOS memory map?
And what is the SMSQ/E equivalent ?
Does anyone know ?
Regards, Steve.
____________________
Re: Superfast Mandelbrot
No, It is just a constant that helps to convert two ASCII values into a byte, The formula is (x1-65)*16+x2-65 = 16*x1+x2-1105.stevepoole wrote: Perhaps the problem is with the value '1105' in Line number 250 ?

Sorry, I know very little about SMSQ/E so it may take a while for me to make a variant for it. I suppose my code doesn't work under this OS because it uses direct access to video RAM at $20000 and, maybe, because it uses superuser mode.
- NormanDunbar
- Forum Moderator
- Posts: 2424
- Joined: Tue Dec 14, 2010 9:04 am
- Location: Leeds, West Yorkshire, UK
- Contact:
Re: Superfast Mandelbrot
Direct access is a bad thing these days.
Install DJToolkit, for example, from Dilwyn's web page, and use the SCREEN_ADDRESS function to return the actual sccreen address.
Cheers,
Norm.
Install DJToolkit, for example, from Dilwyn's web page, and use the SCREEN_ADDRESS function to return the actual sccreen address.
Cheers,
Norm.
Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts
No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
Author of Arduino Software Internals
Author of Arduino Interrupts
No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
-
- Aurora
- Posts: 874
- Joined: Mon Nov 24, 2014 2:03 pm
Re: Superfast Mandelbrot
Hi Vol,
Yes, the QDOS screen base address is 131072, which is indeed 20000 in hex.
SMSQ/E can return any moved screen base address, with the in-built SCR_BASE command... SO use HEX(SCR_BASE) and you should be ok.
SMSQ/E can run most QDOS programs as they are, with a few exceptions as we have seen here.
I enjoyed your program under QDOS, which is indeed exceptionally fast.
Regards, Steve.
____________________
Yes, the QDOS screen base address is 131072, which is indeed 20000 in hex.
SMSQ/E can return any moved screen base address, with the in-built SCR_BASE command... SO use HEX(SCR_BASE) and you should be ok.
SMSQ/E can run most QDOS programs as they are, with a few exceptions as we have seen here.
I enjoyed your program under QDOS, which is indeed exceptionally fast.
Regards, Steve.
____________________
Re: Superfast Mandelbrot
This brings back memories. When Lau Reeves wasn't crafting Minerva code he was working on his Mandelbrot speed trials. No idea if there was any connection 

One third of the original QView Minerva crew.