Uses ASM to draw the set and BASIC to handle the user interface.
Takes about 85 seconds in slow mode (NTSC) or about 16 seconds in fast mode.
- (2.28 KiB) Downloaded 249 times
I now use 4.12 fixed point math so you can zoom in further.
I also added a couple more features (print, set max depth, etc).
I think this is quite a good demonstration program for the good ol' zeddy.
- (2.38 KiB) Downloaded 261 times
I've seen that you're doing a lot of operations just to manage the 4 bit displacement. Wouldn't it be faster to go 8.16 in case more exponent were needed? (seems to me you would need the same operations to manage the exponent and even having 4 bits more precision, and would be easier to manage the mantissa, without all the mambo/jumbo shifting/rotational logic)
PS: I was thinking as an idea to investigate that as an extreme optimization might even work a 0.16 setup (with mantissa 1 implicit), or a 1.16 one (with 2 bits of mantissa, one implicit and the other one - the sign - managed with just conditional jumps and no operations)...
But it would let you zoom in further than my 4.12 format. So it might be worth it.
I was thinking about possibly changing the existing code so that it runs in fast mode, but shows a couple frames (20 or so) after every line so you can see how it going, but I'm not sure I can pull that off.