New community dev tool uploaded: ROM template

All aspects of programming on the Commander X16.
Post Reply
Stefan
Posts: 465
Joined: Thu Aug 20, 2020 8:59 am

New community dev tool uploaded: ROM template

Post by Stefan »




ROM template




View File






This is a template for ROM based assembly programs that you are free to use or continue upon.

It's made for the CA65 assembler.

Usage:


  • Create your program code as normal. Of coarse, you need to place all variables in RAM and avoid any self modifying code.


  • Include the file kernal.inc. This will:


    • Create jump vectors for all "public" KERNAL function, and


    • Set the IRQ vector in $fffe-ffff, so that the KERNAL interrupt handler is called.




The file example.s is a small hello world test.

The project is built with build.sh.

The file example.cfg contains the memory segment settings needed by the assembler/linker.

The source code is also available on Github:

https://github.com/stefan-b-jakobsson/x16-romtemplate






 
Scott Robison
Posts: 952
Joined: Fri Mar 19, 2021 9:06 pm

New community dev tool uploaded: ROM template

Post by Scott Robison »


I wish I'd seen that 24 hours earlier after stumbling through most of those steps myself to start work on my interpreter!

Post Reply