​ ​ ​ ​ Reserved Word " ALL " ?
Results 1 to 4 of 4

Thread: Reserved Word " ALL " ?

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    London
    Posts
    2,688

    Default Reserved Word " ALL " ?

    Hi,

    In my current program I wrote the line "symbol ALL = b8" in PE6 and was surprised that the syntax check responded with "Syntax error on line ... at/before position 10". BTW "ALL" is the Low byte of the Low word of "Register A" (Long Word) which fits with a naming scheme that I'd adopted. "ALH" is accepted and I've currently patched the program by changing ALL to ALo .

    Further investigation shows that this appears to be a "PE6 / M2" issue, which doesn't occur with PE5, nor if an X2 (or some legacy chips) is selected. This is with PE6.0.9.3, which might not be quite the latest version, and also AXEpad (1.5.1).

    So it doesn't look much like a Reserved Word issue, but if it is, what does it do? Of course it's not a very good symbol name in lower case, looking too much like a11 (A eleven) in some fonts. Perhaps this has lead to the problem?

    Cheers, Alan.

  2. #2
    Senior Member
    Join Date
    Feb 2010
    Location
    Don't Mess With My Texas!
    Posts
    2,213

    Default

    I've run into that before, Alan, but did not report it due to time constraints; then forgot. Thanks for bringing it up now.

    Of course it's not a very good symbol name in lower case, looking too much like a11 (A eleven) in some fonts. Perhaps this has lead to the problem?
    So, curiosity gets the best of me, what is the problem with using "a11" as a symbol name?
    - Tex
    __________________________________________________ _______________________
    "Truth lies dormant in our future history." ― Tex Clodhopper LXV
    “Confidence is ignorance. If you're feeling cocky, it's because there's something you don't know.” ― Eoin Colfer, Artemis Fowl

  3. #3
    Technical Support
    Join Date
    Jan 1970
    Location
    UK
    Posts
    23,790

    Default

    I can't off-hand give a definitive answer. It appears to be specific to M2 devices so I would guess it is related to something which only M2 devices support. I would expect it is a reserved word which can be used with something else, similar to "CLEAR ALL" if such a thing existed.

    Added: It could result from "#SimTask All".

  4. #4
    Senior Member
    Join Date
    Feb 2012
    Location
    London
    Posts
    2,688

    Default

    Hi,

    Quote Originally Posted by Texasclodhopper View Post
    So, curiosity gets the best of me, what is the problem with using "a11" as a symbol name?
    Only Murphy's (aka Sod's) Law. Mis-copying "all" for "a11" or vice-versa could then produce a "mysterious" syntax error.

    Thanks hippy. Yes, PICaxe Basic often uses predefined keywords to represent "numbers". But I did check that something like SERTXD(#ALL) doesn't print a number, but is itself reported as a syntax error (whilst PE5 reports it as an unknown variable).

    Cheers, Alan.

Bookmarks

Posting Permissions

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