cpcsutils - |BLOW and |SUCK utilities for Amstrad serial interfaces
cpcsutils is a threesome of programs
written in ANSI C which
provide file transfer utilities compatible with |BLOW and
|SUCK as provided on Amstrad CPC Amstrad serial interfaces.
All these programs should compile with any ANSI C compiler.
Simply type something like "gcc -o blow blow.c".
You may wish to change the default serial device, in "bluck.c".
All these programs will state their argument syntax if passed "-?".
The programs are:
-
blow. Sends a file to a CPC.
Type |SUCK,"<filename>" on the CPC first.
Standard input will be used if no file is specified.
If the file is a text document, "-a" should be specified to
handle CPC newline conventions.
-
suck. Receives a file from a CPC.
Type |BLOW,"<filename>" on the CPC second.
Standard output will be used if no file is specified.
If the file is a text document, "-a" should be specified to
handle CPC newline conventions.
-
head. Puts an AMSDOS header on a raw file.
The load and exec addresses, filetype and user number can
be specified (the defaults are 0 for all but the filetype,
whose default corresponds to a binary file).
The filename to put in the header can also be specified if
it's not the same as the actual filename.
The headered file is sent to standard output.
Here is a possible sequence of commands:
-
suck spong.z -a
-
zmac spong.z
-
head spong.bin -l666 -e1234 > sponged.bin
-
blow sponged.bin
Here is another:
-
zmac main
-
head main.bin -l8000 -fm.bin > m.bin
-
tftpp sugar m.bin
Mark RISON,
mrison@hotmail.com,
1999-06-06
Thanks to Franck ARNAUD for hosting these pages.