Jump to content

ROM template 1.0.0

   (0 reviews)
Sign in to follow this  

About This 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


try_it

No
  • Like 1



User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
×
×
  • Create New...

Important Information

Please review our Terms of Use