Srry 1F00 to occupy upper 256 bytes -----Original Message----- From: Mahmood Elnasser=20 Sent: Tuesday, April 02, 2002 12:48 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: Shane Tolmie's Bootloader I think u only need to reserve space if your program exceeds the address 1EFF for 8k devices coz you will overwrite the bootloader code, don't bother reserving space and program boot loader at address 1EFF. Good luck -----Original Message----- From: Keith Doxey [mailto:keith@DIYHA.CO.UK]=20 Sent: Monday, April 01, 2002 3:50 PM To: PICLIST@MITVMA.MIT.EDU Subject: Shane Tolmie's Bootloader Hi All, quick question from a newbie.... On Shane's site it mentions reserving memory space for the bootloader program in your program using the following examples... "CCS C: add *only one* of the next two statements, depending on the micro: #ORG 0x0700,0x07FF {} //for the 2k 16F870/1/2 #ORG 0x0F00,0x0FFF {} //for the 4k 16F873/4 #ORG 0x1F00,0x1FFF {} //for the 8k 16F876/7 For some versions of CCS C, use the following: #org 0x0700, 0x07FF void loader16F872(void) {} //for the 2k 16F870/1/2 #org 0x0F00, 0x0FFF void loader16F874(void) {} //for the 4k 16F873/4 #org 0x1F00, 0x1FFF void loader16F877(void) {} //for the 8k 16F876/7 Assembly: add an equivalent line reserving these program locations. " Not beign conversant with the C language, my programming will be in assembly language, what exactly do I need to add to an ASM file to reserve the memory for a 16F877 and where should the line of code be placed? I WILL get the hang of this soon :-) Thanks Keith www.diyha.co.uk www.kat5.tv -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu