Page 1 of 1

New community dev tool uploaded: ROM template

Posted: Mon Apr 26, 2021 5:09 am
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






 

New community dev tool uploaded: ROM template

Posted: Mon Apr 26, 2021 8:42 am
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!