How can I use PropBasic with Sphinx?
Hi,
the idea was to use PropBasic for high speed task embedded into Spin code, that can be edited with Sphinx.
There seems to be some incompatibility?
* I work with·the demoboard.
* Compile sndmeter.pbas with bst, if I download it directly with F10, everything works.
* I compile to spin and save as sndmeter.spn
(* I load sndmeter.spn with the PropellerTool and save it to get a readable file with correct line feeds.
* I load sndmeter.spn with an editor and save as ansi to make sure, there is no unicode.)
* I put sndmeter.spn to the Sphinx System on the demoboard.
* c sndmeter (or cl) on sphinx outputs the following:
4 4
212 212
0 256Phase error
218,12 '(EOL)'
>_
(Dispatcher.pbas gave the same problems.)
-Ah, I have found something:
··· PropBasic generates a label __DATASTART just before the first Variable.
··· Coginit(0, @__Init, @__DATASTART) does not work with sphinx without __DATASTART beeing a real variable.
Could this be solved somehow?
(- .....And it would be great, if BST and the PropellerTool could allow *.spn like *.spin.
- .....And I am hoping for PropBasic as a tool within Sphinx. Would this be thinkable?....)
Thanks alot, Christof
·
the idea was to use PropBasic for high speed task embedded into Spin code, that can be edited with Sphinx.
There seems to be some incompatibility?
* I work with·the demoboard.
* Compile sndmeter.pbas with bst, if I download it directly with F10, everything works.
* I compile to spin and save as sndmeter.spn
(* I load sndmeter.spn with the PropellerTool and save it to get a readable file with correct line feeds.
* I load sndmeter.spn with an editor and save as ansi to make sure, there is no unicode.)
* I put sndmeter.spn to the Sphinx System on the demoboard.
* c sndmeter (or cl) on sphinx outputs the following:
4 4
212 212
0 256Phase error
218,12 '(EOL)'
>_
(Dispatcher.pbas gave the same problems.)
-Ah, I have found something:
··· PropBasic generates a label __DATASTART just before the first Variable.
··· Coginit(0, @__Init, @__DATASTART) does not work with sphinx without __DATASTART beeing a real variable.
Could this be solved somehow?
(- .....And it would be great, if BST and the PropellerTool could allow *.spn like *.spin.
- .....And I am hoping for PropBasic as a tool within Sphinx. Would this be thinkable?....)
Thanks alot, Christof
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
· Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz
I'm not sure what you mean by
Could you please provide a .spn file (make it as small as possible, please). I'll see what I can do.
m
The problem is in the very last line of the program.
Christof
If the program had any HUB variables (or DATA), it would appear after the __DATASTART label.
For example if you had declared:
You would get:
I hope that helps,
Bean
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
I believe a workaround is to make sure every DAT block starts with an ORG:
This is a Sphinx compiler bug. Thanks for finding it. I'll fix it but I can't promise how soon.