ASM code


Closed Thread
Results 1 to 21 of 21

Thread: ASM code

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136


    Did you find this post helpful? Yes | No

    Default ASM code

    Bruce,

    That all works just great - thank you.

    I notice that you:

    1. Put an underscore (_) infront of the label that PBP jumps to (_Main_ASM).
    2. Not in front of the 'identifier' names of the variable shared between PBP and ASM.

    I thought the shared variables needed to:

    1. Be declared in PBP.
    2. Have an underscore when used in ASM.

    Page 194 in the BPB handbook? I'm obviously wrong because the code works?

    Regards Bill Legge

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


    Did you find this post helpful? Yes | No

    Default

    Hi Bill,

    Variables declared as SYSTEM types don't have the underscore. See the section on RAM Usage in your manual.

    Look at the CALL command for the example with the underscore preceeding the label name.
    Regards,

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

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  2. Adding PBPro code to an ASM file - how to?
    By wjsmarine in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th January 2010, 18:49
  3. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  4. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  5. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26

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