Menu

Lookup Tables (GCBASIC v. 0.9.2.0

2006-10-17
2013-05-30
  • Stefano Bonomi

    Stefano Bonomi - 2006-10-17

    Greetings!

    I'm trying to use a couple of Look Up Tables in my program, but I receive following compiler Errors:

    compiled.asm:49:Error [127] Too many arguments.
    compiled.asm:51:Error [113] Symbol not previously defined (ROWPRG).

    Here is the code:

    #chip 16F690,4 
    #config _INTRC_OSC_NOCLKOUT, _WDT_OFF,_PWRTE_OFF,_MCLRE_OFF,_CP_OFF, _BOR_OFF, _IESO_OFF,_FCMEN_OFF
    do
        Rowcount=1
            do while Rowcount < 4
                 ReadTable  Rowmask, Rowcount, Rowprg 
                 Rowcount = Rowcount +1
             loop
    loop
    ''''''''''''''''''''''''''''''''''''''''''
    '    Lookup Table                     '
    ''''''''''''''''''''''''''''''''''''''''''
    Table Rowmask
    b'00100000'
    b'01000000'
    b'01100000'
    b'10000000'
    End Table

    What's wrong?

     
    • Hugh Considine

      Hugh Considine - 2006-10-18

      There seems to be a bug in ReadTable. This is a fault in the compiler, and I shall fix it as soon as possible. Thanks for letting me know about it.

       
    • Hugh Considine

      Hugh Considine - 2006-10-18

      There were a few small bugs in the ReadTable command that made it unable to accept a location from a variable. The new fixed .exe is now online at http://gcbasic.sourceforge.net/newfiles/gcbasic.exe.

      The #config line in your program has a slight error - the 16F690 uses _BOD_OFF, not _BOR_OFF.

       
      • Stefano Bonomi

        Stefano Bonomi - 2006-10-18

        Hmmm...Hugh, I'm getting 404 File not found trying to download the new executable..

         
    • Stefano Bonomi

      Stefano Bonomi - 2006-10-18

      Thanks a lot !

      About the #config, although sometimes also Microchip wrong reports for 16F690 _BOD_OFF (for instance in PICKIT2 lessons), the right parameter is _BOR_OFF (see 16F690 datasheet, or http://forum.microchip.com/tm.aspx?m=154521\)

       
    • Hugh Considine

      Hugh Considine - 2006-10-19

      SourceForge has made the . a part of the hyperlink. The correct address is:

      http://gcbasic.sourceforge.net/newfiles/gcbasic.exe

      This often seems to happen with links on here.

       
    • Stefano Bonomi

      Stefano Bonomi - 2006-10-20

      Ok, the link work.
      Problems with Tables away.

      Thanks a lot

       

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.