BBC BASIC For Windows tape saves?

discuss PC<>Acorn file transfer issues & the use of FDC, XFER, Omniflop/disk etc.
Commie_User
Posts: 916
Joined: Wed Jan 27, 2016 12:50 am

BBC BASIC For Windows tape saves?

Postby Commie_User » Wed Aug 03, 2016 7:06 pm

I bought this lovely package several years ago and never regretted it. I've found all kinds of uses, like using its very 'organny' sound to make music with alongside a real BBC.

But is there any hidden way to output programs as audio, to save typing all over again into my real BBC? Or is there an emulator to paste the listings into to save to disk image at least? I've not seen them.

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

Re: BBC BASIC For Windows tape saves?

Postby flaxcottage » Wed Aug 03, 2016 8:33 pm

Write your program in BBCB4W. Set keywords to capitals and show line numbers. Copy and paste into MS Word then save as a text file with just CR at the end of each line.

Start BeebEm and create a new blank disk in drive 0. Use Edit --> Import files to disc. *EXEC <progname> then SAVE"<new progname>" and your BBCB4W masterpiece is saved on a SSD.

Use OmniFlop to write a real floppy disc for your Beeb or use a Datacentre to import the SSD image. Alternatively DFS explorer/MMBimager can be used to copy the SSD image to an MMC disc volume.

This method also works for RISCOS computers. Just load the text file into !Edit and change the file type to Basic and resave.
- John

Currently running Level 4 Econet with BBC B, BBC B+ 128K, Master 128K, 4Mb A3000, 4Mb A3020, 4Mb A4000, 4Mb A5000 dual FDD; UK101; HP41CX setup; Psion 3a, 3mx and 5mx; Z88; TI-58c, TI-59 and printer, HP-16C programmer's calculator

Commie_User
Posts: 916
Joined: Wed Jan 27, 2016 12:50 am

Re: BBC BASIC For Windows tape saves?

Postby Commie_User » Wed Aug 03, 2016 9:07 pm

I don't even need to do that. Having found Beeb-Em, it's just a straight copy and paste, from the BBC4WIN window to the emulator's.

But there's still a problem of creating CSW tape images. How do I get into that?
Last edited by Commie_User on Wed Aug 03, 2016 9:37 pm, edited 1 time in total.

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

Re: BBC BASIC For Windows tape saves?

Postby jgharston » Wed Aug 03, 2016 9:12 pm

flaxcottage wrote:Write your program in BBCB4W.

You seem to have hiccupped into your keyboard. The abbreviation for BBC BASIC for Windows is BB4W.

(Though I don't like abbreviating words to numbers, on my computers references are to BBfW.)

Code: Select all

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

Commie_User
Posts: 916
Joined: Wed Jan 27, 2016 12:50 am

Re: BBC BASIC For Windows tape saves?

Postby Commie_User » Wed Aug 03, 2016 9:51 pm

I tried importing an existing CSW to the emulator with the idea to record over it. (I can convert them to WAVs for playing out into my B.)

It neither wipes nor appends.

Thanks for the disk image tip. I'll get it into a BBC somehow.

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

Re: BBC BASIC For Windows tape saves?

Postby flaxcottage » Thu Aug 04, 2016 6:51 am

jgharston wrote:
flaxcottage wrote:Write your program in BBCB4W.

You seem to have hiccupped into your keyboard. The abbreviation for BBC BASIC for Windows is BB4W.

(Though I don't like abbreviating words to numbers, on my computers references are to BBfW.)


Sorry. :oops:
- John

Currently running Level 4 Econet with BBC B, BBC B+ 128K, Master 128K, 4Mb A3000, 4Mb A3020, 4Mb A4000, 4Mb A5000 dual FDD; UK101; HP41CX setup; Psion 3a, 3mx and 5mx; Z88; TI-58c, TI-59 and printer, HP-16C programmer's calculator

User avatar
BigEd
Posts: 1486
Joined: Sun Jan 24, 2010 10:24 am
Location: West
Contact:

Re: BBC BASIC For Windows tape saves?

Postby BigEd » Thu Aug 04, 2016 9:05 pm

Here's a terrible idea: use the SOUND statement in BB4W to transmit one of two byte values for the Beeb to receive at 300 baud, and send your data one bit at a time. Should take about 5 minutes for a kilobyte.

Code: Select all

REM sending at 30 bps, use *TAPE 300 at receiver
*TEMPO 1
REM leader
SOUND 1,-15,253,100
REM send a zero (will be received as 7)
SOUND 1,-15,205,2
SOUND 1,-15,253,2
REM send a one (will be received as 63)
SOUND 1,-15,205,1
SOUND 1,-15,253,3

Of course, I haven't tested this!

Ref:
http://beebwiki.mdfs.net/Acorn_cassette_format
http://www.bbcbasic.co.uk/bbcwin/manual ... html#sound

Commie_User
Posts: 916
Joined: Wed Jan 27, 2016 12:50 am

Re: BBC BASIC For Windows tape saves?

Postby Commie_User » Thu Aug 04, 2016 10:14 pm

Alright, I'll bite. Though I'm sure this is a tease...

So what's the listing to port out a program to be received by the Beeb?

User avatar
BigEd
Posts: 1486
Joined: Sun Jan 24, 2010 10:24 am
Location: West
Contact:

Re: BBC BASIC For Windows tape saves?

Postby BigEd » Fri Aug 05, 2016 8:20 am

I think my sketch is possible, but it's only worthwhile if you're content with 1k per 5 minutes transfer time.

In that sense, it's tongue-in-cheek. So the code for actually doing it is certainly an exercise for the reader. But the overview would be
- save or list your program into a text file
- use basic to read your text file byte by byte. For each byte, pick out each bit, and for each bit, send two tones as described.
- done!

Oh, of course, you also need to use basic on the Beeb to read the bytes from the cassette system, convert sets of eight into bytes, and write the bytes to a file. The final step is to *EXEC the file into BASIC.

Commie_User
Posts: 916
Joined: Wed Jan 27, 2016 12:50 am

Re: BBC BASIC For Windows tape saves?

Postby Commie_User » Fri Aug 05, 2016 11:18 am

See, I've noticed that about these BBC people! 'Here's an exercise, for your education!' Can't think where they get it from! :D

RIFFER's about my limit for what I can do, fun as that is. Saving a Windows Word file to cassette, albeit taking hours, is just the kind of idea to appeal to me at least.


Return to “software & utilities for the pc, mac or unix”

Who is online

Users browsing this forum: No registered users and 2 guests