Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Embedded BASIC without extra hardware (RAM, etc) — Parallax Forums

Propeller Embedded BASIC without extra hardware (RAM, etc)

BeanBean Posts: 8,129
edited 2010-06-03 18:19 in Propeller 1
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. [noparse][[/noparse]RUSH - Freewill]

Comments

  • Bill HenningBill Henning Posts: 6,445
    edited 2010-06-03 17:59
    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 E-mail: mikronauts _at_ gmail _dot_ com
    My products: Morpheus / Mem+ / PropCade / FlexMem / VMCOG / Propteus / Proteus / SerPlug
    and 6.250MHz Crystals to run Propellers at 100MHz & 5.0" OEM TFT VGA LCD modules
    Las - Large model assembler Largos - upcoming nano operating system
  • BaggersBaggers Posts: 3,019
    edited 2010-06-03 18:04
    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 GreenMike Green Posts: 23,101
    edited 2010-06-03 18:15
    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.
  • BaggersBaggers Posts: 3,019
    edited 2010-06-03 18:19
    wasn't that Tiny Basic on the Hydra Mike?

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

    ·
Sign In or Register to comment.