[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
;-------------------------------------------------------
;=======================================================
; interrupt
;
name TIMER1_COMPA_intvec
#include
extern TIMER1_COMPA_interrupt
COMMON INTVEC(1) ; ????? should be INTVEC(2) in ATmegaorg TIMER1_COMPA_vect
jmp TIMER1_COMPA_interrupt
;-------
endmod
;=======================================================
; interrupt
;name TIMER1_COMPA_interrupt
#include "iom163.h"
public TIMER1_COMPA_interruptrseg CODE
TIMER1_COMPA_interrupt: ; +6 (int + rjmp)
st -Y, r16 ; 2
in r16,SREG ; 1
st -Y, r16 ; 2st -Y, r17
st -Y, r30
st -Y, r31
;
; bla-bla-bla
;
ld r31, Y+ ; 2
ld r30, Y+ ; 2ld r17, Y+ ; 2
ld r16, Y+ ; 2
out SREG, r16 ; 1 Store status registerld r16, Y+ ; 2
reti
;---------------
; endmod
;=======================================================
end
E-mail: info@telesys.ru