From 8bfa93de6afda0163401c6f01eb5a89c535c262c Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 20 Mar 2016 23:40:58 +0000 Subject: Move output drivers to separate files in preperation for additional drivers. --- doc/casm.html | 63 ++++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 20 deletions(-) (limited to 'doc') diff --git a/doc/casm.html b/doc/casm.html index d3a545b..35d6683 100644 --- a/doc/casm.html +++ b/doc/casm.html @@ -751,12 +751,8 @@ holding the character code of the character.

Output Format

-By default the assembled code is written to a file called `output` as raw -binary covering the block of memory that the assembly touched. If memory -banks have been used then *output* is appended with the memory bank number, so -that a separate output file is generated for each bank. - -The generated output can be controlled with the following options. +By default the assembled code is written to a file called output as raw +binary. The generated output can be controlled with the following options. @@ -767,7 +763,18 @@ The generated output can be controlled with the following options. option output-file, file + + + + +
-Send the output to file. +Send the output to file. Defaults to output. +
+option output-bank, printf formatted filename + +Send the output if multiple banks to use to printf formatted filename. +It defaults to output.%u and accepts just one argument in the +formatting string of an unsigned integer. +If more or a different format specifier is used the behaviour of the assembler +will be undefined. How this is used depends on the output driver.
@@ -780,36 +787,52 @@ supported output formats: + +
-raw +raw -A simply raw binary image of the memory. +A raw binary image.
-spectrum +spectrum +A Spectrum emulator TAP file. +
+ +
+ +The output formats are described in detail in the following sections. + + +

RAW Output Format

+ +In this mode the file is created covering the block of memory that the assembly +touched. If memory banks have been used then the output-bank setting is +used to generate the output filename. + + +

Spectrum TAP Output Format

-Generates a Spectrum TAP file for an emulator. +Generates a Spectrum TAP file for an emulator. A TAP file is a simple binary +file holding the bytes that the real Spectrum would have written to a tape.

-The TAP file will be given the same name as the output filename, and its load -address will be set to the start of the created memory. If memory banks have -been used then each bank is output to the TAP file as separate code files. +

The TAP file will be given the same name as the output filename, and the +internal code block will also be given the same name, unless if memory banks +have been used then each code file in the TAP file will use the +output-bank setting is used to generate the filename for each block.

Remember that TAP files can be concatenated, so the output could be appended to another TAP file containing a BASIC loader for example.

- - - - - -

Listing

-- cgit v1.2.3