How do I convert my BS2 programs to SX/B
I just got my SX kit and would like to start replacing my $50 BS2's with SX chips. How do I go about converting my old BS2 programs to the SX/B? This may be a stupid question, but how similar is the BS2 language and the SX/B language?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Post Edited (meredth78) : 4/8/2006 12:51:51 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
there are 2 things to try. First right click the file and then choose Properties, if available, uncheck the "unblock" if it's there. If this does not fix it, try (from a command prompt) regsvr32 itss
http://support.microsoft.com/kb/902225 for more info
http://www.sxlist.com/techref/parallax/sxb/sxb/___index.html
At least until someone tells me to take it down.
There: Now you can see the examples.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
---
James Newton, Host of SXList.com
james at sxlist,com 1-619-652-0593 fax:1-208-279-8767
SX FAQ / Code / Tutorials / Documentation:
http://www.sxlist.com Pick faster!
I have converted some of my BS2 programs to SX/B and·some of the obsticles I have encounted·are
some of the math operators are different
it is harder to work with 16 bit numbers and·remainders in division
but I am new at this too.
Mike W
now that i have the help files working again, i ran into a problem.
how do you write something like.... IF· rb.0 = 1· AND· rb.1 = 1· THEN...?
it seems that BS2 and SX/B differ here, with SX/B only allowing ByteVar = Value1 AND Value2
Post Edited (meredth78) : 4/14/2006 4:33:44 AM GMT
I've tried compound conditionals and also never got them to work, so I followed the examples in the SX/B help:
There may be 'better' ways to do these things, there may be more elegant/less code solutions too, but I think that unless your
project is really time-critical, sometimes it's best to get it to work first, in an easy to read/understand format and then go from there
once you have a better grasp of the language/syntax/architecture (ha, look at me, I'm still a super newbie on these things)
I can only think of all of the obfuscated C++ code we used to try to write, it was fast, it was small, but impossible to pick apart to
see what the heck it was doing.
paul...
Post Edited (Dunnsept) : 4/14/2006 12:46:22 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
if RB.0 then
compile the same as
if RB.0 = 1 then
?
NO it doesn't. You need to specify the complete comparison, that is "IF RB.0 = 1 THEN".
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap 4-digit LED display with driver IC·www.hc4led.com
COMING SOON "SD DATA LOGGER" www.sddatalogger.com
"I reject your reality, and substitute my own." Mythbusters
·