Shop OBEX P1 Docs P2 Docs Learn Events
How can I use PropBasic with Sphinx? — Parallax Forums

How can I use PropBasic with Sphinx?

Christof Eb.Christof Eb. Posts: 1,377
edited 2010-04-14 15:09 in Propeller 1
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


·

Comments

Sign In or Register to comment.