home *** CD-ROM | disk | FTP | other *** search
- This programs are Public Domain, and because of that I will not be liable
- for any damages resulting from use of this software.
-
- The programs is compiled with TURBO-C++ 1.0.
-
- SPCONV 1.02 - 14 DEC 1992 - Convert snapshot files (.SNA, .SP, .Z80, .PRG
- and RAW)
-
- Usage:
-
- SPCONV <infile> <outfile>
-
- Spconv is a utility to convert between various snapshot formats. Snapshot
- files are created by various spectrum emulators. SPCONV converts between .SNA,
- .SP, .Z80 and .PRG files. The conversion to/from .SP files may not work always
- however, it is not clear to me how IFF, IFF2 and the interrupt mode are stored
- in the .SP file. Since version 1.02 I have made some improvements to this type
- of conversion however, it sould work now, but I have not enough .SP samples to
- fully test it. Note that crashing of a converted image may also be caused by
- bugs in the SPECTRUM emulator. Converion to .SP will work if the image is
- converted from a RAW image (see later).
-
- Wildcards for the infile or outfile parameters are not accepted, an error
- message is displayed if either * or ? is found in one or both the filenames.
- The outfile parameter is either a full filename or only the suffix .SNA, .SP,
- .Z80 or .PRG. The prefix is taken from the first parameter in that case.
- This enables usage like:
-
- "for %%i in (*.z80) do spconv %%i .z80"
-
- Normaly the <infile> and <outfile> are not of the same type. If they are you
- will get a error message, unless both files are of the .SP type. In that case
- the converter will convert an old style .SP file to a new style .SP file or
- from a new style .SP file to an old style .SP file, depending on the input.
- The old style .SP file is used by VGASPEC, with seems to be an unauthorised
- version of the spanish "SPECTRUM" program. The "SPECTRUM" program will use
- the new style .SP files.
-
- Conversion between .SNA and .Z80 and from .Z80 to .SNA should be no problem,
- both formats are sufficiently described in the documentation of JPP (the
- norwegian emulator) and Z80 (the dutch emulator).
-
- Conversion to/from .PRG files should work fine also. I don't have a
- description of that format, but I think I figured it all out by looking at
- some samples. I only don't know where the border colour is stored. The
- specem emulator (an Irish emulator) doesn't show the border, so I can't find
- out by trail and error.
-
- Spconv can also be used to convert a raw spectrum image to a snapshot file.
- The image has to be captured with SLOAD. At the Spectrum side the the command
-
- SAVE *"b"CODE 16384,49152
-
- HAS to be used. Convert will convert the file is such way that it will continue
- in the basic interpreter. so
-
- SAVE *"b"CODE 16384,49152:PRINT "Hello, World!"
-
- will after conversion to a snapshot file and loading it in the emulator, begin
- with printing "Hello, World!".
-
- Example: Converting a .SNA JPP file to the .Z80 Dutch emulator:
-
- spconv game.sna game.z80
- (or spconv game.sna .z80)
-
- Thanks to: Arnt Gulbrandsen (author of JPP)
- Ramco v.d. Woestijne (supplied new .SP format)
- G.A. Lunter (author of Z80)
- Pedro Gimeno (author of SPECTRUM)
- Kevin J Phair (author of SPECEM)
-
- for suppling information and for creating these spectrum emulators.
-
- H. de Groot - groot@idca.tds.philips.nl
-