Embedded Basic Programming Guide
Humanoido
Posts: 5,770
unofficial programming guide to Bean's
Embedded BASIC language for the Propeller Chip
I have attached my unofficial programming guide to Bean's Embedded BASIC language for the Propeller Chip, to show some of the new things happening with this language. It's a work in progress and only a personal reference. It may help as an introduction to this language. Previously there was only one text document, the original, which did not include the added commands for the updates or all the programming and timing examples in various threads. This now combines all the found information into one document. As the new document is a collection of various information from the Parallax Forum posts, most are Bean's comments and instructions and may apply to various versions of Embedded BASIC. The intention is this will be a helpful resource, promote this remarkable language, and serve as a getting started point.
Embedded BASIC language for the Propeller Chip
I have attached my unofficial programming guide to Bean's Embedded BASIC language for the Propeller Chip, to show some of the new things happening with this language. It's a work in progress and only a personal reference. It may help as an introduction to this language. Previously there was only one text document, the original, which did not include the added commands for the updates or all the programming and timing examples in various threads. This now combines all the found information into one document. As the new document is a collection of various information from the Parallax Forum posts, most are Bean's comments and instructions and may apply to various versions of Embedded BASIC. The intention is this will be a helpful resource, promote this remarkable language, and serve as a getting started point.
Comments
Thanks for creating this. I really hope to continue to improve it.
I'm good at programming, but not so much at writing documentation.
Bean
'
Great work!!!
'
We needed the DOCs for Embedded PropBasic.
'
Parallax advertised the S2 in Nut&Volts and listed PropBasic as a third party to program it.
'
Really Cool
I'm already bursting with ideas for cool things you could do. Save to an sd card? If you can do that, then you can upload and download programs with Kyedos, so you could do some of the development on a PC if you wanted to.
Does INKEY assume a keyboard?
Are there any startup instructions one needs to tell the program "VGA vs TV" and Keyboard present, etc?
I love this little BASIC. It's FAST, and it's FUN! I've been goofing around with some simple little programs, and I've been very impressed with speed and overall quality. Didn't know about the autostart deal. Nice touch!
@humanodo: Thanks for compiling the info. Many will appreciate that.
I'm just wondering how much slower that would be ?
I think if I keep the variables in RAM, it might not be too slow since it will pretty much be sequencial access.
It really sucks that the demo board doesn't have a 64KB eeprom, but there is nothing that can be done now...
Any thoughts ?
That can be good idea ---- BUT how You have stored Line numbers in Program lines.
As it is 2 methods for that.....
Sequential --- Only line number as start of NEW line
SLOW - as every time interpreter need goto not Sequential line need much time to find NEW one.
Next type --- I don't know how You will name it -- BUT
IT stores -- LINE number and Bytes total in LINE inclusive Line number and THAT Byte index --- And for find NEXT RUN line it not need scan entire Text lines Only ADD Byte index to find next line number IF match RUN if NOT -- ADD its Byte index to find next line --- AND so on.
If You have more questions on it ASK --- I will answer all of them -- As I used that in one of My old Control system ---- That type Of Scanning give good SPEED in RUNTIME and some extra possibility in EDIT mode --- AS Lines NOT need be stored Sequential in Memory Foe RUN mode else EDIT mode
OBC