[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Move interrupt vector to bootloader
From: |
andi |
Subject: |
[avr-gcc-list] Move interrupt vector to bootloader |
Date: |
Sat, 5 Feb 2005 09:20:48 +0700 |
Does anyone know how to move interrupt vector to bootloader in 'C' ?
All interrupt, Reset and etc, like :
Address Labels Code Comments
;
.org $c00
$c00 rjmp RESET ; Reset handler
$c01 rjmp EXT_INT0 ; IRQ0 Handler
$c02 rjmp EXT_INT1 ; IRQ1 Handler
... ... ... ;
$c12 rjmp SPM_RDY ; Store Program Memory Ready Handler
$c13 RESET: ldi r16,high(RAMEND); Main program start
$c14 out SPH,r16 ; Set Stack Pointer to top of RAM
$c15 ldi r16,low(RAMEND)
$c16 out SPL,r16
$c17 sei ; Enable interrupts
$c18 <instr> xxx
;--------------------
I read it in ATmega8 datasheet page 45-47.
Thanks,
Andi
- [avr-gcc-list] Move interrupt vector to bootloader,
andi <=