Relocate to Zero - More Memory!

The RetroNET NABU-LIB z88dk C Library for creating games and software.
Post Reply
User avatar
AGMS
Posts: 51
Joined: Tue Feb 20, 2024 9:56 pm

Relocate to Zero - More Memory!

Post by AGMS »

For those of you running out of memory when making Nabu home-brew (.nabu executable file) programs, I developed a relocating loader that turns off ROM and moves your program down to location zero, rather than $140D where the ROM loaded it. Or if you have a different ROM version that loads somewhere else, it will work with that too. Should give you an extra 5K of memory. More if you have an 8K ROM. See https://web.ncf.ca/au829/WeekendReports ... 2025.11.09 for the blog post and https://github.com/agmsmith/z88dk/blob/ ... u_crt0.asm for my Z88DK hack of the C runtime to do it.

- Alex
Post Reply