Add interrupt handlers and redo vector locations

Most of these are taken from
https://cc65.github.io/doc/customizing.html, but modified to suit this
setup.
This commit is contained in:
Byron Lathi
2022-03-14 11:54:43 -05:00
parent ff78fd0179
commit fe45331e7a
4 changed files with 68 additions and 7 deletions

14
sw/vectors.s Normal file
View File

@@ -0,0 +1,14 @@
; ---------------------------------------------------------------------------
; vectors.s
; ---------------------------------------------------------------------------
;
; Defines the interrupt vector table.
.import _init
.import _nmi_int, _irq_int
.segment "VECTORS"
.addr _nmi_int ; NMI vector
.addr _init ; Reset vector
.addr _irq_int ; IRQ/BRK vector