Where to read the explanation for warning code?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2016
    Posts
    60

    Default Where to read the explanation for warning code?

    I have got the following asm warning while compiling:
    "ASM WARNING Argument out of range. Least significant bits used. (0) : Warninig [202]"

    Where can I find the decoding text for "warning [202] ?

    I did check the PBP3 manual with no luck. Is there any link to melab site to see what the warning means?

    Thank you for the attention.

    Alberto

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Where to read the explanation for warning code?

    The easy way to find out what is going on is to look at the .LST file in the same directory as the .BAS file. Open this .LST file and search for the word "WARNING". You should see somewhere in the area the variable that is being manipulated. This warning is often given if someone is trying to manipulate data as if it is a WORD, but indead the variable is a BYTE.
    Dave Purola,
    N8NTA
    EN82fn

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,519


    Did you find this post helpful? Yes | No

    Default Re: Where to read the explanation for warning code?

    Since the warning comes from the assembler and not the compiler the correct place to look for what it means would be the assembler manual. With that said it usually doesn't give much more details than the warning or error message itself which is Argument out of range. Least significant bits used.

    See if Daves advice leads you to it, if not you're going to have to reduce the code until you find the offending piece or post the whole thing and perhaps someone is able to find the issue.

    /Henrik.

  4. #4
    Join Date
    Jun 2016
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: Where to read the explanation for warning code?

    Thank you Dave and Henrik for the kind answer. As suggested by Dave I have opened the .LST file and found that the warning was due to a variable set as a byte while it should be a word. Once changed the size of the variable and re-compiled the program, the WARNING disappeared!

    So thank you for solving my warning problem, but many thanks for the new things I have learned today!

    Alberto

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Where to read the explanation for warning code?

    Glad to help, You know, some of this stuff just isn't in the manual....
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. Replies: 3
    Last Post: - 10th November 2014, 18:20
  2. Just looking for an explanation
    By ERMEGM in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th June 2013, 03:00
  3. PBP code to read R/C signal from receiver
    By malc-c in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 28th October 2009, 21:51
  4. Need explanation
    By tishri in forum General
    Replies: 4
    Last Post: - 21st February 2008, 09:54
  5. Micro Code Studio - Warning message
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2006, 21:17

Members who have read this thread : 1

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