From: hackbard Date: Wed, 1 Nov 2006 15:55:21 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5855169cfe2258957943102d48cd33122268d8d;p=my-code%2Fatmel.git *** empty log message *** --- 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<