A little sanity checker.
[uccvend-snackrom.git] / ROM2 / vectors.s
index 76e6614..04bfb72 100644 (file)
@@ -27,16 +27,27 @@ Boston, MA 02111-1307, USA.  */
 
        .sect .text
        .globl _start
-       .globl sci_interrupt
-       .globl uart_interrupt
+       .globl sci_interrupt_serial
+       .globl sci_interrupt_coinmech
+       ;.globl uart_interrupt
 
 ;; Default interrupt handler.
        .sect .text
 def:
        rti
 
-       .globl _debug_user_vectors
-_debug_user_vectors = 0
+;;     .globl _debug_user_vectors
+;;_debug_user_vectors = 0
+
+
+;; RTI interrupt handler
+       .sect .text
+rti:
+       jsr chime
+       jsr serial_rti
+       ldaa #0x40
+       staa 0x1025
+       rti
 
 ;; 
 ;; Interrupt vectors are in a specific section that is
@@ -58,7 +69,7 @@ vectors:
        .word def               ; ffd4
 
        ;; SCI
-       .word sci_interrupt     ; ffd6
+       .word sci_interrupt_serial      ; ffd6
 
        ;; SPI
        .word def               ; ffd8
@@ -79,8 +90,10 @@ vectors:
        .word def               ; ffee
 
        ;;  Misc
+       ;.word def              ; fff0 (RTII) ; uncomment to disable the RTI & comment below
        .word rti               ; fff0 (RTII)
-       .word uart_interrupt    ; fff2 (IRQ)
+       ;.word uart_interrupt   ; fff2 (IRQ)
+       .word def       ; fff2 (IRQ)
        .word def               ; fff4 (XIRQ)
        .word def               ; fff6 (SWI)
        .word def               ; fff8 (ILL)

UCC git Repository :: git.ucc.asn.au