Importing pure text basic program files in to real BBC
-
- 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
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
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...
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
Re: Importing pure text basic program files in to real BBC
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?
Re: Importing pure text basic program files in to real BBC
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:
Now run 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.
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]
Code: Select all
BeebAsm.exe -i mydisk.asm -do mydisk.ssd
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.
Re: Importing pure text basic program files in to real BBC
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.
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.
Reason: Double post deleted and one character changed so it reads better.
-
- 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
Wow! I didn't expect such quick & comprehensive responses - thanks everybody!
Cheers
Martin
Cheers
Martin
==================================================
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
-
- 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
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??!!
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...
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
Re: Importing pure text basic program files in to real BBC
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?
-
- 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
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...
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...
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
Re: Importing pure text basic program files in to real BBC
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?
Re: Importing pure text basic program files in to real BBC
Manual is here.
There is so much wonder in the universe; why should you want to imagine that there is more?
-
- 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
My thanks to lazarusr and everybody else who got me pointed in the right direction!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.
==================================================
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...
Martin 'Harry' Schmalenbach
BBC Master 128, DataCenter, and some real grey hair!
A Brit living in Arizona, because...