Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Converting BX-24 code?

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
Chris P



Joined: 02 Jan 2006
Posts: 2

Posted: 02 January 2006, 9:23 AM    Post subject: Converting BX-24 code? Reply with quote

Excuse the dumb questions, but I am a novice. I built a project about 5 years ago and used a BX-24 along with a 120 x 32 graphic LCDfrom Parallax, and a Vector 2X compass module, plus a temp and light sensor. I sort of finished the project back then and hadn't done much with it since.

I want to start again with the project and was wondering how difficult it will be to rewrite the code so I can unplug the BX-24 and plug in a ZX-24 instead? I don't particularly want to change the hardware at this time.

Here is a pic of the project

Any advice you can give me will be appreciated.
Back to top
mikep



Joined: 24 Sep 2005
Posts: 765
Location: Austin, TX

Posted: 02 January 2006, 16:30 PM    Post subject: Reply with quote

If you have all of the source code, then the conversion process is very easy as ZBasic is backwards compatible with BasicX. The most significant concern is that the clock speed is 2x that of BasicX so you may need to take this into account for library functions such as InputCapture and OutputCapture. Section 4.1 of the reference guide has more information on this. Start on this manual page: http://www.zbasic.net/doc/ZBasicRef/ZBasicRef74.html
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 02 January 2006, 16:34 PM    Post subject: Reply with quote

If you have the BasicX source code you should be able to just re-compile it using the ZBasic compiler. You can, but do not need to, use BasicX compatibility mode. It should compile either way.

There are some cases, mostly related to timing, where you may need to make some adjustments. This is because the ZX processors are running twice as fast as the BX processors.
Back to top
Chris P



Joined: 02 Jan 2006
Posts: 2

Posted: 02 January 2006, 21:12 PM    Post subject: Reply with quote

Thanks. I guess I should have read the manual first, it's all there. Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group