From: Bernard Blackham Date: Fri, 15 Aug 2003 08:18:10 +0000 (+0000) Subject: Last cleanup X-Git-Tag: ROMW~66 X-Git-Url: https://git.ucc.asn.au/?p=uccvend-snackrom.git;a=commitdiff_plain;h=3d8e5e4e1024a34885544acf3acec80e1b1e732b Last cleanup --- diff --git a/ROM2/start.s b/ROM2/start.s new file mode 100644 index 0000000..1520835 --- /dev/null +++ b/ROM2/start.s @@ -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