Menu

problem with $ character

2007-02-05
2013-05-30
  • Stefano Delfiore

    I found a strange behaviour of the compiler. If I use the $ in one character of the name of a label the compiler change it in ().
    For example lbl$1 is changed in lbl()1.
    This behaviuor could be a problem if I want to use a line of assembler like "goto $+2" in the basic code, because I get "goto ()+2" and a compiler error.

    stefano

     
    • Hugh Considine

      Hugh Considine - 2007-02-10

      Bug fixed in http://gcbasic.sourceforge.net/newfiles/update.zip . Thanks for telling me about it.

       
    • Stefano Delfiore

      Thank you Hugh for the fix, the assembler instruction "goto $+n" is working!
      Reading the manual of gputils, I realized that the $ character is not allowed in label name, I made a mistake to use $ in a label.

      Stefano

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.