tiny basic interpreter

Go To Last Post
61 posts / 0 new

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There is always dds basic. Just reduce these:
#define SMAX 999
#define CMAX 256
#define BMAX 999
#define LMAX 9999
and add peek and poke for stuff like PORTs, etc

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

http://www.ittybittycomputers.co...

Compiles in gcc just fine with little changes.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The source code of TBC is now published on http://www.cqham.ru/tbcgroup/tbc...
It's in english.
Everyone can use it without any limitaions.

Have a fun.

Evgeny

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That is most impressive, Evgeny.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Another tiny basic implementation you might want to look at for ideas is Adam Dunkels uBasic at http://www.sics.se/~adam/ubasic/

Michael

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I called this basic interpreter I wrote Tiny Basic...it is not very tiny, however...I used Anagram to write the parser...(parser generator that produces C code). Somebody might have fun with it.

-Jim

-Jim
http://www.noniandjim.com
Analog and Digital Electronics
Music Synthesizers

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I called this basic interpreter I wrote Tiny Basic...it is not very tiny, however...I used Anagram to write the parser...(parser generator that produces C code). Somebody might have fun with it.

http://www.noniandjim.com/Jim/up...

-Jim

P.S...hope this didn't show up twice...forgot the url

-Jim
http://www.noniandjim.com
Analog and Digital Electronics
Music Synthesizers

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

RV3BJ wrote:
The source code of TBC is now published on http://www.cqham.ru/tbcgroup/tbc...

Maybe my eyes are playing tricks on me but I can't find the source code. I see the hex file in the firmware zip, but no source code for the interpreter?

Eric

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

HI,

 

Not yet, but I am working on it.

 

I plan to add some other functions to the source. 

 

My (til now) plans are:  PWM, PORT  (i / o) , COM n (n = 0-3) 

 

Will be (re)written in 2560 Assembler .

 

Kris AKA Snestrup2016

 

 

KSH

Pages