It is currently Mon Oct 20, 2014 4:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: BASIC "compiler"
PostPosted: Mon Aug 03, 2009 2:22 pm 
Offline
 Profile

Joined: Sat Jul 25, 2009 11:14 pm
Posts: 65
I know there are easy ways (eg bascat) to turn the BBC's binary shorthand BASIC into normal ASCII, but is there a way to turn ASCII BASIC into something you can read into the BBC? Or will I have to do all BASIC editing (for things like BASIC loaders, etc) in an emulator?


Top
 
 Post subject: Re: BASIC "compiler"
PostPosted: Mon Aug 03, 2009 4:40 pm 
Offline
User avatar
 Profile

Joined: Wed Jan 09, 2008 7:30 am
Posts: 406
The BBC (or emulator) can take a text file and convert it the BBC BASIC. Presuming your text file is called 'text' on an ssd disk and loaded into an emulator etc.

The first line of the text file should be

AUTO

Then you can just have the rest of your program

on the Beeb when you've put the text file onto ssd

type

*TYPE TEXT

and it'll go in with line numbers etc.

Then just re save as a BSIC program.


Top
 
 Post subject: Re: BASIC "compiler"
PostPosted: Mon Aug 03, 2009 5:08 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 7:02 pm
Posts: 273
*EXEC surely? *TYPE will just dump it to the screen.


Top
 
 Post subject: Re: BASIC "compiler"
PostPosted: Mon Aug 03, 2009 6:06 pm 
Offline
User avatar
 Profile

Joined: Wed Jan 09, 2008 7:30 am
Posts: 406
TomW wrote:
*EXEC surely? *TYPE will just dump it to the screen.


lol :oops: :)


Top
 
 Post subject: Re: BASIC "compiler"
PostPosted: Tue Aug 25, 2009 3:59 pm 
Offline
 Profile

Joined: Sat Aug 22, 2009 7:45 pm
Posts: 34
Using the sample tokenisation code at http://mdfs.net/Info/Comp/BBCBasic/ProgTips/ you can write a program that reads in a text file and outputs a tokenised BASIC file.


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron