Relocating PBP


Closed Thread
Results 1 to 8 of 8

Thread: Relocating PBP

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    I ALWAYS use that define, because it is necessary if you use MCLoader. It appears to move the RESET vector up by 8 locations.

    Below is a cut-and-paste from PBPP18.LIB



    ifdef LOADER_USED
    LIST
    ORG RESET_ORG + 8 ; Make sure no library code in first 4 locs
    NOLIST
    endif
    Charles Linquist

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    I might have found it - one of the first lines of PBPP18.lib is

    If I change that line, it does relocate the code. Now I just have to test to see if it still runs.


    ifndef RESET_ORG
    RESET_ORG EQU 0
    endif
    Charles Linquist

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Instead of changing the library file, you can ....

    DEFINE RESET_ORG xxxx

    In your bootloader program.

    That way it doesn't mess things up for your other programs.
    <br>
    DT

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 13:55
  2. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 14:43
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 20:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th December 2005, 00:30
  5. PBP / XP Crash
    By pondindustrial in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2005, 04:16

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts