Last cleanup
authorBernard Blackham <[email protected]>
Fri, 15 Aug 2003 08:18:10 +0000 (08:18 +0000)
committerBernard Blackham <[email protected]>
Fri, 15 Aug 2003 08:18:10 +0000 (08:18 +0000)
ROM2/start.s [new file with mode: 0644]

diff --git a/ROM2/start.s b/ROM2/start.s
new file mode 100644 (file)
index 0000000..1520835
--- /dev/null
@@ -0,0 +1,27 @@
+.sect .text
+.globl _start
+
+_start:
+;; enable the RTI
+       ldaa #0x40
+       staa 0x1024
+;; enable the ADC, and configure IRQ' for edge-sensitive operation
+       ldaa #0xa0
+       staa 0x1039
+;; set the stack pointer
+       lds _stack
+
+;; initialize initialised variables
+       ldx #0x0000
+loop:
+       cpx #0x0080
+       bcc out
+       clr 00,x
+       inx
+       bra loop
+out:
+
+       jsr main
+
+infinity:
+       bra infinity

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