PBP 2.6C assembler


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    ok, nope i'm lost again...

    The macro for CMPGT?WCL is...

    Code:
    CMPGT?WCL macro Win, Cin, Label
        if ((Cin) < 0)
            L?GOTO  Label
        else
          if ((Cin) < 0ffffh)
            MOVE?WW Win, R0
            MOVE?CB (Cin) >> 8, R1 + 1
            MOVE?CA low (Cin)
            L?CALL  CMPGT
            BIT?GOTO 0, STATUS, Z, Label
          endif
        endif
        endm
    So what is MOVE?WW, MOVE?CB and MOVE?CA oh and L?CALL and BIT?GOTO... Like... seriously!

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    Total guess; math calculations in IF?

    Robert

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    Hi,
    o what is MOVE?WW, MOVE?CB and MOVE?CA oh and L?CALL and BIT?GOTO... Like... seriously!
    They are more macros, move word to word, move constant to byte and so on. You should be able to find the actual code that those macros consists of at the same place you found the code for "top level" CMPGT?WCL macro.

    /Henrik.

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    Henrik, i already looked... It's not in the MAC file...
    It looks like it's embedded into PBP... which is not helpful...

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    They are in the .lib file for the device family you're targeting, from pbppic14.lib for example:
    Code:
    ;****************************************************************
    ;* MOVE?WW    : Macro - Move WORD variable into WORD variable   *
    ;*                                                              *
    ;* Input      : Win = WORD variable                             *
    ;* Output     : Wout = WORD variable                            *
    ;*                                                              *
    ;* Notes      :                                                 *
    ;****************************************************************
    
    MOVE?WW macro Win, Wout
            MOVE?BB Win, Wout
            MOVE?BB (Win) + 1, (Wout) + 1
        endm
    Hope that's helpful....

    /Henrik.

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    Thats wonderful... I think that's everything i was missing...

    However why does the pic18 lib and macro's have bank checking routines when, according to the data-sheet the ram and program memory maps are laid out in a linear sequential manner and not in banks?
    Unless i'm missing something?

Similar Threads

  1. which Assembler
    By debutpic in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st July 2007, 00:43
  2. PBP and assembler mixing - weird goings-on?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th November 2006, 22:17
  3. Replies: 14
    Last Post: - 4th October 2006, 06:45
  4. Which assembler are you using?
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st November 2005, 21:34
  5. code assembler
    By gimmy in forum General
    Replies: 3
    Last Post: - 2nd May 2005, 02:10

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