Bas2Tap

Description

This program can be used to convert an Oric BASIC program to and from TAPE binary format. Technicaly this means that instead of using the Oric BASIC line based text editor, you can edit an ORIC BASIC program entirely in a comfortable text editor, and then convert it automaticaly to a tape file format that can later be loaded on the emulator -or played on a real Oric-.

Utilisation

To transform a binary file as a texte file:

	%OSDK%\bin\Bas2Tap [switches] source_file destination_file

Switches

Extended BASIC

By default Bas2Tap will expect the source program to contain line numbers, you can enable the extended BASIC features using one of the commands starting by the # symbol. Here is a list of what you can use:

History

Here is the list of all releases with a short description of things that changed:

Version 2.1

- The DATA instruction should not be usable with defines - Correctly filtered out comments at the end of a #define...

Version 2.0

- Added support for labels and auto-numbering (use § as a keyword to expand to the current line number)
- Added support for escape sequences to directly integrate carriage return or attribute changes inside strings without having to use CHR$ (use the character ~ as the ESCape prefix)
- Added a basic support for #defines
- The -optimize option now also filters out as much whitespace as possible

Version 1.3

- Added a -optimize option (used to disable things like comments)

Version 1.2

- Support for pure comments without line numbers (accepts lines starting by ' or ; or //)

Version 1.1

- Added filtering of strings before parsing, to remove superfluous spaces, tabs and other carriage returns before starting the syntax conversion pass

Version 1.0

- Added the handling of token codes over 246 to allow the dump of corrupted files, these will have a CORRUPTED_ERROR_CODE_nnn message at the location of the corrupted data (in this particular case it was the game ENCOUNTER from Severn Software at line 11150 having a "NEXT WITHOUT FOR" message displayed - Fixed the program so it can output to a file instead of stdout

Version 0.2

- Fixed a bug causing loading problems

Version 0.1

- Created Bas2Tap by joining and extending two of Fabrice Frances programs: Bas2Txt and Txt2Bas
- Added error messages when missing line numbers are found
- Added support for the #file preprocessor directive making it possible to link together more than one BASIC source code and get the right error messages