2010 GCBasic Wish List

kent_twt4
2010-01-05
2013-05-30
  • kent_twt4

    kent_twt4 - 2010-01-05

    I'll start off with a couple wishes,

    Multiline array and table definitions, unless I've missed something here in the forums.  This coming from trying to format a GLCD.  Naturally it could be done with multiple array definitions, so as to keep the data within view on the editor page.  Tables aren't too bad because they are at the end of the program.  But it would be nice to format like below:

        dim Page0(128)
        Page0() =   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,
        64,32,32,32,64,128,0,224,32,32,32,32,192,0,224,32,
        32,32,32,0,0,0,192,32,192,0,0,0,32,32,224,32,
        32,0,0,0,0,128,64,32,32,32,64,0,128,64,32,32,
        32,64,128,96,128,0,0,192,32,192,0,0,128,96,0,0,
        0,224,32,32,32,32,192,0,0,0,192,32,192,0,0,0,
        192,32,32,32,32,64,0,224,0,128,64,32,32,32,64,0,
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

    And an integrated signed integers and math ability.  I tried the 'dim myVar as integer', but didn't get lift off, if I recollect correctly.

    Kent

     
  • Santiago

    Santiago - 2010-01-07

    Hi Kent.

    I'm using some routines for signed integers, i added to my include/system.h, perhaps you want try them.
    I tested in the previous version, and added the routines to the latest update (11/09), not tested this one, but if there isn't any copy/paste error i think they should work the same.

    There is also an absolute value function:

    dim intvar as integer
    dim absvar as word

    absvar = abs( intvar )

    You have the file here (system.h): http://piclinux.svn.sourceforge.net/viewvc/piclinux/GcBasic/include/lowlevel/system.h?revision=125

    Regards.

     
  • kent_twt4

    kent_twt4 - 2010-01-09

    Well sorry for that, had to delete the last message, because when I tried to make a bad joke, the syntax of using a filename-dot-xxx ended up turning into a hyperlink to nowhere.  Oh well, here is original message without the dot in the file name:

    Hi Santiago,

    Thank you very much for sharing the library.

    Gave a quick try and came up with a couple of syntax errors with the new build.  Haven't had a chance to dig into it, or try with an older build yet.  Will get back with observations soon.

    Was looking in my Python directory when pulling up the array format, and saw a file that caught my eye "GCBasic_Cow_py", very catchy….haha:-).  Not sure if that translates or not for everyone.

    Forgot the new code tags on the array or table format, hope this one comes thru.  The interest is for a 128x64 GLCD which has  eight pages of 128 bytes, and the need/luxury of a more compact form.  Meant for it to look like:

    Kent

    Page0() 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,
            64,32,32,32,64,128,0,224,32,32,32,32,192,0,224,32,
            32,32,32,0,0,0,192,32,192,0,0,0,32,32,224,32,
            32,0,0,0,0,128,64,32,32,32,64,0,128,64,32,32,
            32,64,128,96,128,0,0,192,32,192,0,0,128,96,0,0,
            0,224,32,32,32,32,192,0,0,0,192,32,192,0,0,0,
            192,32,32,32,32,64,0,224,0,128,64,32,32,32,64,0,
            0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    
     
  • Edward LaBudde

    Edward LaBudde - 2010-01-10

    Hi all, Well since next Christams isa long way off, how about USB support.  Thanks, Ed.

     
  • Frank

    Frank - 2010-06-11

    How about the option to create tables without any access code and a means of getting the base address of such tables into a word variable so you could roll you're own table reading code. Allow this type of table to be any length as well.

    Maybe the syntax fontptr =  @font1 would produce the pic assembly code

    movlw LOW font1
    movwf fontptr
    movlw HIGH font1
    movwf fontptr_H
    
     
  • pico

    pico - 2010-09-11

    Why do you want signed int code.  What are the advanteges of having signed integer compared
    to the usage of signed number and unsigned math.

     

Log in to post a comment.