From d5855169cfe2258957943102d48cd33122268d8d Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 1 Nov 2006 15:55:21 +0000 Subject: [PATCH] *** empty log message *** --- beginners/m128_tests.asm | 184 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) create mode 100644 beginners/m128_tests.asm diff --git a/beginners/m128_tests.asm b/beginners/m128_tests.asm new file mode 100644 index 0000000..413fa87 --- /dev/null +++ b/beginners/m128_tests.asm @@ -0,0 +1,184 @@ +.include "../include/m128def.inc" + +; interrupt vectors + +jmp RESET + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +jmp _INT4 + +jmp _INT5 + +jmp _INT6 + +jmp _INT7 + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +reti +nop + +RESET: + + ; init + + ; set stackpointer + ldi r17,high(RAMEND) + out SPH,r17 + ldi r17,low(RAMEND) + out SPL,r17 + + ; uart + ldi r17,(1<