avr command line interpreter?

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Happy New Year fellow freaks. Anyone ever heard of a command.com type of command line interpreter for these sd/mmc file systems? Maybe just a menu that says 1)dir 2)type 3)delete 4)copy. Haven't heard of one huh? Guess I should write one huh? The L.A.R. Edwards dos file system and Sylvain's mmc routines are filling up 75% of a mega32. Not much room left for anything else. I hacked and whacked on a tinybasic I found but that takes 75% of the mega32 without the file system. So a bigger avr, a graphics lcd and an external ram and we'd almost have a simple pda. Guess I need to get a bigger dev platform....

Imagecraft compiler user

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

AVRLIB has a basic command line parser with function dispatcher. The DB101 source code by Atmel has a GUI forms library for a user interface. Perhaps a DB101 would be a suitable, larger development platform.

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

Uhm, if you're writing an interpreter, I'd suggest the use of tokens; so you're in fact using a "half-compiled" listing.
In good ol' language... P+R+I+N+T+ is converted to a single 8-bit value, so is all the arguments. Numbers converted into 16 bit integers instead of 5 digit ascii, and so forth.
Speaking about Forth... you could, if you're up to it, make a forth interpreter; every hardware-freak will love that, and the implementation is quite small. =)

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

I couldnt write a forth interpreter, but I bet I could compile/port one if you find one in c somewhere. I ported figforth for the 6800 and 6809 to our microcomputer that used those and floppies back in the forth heyday. But I never did anything harder than 2 2 + . with it.

Imagecraft compiler user

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

There are some Forth systems ready for AVRs:

amforth
http://amforth.sourceforge.net/

"robo-forth" (a robot project)
http://www.robo-forth.de/eng/index.html