Hi, I am looking for a code snippet to relocate the start vectors in CCS = compiled code. I have a device that works as follows... The Bootloader is programmed into the device using say MPLAB and = PICSTART PLUS programmer. The bootloader uses the jump vector at location 0x000 to 0x003. It also = puts the actual bootloading code into the last 256 bytes of memory. Upon power up, the code is directed to the bootloader code automatically = and waits for a few hundred ms. If no upload request is received, the = bootloader passes control back to the user code which will reside at address above 0x003. The hardware is provided by bit-bashed serial port using a bit in port = RB and one in RC. (Just 2 IO lines used). In Hi-Tech C, the compiler sets code to start at location labelled = "START", we add the following code snippet to relocate this vector. #asm psect powerup, class=3DCODE, delta=3D2 global powerup, start powerup: org 0x3 goto start #endasm Best Regards David Huisman ----------------------------------------------------------------------- ORBIT COMMUNICATIONS =20 Reliable Wireless Solutions (Telemetry, Control, Monitoring ...) Website : http://www.orbitcoms.com PO Box 3469 Tuggerah NSW 2259, AUSTRALIA Phone: 61-2-4393-3627 Fax : 61-2-4393-3685 Mobile: 61-413-715-986 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 2/8/02 -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body