Andreas
Joined: 25 Oct 2004 Posts: 136
|
Bootloader - what else ? |
Posted: Tue Dec 19, 2006 6:45 am |
|
|
Hi All,
I hope the headline made You intereseted to see what its about.
I am using a bootloader which was written in Microchip C and I am trying to adapt my programms to use it.
Now my Question, maybe someone can give me some answer on that:
Code: |
#ifdef Bootloader
// ----------------------------------------------------------
#build(reset=0x3000, interrupt=0x2500)
#org 0x0000, 0x2007
#rom 0x2000={0,0,0,0}
#org default
#org 0x2008, 0x2017
void i1()
{
#asm
goto 0x2500
#endasm
}
#org default
#org 0x2018, 0x2027
void i2()
{
#asm
goto 0x2510
#endasm
}
#org default
#org 0x2028, 0x2040
void aaa()
{
#asm
goto 0x3000
#endasm
}
#org default
// ----------------------------------------------------------
#endif
Is code works fine for me no, but I think this can be easier achived !
What I need:
Interrupts at 2018
seven zero Bytes at 2000
entry to main at 3000
some suggestions ??
thanks
Andreas
|
|
|