Placing C Routines in Sections
This is the fourth lesson of programming the 128k ZX Spectrum. Today, I’m going to write about placing C routines in a specific memory space (SECTION) and calling it from main() in uncontended.c. This allows you to choose if you want to run your functions in either contended RAM, uncontended RAM, or the home bank 0. In another lesson, we will expand this to having functions in other RAM banks. Having code in other RAM banks is rather easy using the framework that I am going to show.
Continue reading “128k Programming basics using Z88DK and the SCCZ80 compiler Lesson 4”