Finding variables in RAM


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

    Default Finding variables in RAM

    I need to pass large arrays between PBP and ASM - larger than the BANKA limit. If I define an array in PBP, what is the best way to find the start location (in RAM) of that array in ASM? I'm using an 18F8723.
    Charles Linquist

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


    Did you find this post helpful? Yes | No

    Default

    I guess another question could be - does CH?RP work for RAM variables?
    Charles Linquist

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


    Did you find this post helpful? Yes | No

    Default

    I ran a test. It does. Problem solved.
    Charles Linquist

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Charles,

    Since you are using an 18F. You might want to use the FSR's and the LFSR instruction to access your arrays.

    Code:
      LFSR  FSR0, _MyArray
      MOVF  _Idx, W
      MOVFF PLUSW0, _Destination
    DT

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


    Did you find this post helpful? Yes | No

    Default

    Thank you Darrel. I'll try it tomorrow.
    Charles Linquist

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