On 4/2/2025 12:46 PM, Tony Duell wrote:
On Wed, Apr 2, 2025 at 3:01 AM Bill Gunshannon via
cctalk
<cctalk(a)classiccmp.org> wrote:
So, I am working on another fun project on my trusty old TRS-80's.
I need the ability to do multi-line functions which TRS-80 BASIC
does not support.
Actually there was an offical BASIC (meaning sold by Tandy/Radio
Shack) for one family of TRS-80 machines that did support multi-line
(named) procedures.
Not strictly functons as there was no return value but as you can pass
parameters by reference you can return values that way.
And line numbers were optional.
It's Microware's BASIC-09 under OS-9 on the CoCo of course. Quite the
finest 8-bit BASIC that I have ever used.
Not meaning to be pedantic, but, OS-9 ran on the COCO which
was never called a TRS-80 that I know of. The COCO had the
usual version of Microsoft BASIC found on the TRS-80's and
while Radio Shack sold Basic09 it was not their product, it
was from Microware just like OS-9. I have used it and this
project may eventually drift in that direction after the TRS-80
part is done, as portability is one of my goals. I have at
least one and maybe more, I forget, Basic09 programs on
Rosetta Code.
bill