Description
Add a header to a raw binary file in order to make it loadable by an Oric using the CLOAD command. This operation is necessary because the result of the compilation process is a raw binary file without any loading information.
Utilisation
To add or remove a header on a tape file:
%OSDK%\bin\Header [switches] source_file destination_file load_adress
Please note that for the load adress, hexadecimal adresses should be prefixed by a $ symbol.
Switches
The -a switch control the autorun flag:
-a0 => program simply load and stop -a1 => program automaticaly executes after loading
The -h switch controls fact that the header is present or removed
-h0 => Remove the header -h1 => Output a file with a header
The -s switch controls the display of file size information. This switch is particularly interesting for people coding size limited programs, like roms, minigames or 256 bytes demos.
-s0 => No size information is displayed -s1 => Display size informations in the output
To enable this feature in your own programs, just modify your OSDK_CONFIG.BAT file, and add the following:
The -b switch sets the value 00 (BASIC) or 80 (Binary) in the tape header This switch is particularly important if you are planning to convert a BASIC tape program to a text file, in which case you need to pass -b0
-s0 => No size information is displayed -s1 => Display size informations in the output
To enable this feature in your own programs, just modify your OSDK_CONFIG.BAT file, and add the following:
SET OSDKHEAD=-S1
Historic
Here is the list of all releases with a short description of things that changed:
Version 1.0
- Added the flag -b to specify if the converted file should expose 00 (BASIC) or 80 (Binary) in the headerVersion 0.2
- The address can now be specified with either $ or 0x as an hexadecimal prefixVersion 0.1
- Added s0/s1 mode to display file size information. Very usefull when you want to know the size of your game in a minigame compo...Non numbered version
- First released version had no version number