Clarification need about #CONFIG...#ENDCONFIG / asm ...endasm.


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Clarification need about #CONFIG...#ENDCONFIG / asm ...endasm.

    Hi,
    The #CONFIG/#ENDCONFIG was introduced in PBP3 and the first piece of code you posted was written when the CONFIG was handled in a different way.
    If you have a config block within ASM/ENDASM and compile it with PBP3 you will get the error message that you get because PBP3 then it then tries to use "both" the default configuration from the .PBPINC file AND the ones in the ASM/ENDASM block - kind of.

    If you want to use the configuration in the first piece of code then simply change ASM to #CONFIG and ENDASM to #ENDCONFIG. It'll then use that configuration instead of the defauly and I think you'll be fine.

    /Henrik.

  2. #2
    Join Date
    Feb 2007
    Posts
    37


    Did you find this post helpful? Yes | No

    Default Re: Clarification need about #CONFIG...#ENDCONFIG / asm ...endasm.

    Thanks HenrikOllson

    I have made the modification as you say and "automagically" all woks.

    I will become crazy without your help.

    Thanks again.
    Last edited by Wirecut; - 7th April 2013 at 00:52.
    Leo

Similar Threads

  1. DT_INT Vs ASM - Round 1
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th January 2013, 21:33
  2. #config...#endconfig
    By ptig185 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 7th September 2012, 07:17
  3. Pro upgrade clarification
    By fowardbias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th January 2010, 21:17
  4. question about how to implement ASM and ENDASM
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th March 2008, 09:21
  5. Asm...Endasm
    By Socal in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th April 2007, 05:27

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts