Share

Great Cow BASIC

Code

Programming Languages: BASIC

License: GNU General Public License (GPL), GNU Library or Lesser General Public License (LGPL)

Repositories

browse code, statistics cvs -d:pserver:anonymous@gcbasic.cvs.sourceforge.net:/cvsroot/gcbasic login

cvs -z3 -d:pserver:anonymous@gcbasic.cvs.sourceforge.net:/cvsroot/gcbasic co -P modulename

Show:

What's happening?

  • problem with serial

    here is what i got: #chip 12F683, 8 'mhz #config OSC=INTOSC, MCLRE=off, WDT=off Ser_Init dim Temp1 as byte dir gpio.0 out 'serial out dir gpio.1 in 'SERIAL IN InitSer 1, r2400, 1, 8, 1, none , normal #define RecAHigh GPIO.1 on #define RecALow GPIO.1 off start: SerReceive 1, Temp1 if temp1 = 97 then Xmit_print("a") end if if temp197 then Xmit_print("b") end if goto...

    2010-01-08 00:52:58 UTC by nobody

  • Followup: RE: Bin2Ascii, not counting correctly over 999

    The quick and kind of ugly work around is to change the conditionals in bin2ascii sub. Works on rollovers of 999 to 1000 and 9999 to 10000. Only problem is you've got leading zero's now. Looks like some sort of word size conditional problem, but not sure at the moment. If LCDValueTemp >= 0 Or LCDValue >= 1000 Then .... ... IF LCDValueTemp >= 0 OR LCDValue >= 100 Then ... ... IF...

    2010-01-07 22:28:21 UTC by kent_twt4

  • Followup: RE: Bin2Ascii, not counting correctly over 999

    OOPs.........Scratch the previous post............!!!! I see what you mean. Will have to dig deeper to see what is happening.

    2010-01-07 20:06:09 UTC by kent_twt4

  • Followup: RE: 2010 GCBasic Wish List

    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...

    2010-01-07 19:48:14 UTC by arcachofo

  • Followup: RE: Bin2Ascii, not counting correctly over 999

    Bit errors due to slow clock and overhead of routines, is my guess. To get a fast baudrate with the internal oscillator is pretty much a guessing game. Some buadrates work while others will not. I think I claimed that a 115200 baud rate was possible. The conditions were a 16f648a with a 20Mhz crystal, buad = 7,halfbuad = 4, and the data was just a loop back test from a terminal key press...

    2010-01-07 18:47:09 UTC by kent_twt4

  • Warning: Current chip does not have enough ..

    GCBasic built an hex file and an error file with: [b]Warning: Current chip does not have enough common (non-banked) RAM[/b] What does that mean ? What should I do ?.

    2010-01-07 15:03:27 UTC by capaction

  • Bin2Ascii, not counting correctly over 999

    here is my code, working, except that it doesnt seem to display numbers correctly when the values roll over from 999 to 1000 and 9999 to 10000, here is what it shows when it rolls over:- ok until now... 996 997 998 999 100 101 102 103 104 105 106 107 108 109 1010 1011 ok after this... and then ok before this.... 9997 9998 9999 100 101 102 103 104 105 106...

    2010-01-07 09:39:12 UTC by nobody

  • Byte wise CRC code

    Hi all, my current project requires the use of a radio link. These links can introduce errors in the messages. My message frame contains 8 Bytes; Address, Command, 5 data Bytes and a check Byte appended to the end. In doing some research on check methods I found a lot of “Mumbo-Jumbo.” The simplest form of a check is the “Check sum.” This consists of summing all the Bytes and then...

    2010-01-06 19:13:48 UTC by elabudde

  • 2010 GCBasic Wish List

    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:

    2010-01-05 06:52:45 UTC by kent_twt4

  • Followup: RE: 7 segment multiplexing - 16f877a

    Did not have a colon between the two ports on the displayselect definition. I am using the b and d ports and the following works for a counter 0 to 99. 'Chip model #chip 16F877a, 4 DIR PORTB b'00000000' DIR PORTD b'00000000' 'setting the 7 segment display with 2 displays #define displaycount 2 #define DisplayPortA PORTD #define DisplayPortB PORTD #define DispselectA...

    2009-12-31 18:27:28 UTC by nobody

Our Numbers