File handling with BBCBASIC(86) is more flexible than on the BBC Micro and different in approach to most other versions of BASIC. Because of this, BBCBASIC(86) file handling has been covered in some detail.
BBCBASIC(86) is fully configured for the IBM PC and compatibles and all the statements and functions specified for BBC BASIC are available. It has been designed to be as compatible as possible with Version 4 of the 6502 BBC BASIC resident in the BBC Micro Master series. The language syntax is not always completely identical to that of the 6502 version, but in most cases the 8086 version is more tolerant.
The PC version of BBCBASIC(86) is supplied on a floppy disk in a sub-directory called BBCBASIC. It will run under MS-DOS or Microsoft WindowsTM on any PC compatible computer. The name of the file is BBCBASIC.EXE. A run-only version of BBCBASIC(86) is also provided; it is called BBCRUN.EXE. Using this version, you can combine your BBCBASIC(86) program with a run-only version of the interpreter to create a 'bound unit' which may be run directly from the DOS prompt (or from Microsoft WindowsTM) like any other DOS command without it necessarily being apparent that BBCBASIC(86) is involved. See the Annex entitled Using BBCRUN for full details.
The PC version of BBCBASIC(86) requires about 32 kbytes of code space and a little more than 2 kbytes of data space. When available, BBCBASIC(86) will use a full 64 kbytes for the data segment, giving PAGE (program start address) as &900 and HIMEM as &10000. If less than 64 kbytes are available, HIMEM will be set at a lower value. BBCBASIC(86) releases any memory surplus to its requirements so that other programs can be run from within BBCBASIC(86) by using a 'star' command.
See the Annex entitled BIGBASIC for details of the memory used by that program.
To run BBCBASIC(86), bring up MS-DOS and type
(<Enter> means 'press the Enter key')C:\>CD \BBCBASIC<Enter> C:\bbcbasic>BBCBASIC<Enter>
The system will reply:
Alternatively a filename may be given after BBCBASIC, in which case the system proceeds as if a CHAIN "filename" command had been typed after initialisation. A defult extension of .BBC is used if none is supplied. This feature allows BASIC programs to be executed in batch mode.PC BBC BASIC Version 4.82 #nnnnnn by Richard Russell, Jeffrey Raynor and Brandon Butterworth (C) Copyright R.T.Russell 2000 >
You may run BBC BASIC (86) from Microsoft WindowsTM by creating a shortcut to the executable C:\BBCBASIC\BBCBASIC.EXE or C:\BBCBASIC\BIGBASIC.EXE; see your Windows documentation for details. BBC BASIC (86) will run 'full screen' or in a Window, however changing from a text mode (e.g. MODE 3) to a graphics mode (e.g. MODE 18) may cause a switch to full-screen mode.
To exit BBC BASIC (86) type
or>*BYE<Enter>
>*QUIT<Enter>
CONTENTS |
CONTINUE |