PBP, ASM and LST files


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    That isn't the way a Human writes an assembler program.
    To get a useful assembler source code, download ICprog for free here:
    http://www.ic-prog.com/

    Open your hex file and select "assembler" under the "View" tab.
    It only works for 16 family devices (I think) I can guarantee it works with
    16F84/A, 16F628/A, 16F876, 16F877 hex codes.

    You'll notice you can only directly look at logic operations such as IF-THEN
    statements, NEXT-FOR loops, maths operations, etc.

    If you use any functional commands such as SOUND, LCDOUT, I2CREAD, etc.
    PBP inserts the code/libs for these commands at the start of the assembler source,
    and then each PBP command calls that code.

    For example, if you use the SERIN command three times in your PBP program,
    the assembler serial code is only inserted once (a simple routine that receives one byte),
    and the program calls that routine to receive every byte (around the areas of the program
    that each SERIN command was).

    You can save memory there because PBP uses some unnecessary "transporter variables" to
    deliver values to these libraries. With some study, in assembler, you can use them directly.
    Cheers, Art.
    Last edited by Art; - 11th January 2010 at 23:29.

Similar Threads

  1. PBP 2.6/MPLab 8.33 ASM "COD" error message
    By reddog24 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 3rd December 2009, 20:09

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