Passing arrays PBP <-> Assembly


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107

    Default Passing arrays PBP <-> Assembly

    I need to write an assembly language ISR that fills an array and then passes that array to PBP for processing. If I dimension the array in PBP, how can I determine the first address of that array so that my assembly ISR can sequentially load it? Or is there an easier way?

    I'm using 18F chips.
    Charles Linquist

  2. #2
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Charles Linquis
    I need to write an assembly language ISR that fills an array and then passes that array to PBP for processing. If I dimension the array in PBP, how can I determine the first address of that array so that my assembly ISR can sequentially load it? Or is there an easier way?

    I'm using 18F chips.
    Take a look at the hardware async serial communications routine on the Melabs website. It is exactly what you want, but it does it in the form of a ring buffer. If you don't need this feature, just reset the pointers to 0 after the transfer is complete. I believe the name is "Aserbuf" or something close to that. There is a version written for the 18 series.

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


    Did you find this post helpful? Yes | No

    Smile

    Also see this recent post

    http://www.picbasic.co.uk/forum/showthread.php?t=3694

    Paul Borgmeier
    Salt Lake City, Utah
    USA

  4. #4
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Both sources were good, and I got it working.


    Thanks!

    Charles Linquist
    Charles Linquist

Similar Threads

  1. pbp - asm variable passing
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th May 2009, 09:49
  2. Replies: 2
    Last Post: - 8th February 2009, 06:10
  3. 4 Chanel Dmx512 ready assembly code to PBP ?
    By syscoder in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 22nd March 2007, 00:55
  4. pbp --> mplab broken again
    By kenif in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th December 2006, 19:57
  5. Assembly Language + PBP
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th January 2006, 14:54

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