Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   PBASIC Conversion (http://www.chiefdelphi.com/forums/showthread.php?t=15795)

Noah 04-01-2003 20:29

PBASIC Conversion
 
1 Attachment(s)
Since the default code is not valid, I went ahead and converted it to "old style" PBASIC 2.0c. I don't have anything to test it on tho, so someone please check me here.

cybermind 04-01-2003 20:33

I tried to tokenize it on the BASIC Stamp Editor 1.33 and it works just fine after the following changes:

Delete the '{$PBASIC 2.5} line
Put the SERIN on one line
Put the SEROUT on one line

After those changes it Tokenized successfully.

Noah 04-01-2003 20:39

Oh, ok... in that case the default code is much nicer than mine. Glad to hear that.

rbayer 04-01-2003 21:08

Quote:

Originally posted by cybermind
I tried to tokenize it on the BASIC Stamp Editor 1.33 and it works just fine after the following changes:

Delete the '{$PBASIC 2.5} line
Put the SERIN on one line
Put the SEROUT on one line

After those changes it Tokenized successfully.

Ummm... how? It still complains about the missing labels after the "then" in all the if statements and it has no idea that the word select is supposed to be a command.

Noah: Nice work. You probably want to nuke that darn $PBASIC 2.5 directive, though. It just isn't valid as far as I can tell. Also, if you want to test, go ahead and drop it in RoboEmu. Available at my website: http://www.robbayer.com/software.html

cybermind 04-01-2003 21:10

NOOOO!
I didn't get the Default to work....I got Noah's to work after the changes...I probably should have been more specific. Hey, I'm a rookie, so that's ok :)

Greg Ross 05-01-2003 01:28

It looks to me like there is a new version of the BASIC Stamp Editor or tokenizer which recognizes the $PBASIC directive, and makes the if...then...else...endif and select...case...endselect syntax valid.... I just haven't been able to find it yet.

Goya 05-01-2003 10:30

In fact, parallax.com offers a new commercial software version for the basic stamp editor. Version 1.5!

Could it be that this editor supports the PBASIC stamp?
Could it be that the PBASIC stamp was meant to read 1.5 and not 2.5?

BTW - the new editor is much more "spruced" up. I didn't notice any new commands, since the default code did not work, with the same errors as the other editors.

FYI - Also, RoboEMU complains about the serout command.

Chris_C 05-01-2003 12:17

I heard by word of mouth on Friday from two Innovation First guys that a new release of the parrallax software that fully supports all the new commands can be expected within a day or two. I don't know if that is still true, since they seemed to think the release would be happening yesterday or the day before. They didn't mention any version numbers, so I can't help you there.

iscrc2 05-01-2003 12:48

This post on the parallax yahoo forums http://groups.yahoo.com/group/basicstamps/message/27596
makes it sound like parallax will be a few weeks (mid/late January) until they release the new version.

rbayer 05-01-2003 20:28

Quote:

Originally posted by Goya
In fact, parallax.com offers a new commercial software version for the basic stamp editor. Version 1.5!

Could it be that this editor supports the PBASIC stamp?
Could it be that the PBASIC stamp was meant to read 1.5 and not 2.5?

BTW - the new editor is much more "spruced" up. I didn't notice any new commands, since the default code did not work, with the same errors as the other editors.

FYI - Also, RoboEMU complains about the serout command.

Are you referring to CodeDesigner BSE? I can tell you that it does NOT support PBASIC 2.5 as I have the demo version and have tried to get the new syntax to compile. No luck.

As for RoboEmu, it will complain because the Serout isn't all on one line. It doesn't complain about the rest of it because it is currently setup to ignore commands it doesn't recognize (ie SELECT, etc). This meant I didn't have to add support for commands like HIGH and LOW.

Anyway, I'm in the process of updating RoboEmu as we speak and it should support all the new constructs, but I'm going to need help testing it. Look for 1.09 within 24 hours of the official release from Parallax.

Noah 07-01-2003 23:33

For clarification, innovationfirst's site now tells us that a PBASIC 2.5 editor is expected to be available on the 10th. They also have posted 2.0 valid PBASIC default programs.


All times are GMT -5. The time now is 04:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi