git.ucc.asn.au
/
uccvend-snackrom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
To ROM J.
[uccvend-snackrom.git]
/
ROM2
/
vectors.s
diff --git
a/ROM2/vectors.s
b/ROM2/vectors.s
index
14ae986
..
14612df
100644
(file)
--- a/
ROM2/vectors.s
+++ b/
ROM2/vectors.s
@@
-27,14
+27,25
@@
Boston, MA 02111-1307, USA. */
.sect .text
.globl _start
.sect .text
.globl _start
+ .globl sci_interrupt
+ .globl uart_interrupt
;; Default interrupt handler.
.sect .text
def:
rti
;; 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
+ ldaa #0x40
+ staa 0x1025
+ rti
;;
;; Interrupt vectors are in a specific section that is
;;
;; Interrupt vectors are in a specific section that is
@@
-56,7
+67,7
@@
vectors:
.word def ; ffd4
;; SCI
.word def ; ffd4
;; SCI
- .word
def
; ffd6
+ .word
sci_interrupt
; ffd6
;; SPI
.word def ; ffd8
;; SPI
.word def ; ffd8
@@
-65,8
+76,8
@@
vectors:
.word def ; ffde (TOI)
;; Timer Output Compare
.word def ; ffde (TOI)
;; Timer Output Compare
- .word def ; ffe0
- .word def ; ffe2
+ .word def ; ffe0
+ .word def ; ffe2
.word def ; ffe4
.word def ; ffe6
.word def ; ffe8
.word def ; ffe4
.word def ; ffe6
.word def ; ffe8
@@
-77,12
+88,13
@@
vectors:
.word def ; ffee
;; Misc
.word def ; ffee
;; Misc
+ ;.word def ; fff0 (RTII) ; uncomment to disable the RTI & comment below
.word rti ; fff0 (RTII)
.word rti ; fff0 (RTII)
- .word
def
; fff2 (IRQ)
+ .word
uart_interrupt
; fff2 (IRQ)
.word def ; fff4 (XIRQ)
.word def ; fff6 (SWI)
.word def ; fff8 (ILL)
.word def ; fff4 (XIRQ)
.word def ; fff6 (SWI)
.word def ; fff8 (ILL)
- .word
def
; fffa (COP Failure)
- .word
def
; fffc (COP Clock monitor)
+ .word
_start
; fffa (COP Failure)
+ .word
_start
; fffc (COP Clock monitor)
.word _start ; fffe (reset)
.word _start ; fffe (reset)
UCC
git Repository :: git.ucc.asn.au