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
keypad fix
[uccvend-snackrom.git]
/
ROM2
/
start.s
diff --git
a/ROM2/start.s
b/ROM2/start.s
index
1520835
..
c370263
100644
(file)
--- a/
ROM2/start.s
+++ b/
ROM2/start.s
@@
-2,24
+2,34
@@
.globl _start
_start:
.globl _start
_start:
-;; enable the RTI
+
;; enable the RTI
ldaa #0x40
staa 0x1024
ldaa #0x40
staa 0x1024
-;; enable the ADC, and configure IRQ' for edge-sensitive operation
+
+ ;; enable the ADC, and configure IRQ' for edge-sensitive operation
ldaa #0xa0
staa 0x1039
ldaa #0xa0
staa 0x1039
-;; set the stack pointer
+
+ ;; set RTI intervals, and PA3/7 DDRs
+ ldaa #0x81
+ staa 0x1026
+
+ ;; clear ADC register
+ clra
+ staa 0x1030
+
+ ;; set the stack pointer
lds _stack
lds _stack
-;; initialize initialised variables
+ ;; blank initialised variables - should match memory.x's page0
ldx #0x0000
ldx #0x0000
-loop:
+loop
1
:
cpx #0x0080
cpx #0x0080
- bcc out
+ bcc out
1
clr 00,x
inx
clr 00,x
inx
- bra loop
-out:
+ bra loop
1
+out
1
:
jsr main
jsr main
UCC
git Repository :: git.ucc.asn.au