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

View File

@@ -14,12 +14,6 @@
.include "zeropage.inc"
.segment "VECTORS"
.addr _init
.addr _init
.addr _init
; ---------------------------------------------------------------------------
; Place the startup code in a special segment
@@ -49,7 +43,7 @@ _init: LDX #$FF ; Initialize stack pointer to $01FF
; ---------------------------------------------------------------------------
; Call main()
cli
JSR _main
; ---------------------------------------------------------------------------