My new C64 kernal

From: ruud_at_baltissen.org
Date: Tue, 24 Nov 2026 17:58:00 +0100
Message-ID: <8615dac729920db3eb06cb0ec2d099ec_at_baltissen.org>
Hallo allemaal,


I already mentioned my new C64 Kernal, based on the original one but all 
references to BASIC, RS232 and the use of tape removed. Next I mentioned 
relocatable programs. I have given it a long thought, a very long one 
because of the renovation of my kitchen, and even talked with Gideon 
about it. But his and your advice ended up the same: you need a table 
that tells the Kernal what addresses inside the program need to be 
changed and a program that handles the needed changes.

- My new Kernal has about 2 KB of free space so this program won't 
allocate RAM. Although I still have to write it, 2 KB should be enough

- The format of the table:
   - two identification bytes
   - the new start address of the program
   - the relative addresses of the addresses inside the program that have 
to be changed
   The PRG contains the starting address. This one is subtracted from the 
read address and the result is added to the new start address. And that 
result is written to RAM instead of the original address.

- The table is created by the compiler. For the moment it is my laptop 
but I have hope to create a compiler in the future that can run on my 
C64 Ultimate.

- Because of the relocation and not wanting to use RAM for it, the table 
is read byte by byte. Better: two bytes at the time.

- The program has to be read byte by byte as well IMHO because of the 
proces mentioned above. A faster way could be reading the program sector 
by sector.

Comment, ideas etc. is welcome!


-- 

Kind regards / Met vriendelijke groet, Ruud Baltissen

www.Baltissen.org
Received on 2026-11-24 18:00:01

Archive generated by hypermail 2.4.0.