My list of Macros
This is a list of macros that I often use when programming with C using Z88dk.
Irrational numbers
Continue reading “Handy Macros for usage in Z88dk or any C compiler”Coding Adventures with the ZX Spectrum
My adventures and insights on game coding for the ZX Spectrum
My list of Macros
This is a list of macros that I often use when programming with C using Z88dk.
Irrational numbers
Continue reading “Handy Macros for usage in Z88dk or any C compiler”In my last article, I was working on optimizations on the setup portion of the Bresenham line in Z80. We were able to save some T-States and bytes with a few optimizations of each section. That part however is only run once per line. This article is going to delve into the iterative portion of this function and is going to give us our best time savings as it is run every time we plot a pixel to make our line complete.
Continue reading “Converting Bresenham to Assembler (pass 2) Part 2”The Bresenham Line routine (https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm) was created by Jack Bresenham back in 1962. It has been described as one of the most important algorithms made for computer graphics. It allows you to use integer math to draw a line, and it’s fast.
We’re going to implement several different versions of this algorithm in C to improve its speed compared to the default algorithm listed on Wikipedia.
Arkos 1 Tracker and Player
This is the twelfth lesson of programming the 128k ZX Spectrum. Today, I’m going to write about adding music to your program. I’m not going to be writing about making the song itself but integrating the Arkos 1 player into Z88dk.
If you missed out on lesson 11, it’s available at:
Continue reading “128k Programming basics using Z88DK and the SCCZ80 compiler Lesson 12”This is the tenth lesson of programming the 128k ZX Spectrum. Today, I’m going to write about adding music to your program. I’m not going to be writing about making the song itself (perhaps except a rousing version of “Mary had a little lamb”) but integrating the WYZ player into Z88dk.
Continue reading “128k Programming basics using Z88DK and the SCCZ80 compiler Lesson 10 WYZ Tracker and Player”OBJECT files and linking to associate sections
This is our second lesson, part 2 of programming the 128k ZX Spectrum. I have split up this lesson into several parts as I have greatly expanded the source code. In my last part, I covered the many batch files that I am using to compile the separate files
Continue reading “128k Programming basics using Z88DK and the SCCZ80 compiler Lesson 2 part 2”