PBP 2.6C assembler


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    You need to determine which you are using; PM or MPASM assembler.

    I doubt they use the exact same commands/syntax. I suspect you are using PM. MPASM is the preferred assembler today.

    Robert

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    Last edited by Archangel; - 26th October 2013 at 23:19.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    PIC is 18F46K22 @ 64MHz...
    Compiler is MPASM...

    Basically, i'm looking into an asm piece of coding to create correct timings for the WS2812B LEDs...
    When i used PBP to spit out the wave form from an arry the IF statement killed the timings. I appears to take ~30 cycles to run one command...

    The bit that i'm after is as follows...

    Code:
    00134	IF BSPTR < (NOOFWS2812 * 3 * 8) THEN
    	CMPGE?WCL	_BSPTR, 0F0h, L00007
    First line being the PBP line and the second line being the resultant assembler.
    The problem is I can not find any reference to what "CMPGE?WCL" is?

    I think, it's some sort of ALU compare with condition jump... but why is it taking so darn long on a high end MCU...

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    never mind... i just realised some of these commands are actually macros... thats why i can't find them...

  5. #5


    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!

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: PBP 2.6C assembler

    Total guess; math calculations in IF?

    Robert

  7. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    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.

Similar Threads

  1. which Assembler
    By debutpic in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th July 2007, 23:43
  2. PBP and assembler mixing - weird goings-on?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th November 2006, 21:17
  3. Replies: 14
    Last Post: - 4th October 2006, 05:45
  4. Which assembler are you using?
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st November 2005, 20:34
  5. code assembler
    By gimmy in forum General
    Replies: 3
    Last Post: - 2nd May 2005, 01: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