PDA

View Full Version : Propeller Embedded BASIC without extra hardware (RAM, etc)



Bean
06-04-2010, 01:52 AM
Is femtoBASIC the only embedded basic for the propeller that works without any RAM expansion (can run on the Demo Board) ?

Has anyone thought about making a PASM embedded BASIC development program ?

I was thinking about it, if it was written in PASM and split over all the cogs, you could load up the cogs and then reuse the hub ram for the BASIC code, video, vars, etc.

The total PASM code would·be < 16K, and the other 16K could be used to SAVE the basic code to the standard 32K EEPROM on the demo board.

Something like:

Cog0 = Editor
Cog1 = Tokenizer
Cog2 = Executer
Cog3 = Keyboard
Cog4 = Video Driver (VGA 320x240x2 with 8x8 palette blocks = 12K)
Cog5 = Math routines (mult, div, etc)
Cog6 = I/O functions (serial, I2C, 1-wire, etc)
Cog7 = File I/O (EEPROM)

Hub ram:
· Video = 12K
· Program·and Variables = 16K
· Stack/System/Font = 4K

Thoughts anyone ?

Bean
·

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134

March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [RUSH - Freewill]

Bill Henning
06-04-2010, 01:59 AM
Sounds like a great idea. If the old 8-bit micro's could have a nice Basic in 8K of ROM, no reason the prop could not do it!


Bean said...
Is femtoBASIC the only embedded basic for the propeller that works without any RAM expansion (can run on the Demo Board) ?


Has anyone thought about making a PASM embedded BASIC development program ?



I was thinking about it, if it was written in PASM and split over all the cogs, you could load up the cogs and then reuse the hub ram for the BASIC code, video, vars, etc.



The total PASM code would be < 16K, and the other 16K could be used to SAVE the basic code to the standard 32K EEPROM on the demo board.



Something like:



Cog0 = Editor

Cog1 = Tokenizer

Cog2 = Executer

Cog3 = Keyboard

Cog4 = Video Driver (VGA 320x240x2 with 8x8 palette blocks = 12K)

Cog5 = Math routines (mult, div, etc)

Cog6 = I/O functions (serial, I2C, 1-wire, etc)

Cog7 = File I/O (EEPROM)



Hub ram:

Video = 12K

Program and Variables = 16K

Stack/System/Font = 4K



Thoughts anyone ?



Bean

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com (http://www.mikronauts.com) E-mail: mikronauts _at_ gmail _dot_ com
My products: Morpheus (http://mikronauts.com/products/morpheus/) / Mem+ (http://mikronauts.com/products/morpheus/memplus/) / PropCade (http://forums.parallax.com/showthread.php?p=894725) / FlexMem (http://forums.parallax.com/showthread.php?p=894853) / VMCOG (http://forums.parallax.com/showthread.php?p=878382) / Propteus (http://mikronauts.com/products/propteus/) / Proteus (http://mikronauts.com/products/proteus/) / SerPlug (http://mikronauts.com/products/serplug/)
and 6.250MHz Crystals to run Propellers at 100MHz (http://mikronauts.com/products/mikronauts-625mhz-crystal/) & 5.0" OEM TFT VGA LCD modules (http://forums.parallax.com/showthread.php?p=852195)
Las (http://mikronauts.com/software-products/largos/) - Large model assembler Largos (http://mikronauts.com/software-products/largos/) - upcoming nano operating system

Baggers
06-04-2010, 02:04 AM
great idea Bean, it would be nice to have one, what about one written with Sphinx? you could have the basic editor, and save it to a file, then load it from the executor app?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

·

Mike Green
06-04-2010, 02:15 AM
I had started a native Basic compiler I called Ouroboros that was to produce LMM code. It does require some external memory which could consist of just an SD card, but originally consisted of an SD card for the source program and 128K of EEPROM for temporary files. It was done as a proof of concept so it would allocate variables in hub and cog memory and generate code for expressions and assignment, IF, and GOTO statements. It needed to be split into separate phases (tokenizer, parser, and code generator) and that's where I stopped. I posted it once upon a time.

There was also a Basic interpreter that was written for the Hydra and part of the original Hydra software CD.

Baggers
06-04-2010, 02:19 AM
wasn't that Tiny Basic on the Hydra Mike?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

·