Menu

#301 GPASM warning message badly formatted

None
closed-fixed
None
1
2017-01-05
2016-12-22
No

Hi,
The end of this message is very strange:
...Warning[202] Argument out of range. Least significant bits used. Bit{277ns} > 7.

Discussion

  • Molnár Károly

    Molnár Károly - 2016-12-29
    • assigned_to: Molnár Károly
     
  • Molnár Károly

    Molnár Károly - 2016-12-29

    I will watch it.

    Károly

     
  • Molnár Károly

    Molnár Károly - 2016-12-29

    I do not know what code caused this message. For me this code could brought about:

    LOC    OBJECT CODE    LINE  SOURCE TEXT
      VALUE
    
                          00001         processor 18f25k50
                          00002         include "p18f25k50.inc"
                          00001         LIST
                          00002 
                          00003 ;==========================================================================
                          00004 ; Build date : Oct 21 2015
                          00005 ;  MPASM PIC18F25K50 processor include
                          00006 ; 
                          00007 ;  (c) Copyright 1999-2015 Microchip Technology, All rights reserved
                          00008 ;==========================================================================
                          00009 
                          02208         LIST
                          00003 
                          00004 main    code
                          00005 
    Warning[202]: Argument out of range. Least significant bits used. Bit{277ns} > 7.
    000000 9A89           00006         bcf     LATA, 0x115
                          00007 
                          00008         end
    

    This is a perfectly good warning.

    Károly

     
  • Philippe Paternotte

    Hi, I did not say that it is not legal, but that its formulation was, say, a bit difficult to understand: what 277ns means?

     
  • Molnár Károly

    Molnár Károly - 2016-12-30

    This text made by the google translator. It seems that this is an unlucky translation. I wanted to show what the wrong and what is the maximum possible value.

    Maybe it would have been better this: "Argument out of range. The three least significant bits are usable. Value: 277, Limit: 7"

    In my own language I like to formulate clearly and intelligently. I know how horrible it can be to read what I write down in English. That is why I do not like to write documentation. Many times it would be nice if the explanations someone would help translate into English.

    Károly

     
  • Philippe Paternotte

    Hi,
    Károly your English is quite understandable, don't worry.
    Finally I understand the warning message repeating what the assembler found (bit number 227); I did not seen it at first because the line was by mistake "BCF LATA, LATA" and LATA is 0x115 = 227...
    Now it's only I don't undestand what the "ns" after 227 stand for.

     
  • Molnár Károly

    Molnár Károly - 2016-12-31

    May be that is understandable, but can be often grammatically incorrect.

    Now it's only I don't understand what the "ns" after 227 stand for.

    So it would have been better for the wording: "227th bit"

    The referred warning message in reworded shape:
    "Argument out of range. The three least significant bits are usable. Bad value: 277 (0x115), Limit: 7"

    It will be good that way?

    Károly

     
  • Philippe Paternotte

    ;-) Now this is too much... Now you have to rework all the messages to make them as good and precise as this one!
    Good night, see ya next year!

     
  • Molnár Károly

    Molnár Károly - 2017-01-05
    • status: open --> closed-fixed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB