Convert BASIC files

discussion of beeb/electron applications, languages, utils and educational s/w
Post Reply
User avatar
jgharston
Posts: 3592
Joined: Thu Sep 24, 2009 11:22 am
Location: Whitby/Sheffield
Contact:

Convert BASIC files

Post by jgharston » Sun Apr 28, 2019 4:37 pm

I can't find the original post, but somebody mentioned writing BASIC code in Windows, trying to load it into a BBC, not realising that Acorn and Russell BASICs use different file formats.

!BasConv is a RISC OS utility that converts between Acorn and Russell format BASIC files, and text files. I extracted the core code here: http://mdfs.net/Software/BBCBasic/Tools/

I had been planning on adding it to the BBC BASIC for Windows editor as a 'SaveAs Acorn' plug-in extension, but hadn't dug out the required information. The SDL editor is itself written in BASIC, so anybody could easily add the functionality.

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.25
(C) Copyright J.G.Harston 1989,2005-2015
>_

User avatar
flaxcottage
Posts: 3673
Joined: Thu Dec 13, 2012 8:46 pm
Location: Derbyshire
Contact:

Re: Convert BASIC files

Post by flaxcottage » Sun Apr 28, 2019 5:18 pm

I use the converter from the MTECSOFT BBC BASIC86 software. It still works today in BBCB4W. Not surprising really. :D
- John

Image

User avatar
jgharston
Posts: 3592
Joined: Thu Sep 24, 2009 11:22 am
Location: Whitby/Sheffield
Contact:

Re: Convert BASIC files

Post by jgharston » Sun Apr 28, 2019 10:09 pm

flaxcottage wrote:
Sun Apr 28, 2019 5:18 pm
I use the converter from the MTECSOFT BBC BASIC86 software. It still works today in BBCB4W. Not surprising really. :D
And will also work in BB4W. But does it deal with BB4W and BASIC V extended tokens? (SYS, CIRCLE, WHILE, etc).

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.25
(C) Copyright J.G.Harston 1989,2005-2015
>_

User avatar
flaxcottage
Posts: 3673
Joined: Thu Dec 13, 2012 8:46 pm
Location: Derbyshire
Contact:

Re: Convert BASIC files

Post by flaxcottage » Mon Apr 29, 2019 7:35 am

jgharston wrote:
Sun Apr 28, 2019 10:09 pm
flaxcottage wrote:
Sun Apr 28, 2019 5:18 pm
I use the converter from the MTECSOFT BBC BASIC86 software. It still works today in BBCB4W. Not surprising really. :D
And will also work in BB4W. But does it deal with BB4W and BASIC V extended tokens? (SYS, CIRCLE, WHILE, etc).
Ah, good question. I don't know. Probably not. Thinking about it I generally go from BBC Basic to BBCB4W. The other way I *EXEC a text file.
- John

Image

Post Reply