I thought these might prove useful for people who try to follow this book by Toni Baker. While its a great book there are a few bugs that cause issues especially when learning. I've fixed the listings and posted a few of the main programs she covers below. Note the HEXLD program has had the Verify routine at line 420 REM'ed this was so I could to get it to work in SPIN also from 700 I've edited each so that Run 700 loads and runs the games. The original listings may have handled this differently. All the programs were written on original hardware and saved to real tapes then transferred to SPIN so I could create TAP files and share them. I would normally work with microdrives but when saving to MD something in the code was forcing a format and so I switched to tapes.
Note for all the "games" when loaded input RUN 700 to start. See Chapter 10 for details as to why this is.
Chapter 10 - A program to Help you Debug.
Program Name: HEXLD3
Every program listed has the HEXLD3 Program included. If you look at Page 122 you will see the commands used to operate this program. Load any game below then input Run 500. The program will ask For the Begin Address of your machine code program. Enter a Hex value i.e. 6800 then enter. Input 00 then enter and finally enter. You will now have erased the original machine code "Game" and started your own program who's details are 00 at address 6800.
https://drive.google.com/file/d/1jzmMIw ... drive_link
Chapters - 12, 14 and 16.
Program Name: Draughts
The TAP below contains the finished program (including HEXLD3). If there is interest then I can also upload Chapters 12 and Chapters 14 as progress.
Note: This has been debugged from the original listing
https://drive.google.com/file/d/1Aey7SG ... drive_link
Chapter 13 - A Touch of Culture
Program Name: Life
I don't really understand what this so was not able to verify if it works correctly or not. It does nice things though
https://drive.google.com/file/d/1uG1-cf ... drive_link
Chapter 15 - Graphic Games
Program Name: Spirals
https://drive.google.com/file/d/1izNDTg ... drive_link
Chapter 15 - Graphic Games
Program Name: Breakout
Note: This has been debugged from the original listing
https://drive.google.com/file/d/1jzmMIw ... drive_link
I hope you find these programs both interesting and useful.
Paul
Mastering Machine Code on Your ZX Spectrum - Type-Ins
Re: Mastering Machine Code on Your ZX Spectrum - Type-Ins
The link for HEXLD3 is wrong.
Re: Mastering Machine Code on Your ZX Spectrum - Type-Ins
Hey,
All the programs linked above include the HEXLD3 program. You’ll need to reference chapter 10 https://ia600604.us.archive.org/view_a ... ectrum.pdf to see how it all works.
Hope that helps
Paul