variable passing / returning


Results 1 to 6 of 6

Threaded View

  1. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Variables in PBP are all "global". I.E. once a value is placed in a variable, it stays there until you change it or reset the PIC, and any sub-routine can access any variable.

    If you need to know the physical address of a variable, look in the .lst file after compile.

    Note the name given to a variable is actually the RAM address everything is stored in when the variable name is used.
    Last edited by Bruce; - 9th August 2004 at 16:15.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. EEPROM Variables (EE_Vars.pbp)
    By Darrel Taylor in forum Code Examples
    Replies: 79
    Last Post: - 26th October 2012, 00:06
  2. Subroutine Variable Passing
    By GoldStar in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th May 2009, 07:55
  3. pbp - asm variable passing
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th May 2009, 08:49
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. WORD vs BYTE variable lengths
    By bartman in forum General
    Replies: 0
    Last Post: - 28th November 2005, 21:16

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