git.ucc.asn.au
/
uccvend-snackrom.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Last cleanup
[uccvend-snackrom.git]
/
ROM2
/
start.s
1
.sect .text
2
.globl _start
3
4
_start:
5
;; enable the RTI
6
ldaa #0x40
7
staa 0x1024
8
;; enable the ADC, and configure IRQ' for edge-sensitive operation
9
ldaa #0xa0
10
staa 0x1039
11
;; set the stack pointer
12
lds _stack
13
14
;; initialize initialised variables
15
ldx #0x0000
16
loop:
17
cpx #0x0080
18
bcc out
19
clr 00,x
20
inx
21
bra loop
22
out:
23
24
jsr main
25
26
infinity:
27
bra infinity
UCC
git Repository :: git.ucc.asn.au