List of instructions used in PBP ?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104

    Question List of instructions used in PBP ?

    This seems like a silly request but where can I find a list of all instructions I can use inside PBP ? Yes, I've read the manual and it seems quite clear about instructions unique to PBP but what about lines like:

    xxx = (PORTB >> 4)

    I know what this does (reads the top 4 bits of the PORTB, I think !) but are commands like this documented anywhere ? Is there a good reference book ?

    Thanks,

    Andrew

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    Believe it or not, but you can find what you are looking for in the PBP manual. Check out Sections 4.17 and 5. http://www.melabs.com/downloads/pbpm304.pdf

    For example, in Section 4.17.3 SHIFT

    B0 = B0 << 3 ‘ Shifts B0 left 3 places
    (same as multiply by 8)

    W1 = W0 >> 1 ‘ Shifts W0 right 1 position
    and places result in W1 (same
    as divide by 2)
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104


    Did you find this post helpful? Yes | No

    Default

    Thanks Paul - I was looking in the wrong place
    I think that one of the strengths / challenges of working on PICs with PBP is that you can work directly on registers and do things like this. Trouble is that you've got to remember that you can do it in the first place !

    Andrew

Similar Threads

  1. PBP List file???
    By MOUNTAIN747 in forum General
    Replies: 2
    Last Post: - 28th February 2010, 19:48
  2. PBP Using too many instructions
    By The Master in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 21st December 2009, 23:24
  3. PBP Editor Wish List:
    By blainecf in forum PBP Wish List
    Replies: 7
    Last Post: - 12th July 2006, 21:07
  4. PBP wish list.....
    By muddy0409 in forum PBP Wish List
    Replies: 7
    Last Post: - 21st November 2005, 09:51
  5. PBP Wish List
    By Radiance in forum PBP Wish List
    Replies: 5
    Last Post: - 1st February 2005, 17:30

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