Importing pure text basic program files in to real BBC

bbc/electron apps, languages, utils, educational progs, demos + more
Post Reply
mschmalenbach
Posts: 29
Joined: Sun Jun 26, 2016 4:01 pm
Location: Maricopa, AZ, USA
Contact:

Importing pure text basic program files in to real BBC

Post by mschmalenbach »

Hi Folks

Firstly, Merry Christmas & a Happy New Year to you all!

Apologies if this has been tackled elsewhere but a reasonably extensive search didn't show up any posts on this...

I have some basic programs that currently reside as simple text files on another non-Beeb matchine.

I'd like to transfer these to my Bebe (a Master 128) and import them in to BASIC or the EDITOR on the Beeb, for final editing & execution.

How might I do this? I have a RetroClinic DataCenter so can move the files to the Beeb via the DataCenter's USB drive facilities.

Cheers

Martin
==================================================
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
User avatar
JudgeBeeb
Posts: 1116
Joined: Thu Sep 10, 2015 9:56 pm
Contact:

Re: Importing pure text basic program files in to real BBC

Post by JudgeBeeb »

Use BeebEm. You can copy the text files to the clipboard on the PC and paste them into BeebEm. Then create a new SSD file in BeebEM, SAVE the BASIC file to that SSD then copy it to a USB stick and *IMPORT it with the DataCentre.
There is so much wonder in the universe; why should you want to imagine that there is more?
User avatar
simonm
Posts: 316
Joined: Mon May 09, 2016 3:40 pm
Contact:

Re: Importing pure text basic program files in to real BBC

Post by simonm »

You can use BeebAsm to create a SSD containing your BASIC programs, as it has a BBC BASIC tokeniser function.

Create a text file called mydisk.asm and add something like the following commands:

Code: Select all

PUTBASIC "mytextfile.txt", "MYPROG"
...[repeat for any other basic programs you have in text file format]
Now run

Code: Select all

BeebAsm.exe -i mydisk.asm -do mydisk.ssd
to create an SSD file you can transfer to your DataCentre.
BeebAsm may grumble that there was no source code to assemble but that's ok.

This is off the top of my head, so treat just as a general idea. Also, you may need to manually add line numbers to your text files (eg. 10,20,30 etc.) using this approach.
User avatar
tricky
Posts: 4995
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: Importing pure text basic program files in to real BBC

Post by tricky »

I think if you can get them on a beeb, you can *EXEC them and have them type themselves in.
I'm not very good on beeb that isn't assembler, personally I would use beebem paste.
Last edited by 1024MAK on Sun Dec 25, 2016 10:51 pm, edited 1 time in total.
Reason: Double post deleted and one character changed so it reads better.
mschmalenbach
Posts: 29
Joined: Sun Jun 26, 2016 4:01 pm
Location: Maricopa, AZ, USA
Contact:

Re: Importing pure text basic program files in to real BBC

Post by mschmalenbach »

Wow! I didn't expect such quick & comprehensive responses - thanks everybody!

Cheers

Martin
==================================================
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
mschmalenbach
Posts: 29
Joined: Sun Jun 26, 2016 4:01 pm
Location: Maricopa, AZ, USA
Contact:

Re: Importing pure text basic program files in to real BBC

Post by mschmalenbach »

Sadly folks, BeebASM won't run on my machine - an HP laptop, i7 quad core, 8Gb RAM, 1TB HD, Windows 10 Pro (64 bit)...

I can't be the first person to run in to this problem... can I??!!
==================================================
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
User avatar
JudgeBeeb
Posts: 1116
Joined: Thu Sep 10, 2015 9:56 pm
Contact:

Re: Importing pure text basic program files in to real BBC

Post by JudgeBeeb »

Are you running a release version of Windows 10 or one of the 'Insider' builds? That latter has done weird things to the CMD prompt upon which BeebASM depends.
There is so much wonder in the universe; why should you want to imagine that there is more?
mschmalenbach
Posts: 29
Joined: Sun Jun 26, 2016 4:01 pm
Location: Maricopa, AZ, USA
Contact:

Re: Importing pure text basic program files in to real BBC

Post by mschmalenbach »

Nope - standard release build of Win 10 Pro 64...

I never read any instructions - do I need to run it from a DOS prompt? I couldn't find a user guide...
==================================================
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
User avatar
JudgeBeeb
Posts: 1116
Joined: Thu Sep 10, 2015 9:56 pm
Contact:

Re: Importing pure text basic program files in to real BBC

Post by JudgeBeeb »

Yes. It is a command line utility. The best thing is to create a batch file that includes any necessary directory commands and all the switches you want. The attached file is heavily commented, so you should be able to see what everything does.
Attachments
batch_example.zip
(1006 Bytes) Downloaded 60 times
There is so much wonder in the universe; why should you want to imagine that there is more?
User avatar
JudgeBeeb
Posts: 1116
Joined: Thu Sep 10, 2015 9:56 pm
Contact:

Re: Importing pure text basic program files in to real BBC

Post by JudgeBeeb »

Manual is here.
There is so much wonder in the universe; why should you want to imagine that there is more?
mschmalenbach
Posts: 29
Joined: Sun Jun 26, 2016 4:01 pm
Location: Maricopa, AZ, USA
Contact:

Re: Importing pure text basic program files in to real BBC

Post by mschmalenbach »

lazarusr wrote:Yes. It is a command line utility. The best thing is to create a batch file that includes any necessary directory commands and all the switches you want. The attached file is heavily commented, so you should be able to see what everything does.
My thanks to lazarusr and everybody else who got me pointed in the right direction!
==================================================
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
Post Reply

Return to “8-bit acorn software: other”