asm in PBP


Closed Thread
Results 1 to 3 of 3

Thread: asm in PBP

  1. #1
    rastan's Avatar
    rastan Guest

    Unhappy asm in PBP

    hey again, i asked this before but people are seeming to avoid my last post so ill put things a bit clearer.

    is it possible to use variables that were defined in assembler, in picbasic. if so, how?

    in the manual it state that it is not possible but then says something about defining the variable in assambler AND in basic. is this the case?

    cheers

    phil

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    YES... use it like if it was declare in PBP.

    I mean if you have declare MYASMVAR in assembler....

    if MYASMVAR=XYZ then DoSomething

    BUT if you want to access to your PBP VAR in ASM, you'll have to add an underscore character before

    ASM
    SWAPF _MyPBPVAR,0
    '
    '
    '
    END ASM

    look at this thread that use R2 to recall the remainder of a DIV32
    http://www.picbasic.co.uk/forum/show...ight=remainder

    Same as for FLAGS to clear LCD initial setup:
    http://www.picbasic.co.uk/forum/show...ect+and+lcd%2A

    and how many other

    Last edited by mister_e; - 19th February 2005 at 22:14.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    rastan's Avatar
    rastan Guest


    Did you find this post helpful? Yes | No

    Default

    thanks again steve. keep up the good work

Similar Threads

  1. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 13:43
  2. ASM or PBP First?
    By mackrackit in forum Off Topic
    Replies: 4
    Last Post: - 10th October 2009, 12:08
  3. pbp - asm variable passing
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 25th May 2009, 08:49
  4. 10f Pbp & Asm
    By Ron Marcus in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th February 2006, 21:23
  5. asm and pbp
    By pic beginner in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th October 2004, 05:33

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