home *** CD-ROM | disk | FTP | other *** search
- CCF.COM Version 1.0
- ^^^^^^^
-
- CCF.COM is a general purpose utility which may be used to copy files
- from directory to directory, combine files, expand files up to a given size
- using a fill character and reverse files (last byte in the source file becomes
- the first byte in the new file). It requires a Z80 or compatible CPU and CP/M
- version 2.2 or higher or compatible operating systems. It will make full use
- of the facilities provided on Z-systems such as named directories and terminal
- capabilities. If you are interested then read on...
-
-
- RATIONALE
- +++++++++
-
- I build my own hardware as well as write software for it. From the
- hardware point of view it often makes sense to invert the address lines output
- by a CPU. This creates no problems when writing/reading RAM but means that
- pre-programmed memory (such as PROMs) must have the binary image of their
- software reversed before they can be programmed. So CCF.COM had to be written
- and at first it was intended simply as a file reversal utility but of course
- it grew. A full description of its capabilities may be obtained by running it
- typing "CCF //" at the system prompt.
-
-
- INSTALLATION
- ++++++++++++
-
- If you are running a Z-system then install CCF in the usual way
- Z3INS or Z-RIP. If you have ZCPR33 or higher this is not strictly
- necessary but is still good practice.
- If you just run CP/M then no need to worry. You will lose the
- flashy displays and the more advanced security and directory features
- of a Z-system but the program will still be fully functional.
-
-
- RUNNING
- +++++++
-
- CCF will accept its command line either from the command tail input
- at the system prompt or, if no command tail is provided, it will request a
- command. This latter form is slightly more flexible in that it allows lower
- case letters to be input in the option list. All filenames will be capitalized.
-
-
- HELP
- ++++
-
- Type "CCF //" at the system command prompt or " //" if CCF is running
- and requesting a command.
-
-
- GOTCHAS
- +++++++
-
- None as far as I know. The program will manipulate files sizes up to
- the structural limits. The program creates the destination file using
- the filename you specify but with the temporary type ".$$$" and only
- when the file has been successfully created will it be renamed with
- the given filetype. This helps protect your files against inadvertant
- loss but can, very ocassionally, result in a disk full error.
- For example take the command "CCF TEST.DAT=TEST.DAT /R". This tells
- CCF to take a file TEST.DAT and reverse it. But suppose TEST.DAT is
- 64k long and there is only 62k of disk space left. CCF will try to make
- a file TEST.$$$ holding the reverse image of TEST.DAT but obviously it
- will fail. The error is benign in that your source file will be left
- intact (and TEST.$$$ will be deleted).
-
-
- EXAMPLES
- ++++++++
-
- None of the examples below specify directories with the file-names. In
- fact anywhere a filename is written a directory (e.g. "A13:" or "12B:") may
- be prefixed. Additionally for users of Z-systems named directories are
- supported (including enforced password checking for all directories except the
- default directory for 'Non Wheel' users).
-
-
- 1/ TEST.DAT=TEST.DAT
- Trivial in that TEST.DAT is re-written to disk.
-
- 2/ TEST.DAT=TEST.DAT,TEST.DAT
- A new file TEST.DAT is created consisting of the file TEST.DAT
- appended to itself.
-
- 3/ NEWNAME.BIN=TEST.DAT,TEST.DAT
- The difference from case 2/ should be obvious.
-
- 4/ TEST.DAT=TEST.DAT /R
- The file TEST.DAT is reversed. The /R option may be used freely
- with any of these example commands except where the /S or /SC
- option is exercised. They are incompatible.
-
- 5/ TEST.DAT=TEST.DAT /F32
- The file TEST.DAT is expanded in size to 32k (/F32 and /F32K are
- equivalent) using the default fill character 0FFH. If a source
- file is specified as well as a destination the fill size should
- not be less than the (sum of) the source file size(s).
-
- 6/ TEST.DAT=TEST.DAT /F32k /R
- As with 5/ above but the destination file is written in reverse.
- The /F & /R options may appear in any order but note that each
- MUST be preceded by a slash "/".
-
- 6/ NEWNAME.ROM=SOURCE1.BIN,SOURCE2.BIN,SOURCE3.BIN /R /F64,0
- The point to notice here is the expanded form of the /F option.
- The fill character may be specified in decimal, hexadecimal or
- ASCII (e.g. /F64,43 & /F64,02BH & /F64,'+' & /F64,"+" all mean
- the same). Note also that the use of the /R option with a
- multiple source file list results in the first byte of SOURCE1.BIN
- being the last byte in NEWNAME.ROM (the first byte would normally
- be the fill character).
-
- 7/ BIGTEXT.TXT=TEXT1.TXT,TEXT2.TXT,TEXT3.TXT /S
- The /S option will strip any EOF characters (01AH) from text files
- that may be combined. The default is to replace them with a space
- " " but if a printable fill character is specified with the /F
- option this will be used instead.
-
- 8/ YOURBOOK.TXT=CHAPT1.TXT,CHAPT2.TXT,... /SC
- Similar to 7/ but where file-sizes permit a carriage return and
- line-feed is inserted between source-files. This will not work if
- any of the source files is less than two bytes short of filling an
- integer number of records. There are better tools for this sort of
- work. I added the option simply because it was easy to do this way.
-
-
- The command syntax is very easy going. You can specify any reasonable
- number of source files and most combinations of options. In general if what
- you want to do is sensible then CCF will let you do it. If in doubt then
- experiment first.
-
-
- PATCHES
- +++++++
-
- 1/ If you like bells ringing all over the place then use
- your favourite patching utility to change the byte at location
- 0000DH (0010DH in RAM) from 0FFH to 000H.
-
-
- WINDDOWN
- ++++++++
-
- Hope the program is of use. I am placing it in the public domain and so
- accept no responsibility for it or its effects on your system. That said it
- runs well for me. You can write to me at
-
- 5 Baines Close,
- Bourton-on-the-Water,
- Glos. GL54 2PU.
- England.
-
- and I will endeavour to answer (polite) letters!!
-
- Regards,
- Bob Andersson.
- but means tha pre-programmed memory (such as PROMs) mus