--- /dev/null
+.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