Command line


Closed Thread
Results 1 to 6 of 6

Thread: Command line

  1. #1
    Bopo's Avatar
    Bopo Guest

    Default Command line

    Hello, i want to use PBP with the command line, and i want PBP to be on a CD, so the hex file cannot be saved in the directory of PBP.
    What i have to do for the hex file be saved in the same directory the .bas is or in a selected directory??

    Thanks,
    Sorry for my english.

  2. #2
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    In the PBP manual you'll see a section "command line options".
    There is one to pass options onto your assembler. If using PM, you can find PM's command line options in the PM.txt file in your PBP directory.

  3. #3
    Bopo's Avatar
    Bopo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Archilochus
    In the PBP manual you'll see a section "command line options".
    There is one to pass options onto your assembler. If using PM, you can find PM's command line options in the PM.txt file in your PBP directory.
    i don't find something that help me..
    i do this:
    http://www.picbasic.co.uk/forum/show...ight=directory

    it works, but no it doesn't work, i don't know why
    is another way to do this but with only commands?


    thanks

  4. #4
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

  5. #5
    Bopo's Avatar
    Bopo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by DynamoBen
    what option i have to use?, there is no option in that page..

  6. #6
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    A little experimentation and you would have discovered that you can have PBP in any directory or drive that you wish totally independant of your program files...

    Let's set up one example world...

    The PICBasic files are installed in C:\PIC\PBP246
    MPLAB (if you use it) is installed in C:\Program Files\Microchip\MPASM Suite
    Our Data files are located in C:\Files

    Our PATH is set to C:\PIC\PBP246;C:\Program Files\Microchip\MPASM Suite

    From a DOS Command Window, Log into your FILES directory (C:\FILES) and from there simply execute your compiler command line (typical example containing whatever options you want)...

    PBP -p16F628 MyProgram -v

    or...

    PBP -p16F628 MyProgram -v -ampasm

    ...all your datafiles, ie...

    MyProgram.bas
    MyProgram.hex
    Myprogram.asm
    MyProgram.mac
    MyProgram.cod
    MyProgram.err
    MyProgram.lst

    (the files your get are dependant on which assembler you use) will all be located in our FILES directory, remote and away from the PBP or MPLAB/MPASM installations.

    The above is just one example of how you can distribute your datafiles away from your compiler and assembler files. Naturally you can substitute C: for any drive of your choice as long as the directory for the DATAFILES is on a drive capable of READ/WRITE.

Members who have read this thread : 1

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