abidr
Full Member level 5
- Joined
- Feb 14, 2007
- Messages
- 255
- Helped
- 37
- Reputation
- 74
- Reaction score
- 32
- Trophy points
- 1,308
- Location
- 33 N, 73 E
- Activity points
- 2,691
Guys I am doing a project with PIC18F2550/4550 I have compiled the bootloader for the device.
My whole project is in Hitech C for PIC18, now I need to adopt my code so that code starts from 800 instead of 0000, I have found the following code but it is for C18, I need to change it to Hitech C for PIC18, I will be thankful for the help
My whole project is in Hitech C for PIC18, now I need to adopt my code so that code starts from 800 instead of 0000, I have found the following code but it is for C18, I need to change it to Hitech C for PIC18, I will be thankful for the help
Code:
extern void _startup (void);
#pragma code _RESET_INTERRUPT_VECTOR = 0x000800
void _reset (void)
{
_asm goto _startup _endasm
}
#pragma code
#pragma code _HIGH_INTERRUPT_VECTOR = 0x000808
void _high_ISR (void)
{
;
}
#pragma code _LOW_INTERRUPT_VECTOR = 0x000818
void _low_ISR (void)
{
;
}
/* This pragma forces the code below this line to be put into the code */
/* section (memory address >= 0x82A). See linker script for details. */
#pragma code