Re: My new C64 kernal

From: André Fachat <afachat_at_gmx.de>
Date: Tue, 24 Nov 2026 18:40:24 +0100
Message-ID: <1a20ea4ff40.2874.b4d1f2b66006003a6acd9b1a7b71c3b1_at_gmx.de>
Am 24. November 2026 17:59:12 schrieb ruud_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!

Hi Ruud, maybe look at the o65 file format. It is exactly made for such a 
scenario. Memory constrained system, read basic program as block to where 
you need it, followed by relocation tables that can be read byte by byte to 
translate the program.

And is already supprted by xa and IIRC even cc65/ca65. No native assembler 
that I know of though.

André
>
>
> --
>
> Kind regards / Met vriendelijke groet, Ruud Baltissen
>
> www.Baltissen.org
Received on 2026-11-24 19:00:02

Archive generated by hypermail 2.4.0.