CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Bootloader - what else ?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Andreas



Joined: 25 Oct 2004
Posts: 136

View user's profile Send private message

Bootloader - what else ?
PostPosted: Tue Dec 19, 2006 6:45 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group