[Coco] C VS Basic Coco
Bill Pierce
ooogalapasooo at aol.com
Thu Feb 15 09:58:51 EST 2018
I did a lot of "attempts" to convert DECB code into Basic09 back in the 80s/90s and I found there is a LOT of syntax changes that have to be made, especially when it comes to graphics as Basic09 graphics require calling an external subroutine where DECB graphics are built in commands.
That being said, yes, DECB could be converted to Basic09 with the proper syntax conversion. Just be prepared for a lot of work.
Bill Pierce
"Charlie stole the handle, and the train it won't stop going, no way to slow down!" - Ian Anderson - Jethro Tull
My Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Co-Contributor, Co-Editor for CocoPedia
http://www.cocopedia.com/wiki/index.php/Main_Page
E-Mail: ooogalapasooo at aol.com
-----Original Message-----
From: Wayne Campbell <asa.rand at gmail.com>
To: CoCoList <coco at maltedmedia.com>
Sent: Thu, Feb 15, 2018 9:37 am
Subject: Re: [Coco] C VS Basic Coco
Yes you can write any program in a text editor and as long as the syntax iscorrect it will load and run in Basic09. Even a DECB program will runprovided the syntax has been modified to be accurate for Basic09. There arenot many differences so syntax Corrections should be few. You would have toadd the appropriate Dimension statements in order to ensure that yourvariables are of the type necessary. Without Dimension statements allvariables default too real type and string. Strings are only defined by usewith a dollar sign character as the last character of the variable name.All other variables without Dimension statements default to real type.Also, each program is called a procedure and Basic09, and is required tobegin with the procedure statement:PROCEDURE myprogramnameWayneOn Feb 15, 2018 5:19 AM, "Francis Swygert" <farna at att.net> wrote:> Date: Wed, 14 Feb 2018 08:28:00 -0800> From: Wayne Campbell <asa.rand at gmail.com>>> Basic09 brings a lot to the table. First, what numbers are allowed, but not> necessarily required. The requirement of line numbers applies only to the> use of GOTO or GOSUB statements. In this regard why numbers are more like> labels then they are actual numbers. That said you cannot use text and are> restricted to using numbers, so in that sense they are actual numbers. When> it comes to writing the code, any text editor will do...> ==============================================================> So if I'm reading this right, I could use a text editor and write code> with line numbers and it will run in BASIC09... assuming syntax is correct?> A simple DECB program (with appropriate syntax "corrections", if necessary)> should run?> Frank Swygert> Fix-It-Frank Handyman Service> 803-604-6548>> --> Coco mailing list> Coco at maltedmedia.com> https://pairlist5.pair.net/mailman/listinfo/coco>-- Coco mailing listCoco at maltedmedia.comhttps://pairlist5.pair.net/mailman/listinfo/coco
More information about the Coco
mailing list