Help please with Assembly (PBPro user)


Results 1 to 10 of 10

Threaded View

  1. #2
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    I am not so experienced at using assembly, but with the help of Darrel, I have been able to get two microchip asm examples to work. (Thanks Darrel!!!).

    This example looks a little more straight forward, but then they always look easy, don't they?

    First, you should define your variables. This I have always done outside the asm portion.
    Code:
    ;example:
    T1XHi        VAR byte 
    T1XLo       VAR byte 
    ..................................etc
    
    
    ;When these variable are used inside asm, you add a little "_" on the front of them:
    asm
    ..........  _T1XHi
    ........... _T1XLo
    
    endasm
    Why don't you start with that, and see how many fewer errors you get. Then post your errors here, and I will try to help you.
    Last edited by ScaleRobotics; - 2nd April 2009 at 17:18.

Similar Threads

  1. 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
  2. Picbasic Pro Demo assembly errors
    By mikeRho in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd January 2008, 06:41
  3. Assembly Guru : Question
    By Archangel in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 20th May 2007, 03:51
  4. from assembly to basic
    By shantanu in forum Off Topic
    Replies: 4
    Last Post: - 1st February 2007, 14:50
  5. How do you do this in Assembly
    By ice in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th May 2005, 06:47

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