www.retrosoftware.co.uk
http://www.retrosoftware.co.uk/forum/

BASIC "compiler"
http://www.retrosoftware.co.uk/forum/viewtopic.php?f=73&t=319
Page 1 of 1

Author:  MurrayCakaMuzer [ Mon Aug 03, 2009 2:22 pm ]
Post subject:  BASIC "compiler"

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?

Author:  SteveO [ Mon Aug 03, 2009 4:40 pm ]
Post subject:  Re: BASIC "compiler"

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.

Author:  TomW [ Mon Aug 03, 2009 5:08 pm ]
Post subject:  Re: BASIC "compiler"

*EXEC surely? *TYPE will just dump it to the screen.

Author:  SteveO [ Mon Aug 03, 2009 6:06 pm ]
Post subject:  Re: BASIC "compiler"

TomW wrote:
*EXEC surely? *TYPE will just dump it to the screen.


lol :oops: :)

Author:  jgharston [ Tue Aug 25, 2009 3:59 pm ]
Post subject:  Re: BASIC "compiler"

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.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/