From 3d8e5e4e1024a34885544acf3acec80e1b1e732b Mon Sep 17 00:00:00 2001 From: Bernard Blackham Date: Fri, 15 Aug 2003 08:18:10 +0000 Subject: [PATCH] Last cleanup --- ROM2/start.s | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ROM2/start.s 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 -- 2.20.1