From: hackbard Date: Tue, 9 Dec 2003 19:42:21 +0000 (+0000) Subject: minimal season frimware (start), full of bullshit! X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=e108908a7b122bb99cfc6521e0f049f587d7c0bc;p=my-code%2Fatmel.git minimal season frimware (start), full of bullshit! --- diff --git a/beginners/season_junior.asm b/beginners/season_junior.asm new file mode 100644 index 0000000..b955152 --- /dev/null +++ b/beginners/season_junior.asm @@ -0,0 +1,59 @@ +; season - junior +; +; author: hackbard@hackdaworld.dyndns.org +; + +include "../include/2313def.inc" + +; +; interrupt vectors: +; + +; reset +rjmp INIT ; init routine + +; int 0 +rjmp REC_FROM_CARD ; smartcard sends data, we listen + +; int 1 +rjmp REC_FROM_CAM ; cam sends data, we listen + +; timer/counter capt 1 +reti ; we just count the smartcard clocks + +; timer/counter compare +reti ; not in use + +; timer/counter overflow 1 +reti ; not in use + +; timer/counter overflow 0 +reti ; not in use + +; uart rx complete +reti ; maybe we need it later + +; uart data register empty +reti ; maybe we need it later + +; uart tx complete +reti ; maybe we need it later + +; analog comparator +reti ; not in use + +; +; init routine +; + +INIT: + +; set stackpointer +ldi r16,low(RAMEND) +out SPL,r16 + +; enable interrupts (global) +ldi r16,(1<<7) +out SREG,r16 + +