Hi all. This is an update to my previous post on Mazist - the maze generation program for the CPC. I've managed the following improvements due to the enforced isolation that is upon us.
- Converted maze generation routine to z80 M/Code
- Converted Screen Printing routine to M/C
- Converted Mouse Solve routine to M/C
- Simplified and enhanced Save/load routines
As a result everything runs much faster. The largest maze is now generated in under 20 seconds instead of 5 minutes. Small mazes are almost instantaneous. Mouse solve is also much, much faster and printing to screen is noticeably faster. Save and load routines now save/load blocks of memory so they are now faster and use less disc space.
The headaches of relearning long forgotten Z80 M/Code was worth while for the program and for my isolation sanity. A copy of the disc is attached if you are interested.
Take care,Geoff
Edit: Oopsies.... I saved the bianary file too short! The attached file is correct and will now work (and not crash) as stated. Sorry
(https://i.ibb.co/YdGzWNP/mazist1.png) (https://ibb.co/YdGzWNP) (https://i.ibb.co/zSHSnbc/mazist3.png) (https://ibb.co/zSHSnbc) (https://i.ibb.co/qRKdpwL/mazist4.png) (https://ibb.co/qRKdpwL) (https://i.ibb.co/nz3XCGR/mazist6.png) (https://ibb.co/nz3XCGR) (https://i.ibb.co/syrdhr1/mazist7.png) (https://ibb.co/syrdhr1)
This is... surprisingly addictive! :D