System Tools

A collection of more or less useful tools.

Overview:
KeywordTool
Printing PRINT.MAC PRINT80.MAC
Dumping DUMPASC.MAC
PCW PCW.MAC
A number of years I used the UNIX operating system. Some of the utilities was so helpful I decided to program them for CP/M based on assembler.
Unix DFC.MAC HEAD.MAC LF2CRLF.MAC SSED.MAC STRINGS.MAC TAIL.MAC UUxxCODE.MAC WC.MAC
Miscellaneous ANAL.MAC ASCII.MAC COMHEX.MAC CONVERT.MAC DATAxxxx.MAC EXPAND.MAC FILE.MAC FREE.MAC HEX2DT.MAC LABEL80.MAC RESET.MAC TABDEN.MAC TRUNC80.MAC WHICH.MAC WSDEL.MAC
Note: The utilities EXPAND.MAC and TABDEN.MAC are identical in their function. EXPAND.MAC is the first version, programmed less library support and less wildcard in file name. TABDEN.MAC is the newer version, created at the same time as LF2CRLF.MAC and WSDEL.MAC. Therefore these three utilities are similar with regard to command line parsing.

Printing

PRINT.MAC Utility for printing on my old dot matrix printer, EPSON FX-80. It allows some settings for formatting (e.g. line width, left margin).
PRINT80.MAC A tool for converting the output format from the M80 into the RMAC format. The M80 presents an address in its listing in the form <HI> <LO>. This tool swaps it into the form <LO> <HI>, which is the way the bytes will be stored in memory. In addition it adjusts the wide format of the M80 to the narrow format of the RMAC.

Dumping

DUMPASC.MAC Another DUMP, displaying files in character mode only. This allows a fast examination of text in any kind of files.

PCW

PCW.MAC This utility combines a number of AMSTRAD tools, which were supplied with the PCW8xxx machines. Thus it requires less disk space than the single tools.
The general call looks like:
     PCW -tool (option)
'Tool' may be one of up to seven notations, which are defined as follows - options included:
     LANGUAGE option
     PALETTE  option1 option2
     SET24X80 ON or OFF
     SETKEYS  file
     PAPER    (option (option..))
     SETLST   file
     SETSIO   (option (option..))
[If you are interested find the disassembled sources here: LANGUAGE.MAC, PALETTE.MAC, SET24X80.MAC, SETKEYS.MAC, PAPER.MAC, SETLST.MAC, SETSIO.MAC]

Unix

DFC.MAC A differential file compare tool for text files.
HEAD.MAC The program displays the first ten lines of a text file.
LF2CRLF.MAC Performs a conversion of line breaks. CP/M files uses 0x0d (Carriage Return) and 0x0a (Line Feed) to terminate lines, and UNIX uses 0x0a only.
SSED.MAC An editor referring to the output format of the comparison program DFC.COM. It allows changing a text file in an easy way.
STRINGS.MAC Searches for standard ASCII characters ' ' - '~' (020H - 07EH) in any type of file. The kind of offset where a string begins as well as the length of a „valid" string may be selected.
The general call looks like:
   STRINGS [-T FORMAT1 [ FORMAT2 ] | -O] [-N NUMBER | -NUMBER] FILE
-T Write each string preceded by its byte offset from the start of the file. The format may be selected by FORMAT1:
  D The offset will be written as decimal.
  O The offset will be written as octal.
  X The offset will be written as hexadecimal.
FORMAT2 selects the output format:
  A Display with offset 0100H instead of 0000H. This is the CP/M start address for executable files.
  R Displays in format "Record_Number/Record_Offset".
-O Equivalent to the -TD option. FORMAT2 may follow the character
-N NUMBER or -NUMBER Use a number as the minimum string length rather than the default, which is 4.
TAIL.MAC The program displays the last ten lines of a text file.
UUxxCODE.MAC Two programs in one: UUENCODE and UUDECODE.
WC.MAC The program counts the characters, words or lines of a text file.

Miscellaneous

ANAL.MAC Displays the distribution of characters and bytes respectively in a file using a histogram ('****'). The histogram may be disabled for shortened display. Optionally data may also be sorted.
ASCII.MAC Converts a file created by LocoScript or containing IBM characters into a „pure" ASCII file.
COMHEX.MAC The tool converts an executable .COM file into a .HEX file (Intel format).
CONVERT.MAC Converts an assembler source file into upper or lower case characters. The conversion will be performed on instructions not on comments.
DATAxxxx.MAC Generates BASIC DATA instructions from Intel .HEX, Microsoft .REL or CP/M .COM files
EXPAND.MAC Exchange tabs against spaces or vice versa.
FILE.MAC Checks whether a file contains text only or binary data.
FREE.MAC Scans user areas for files and reports the result.
HEX2DT.MAC Converts Intel format to BASIC DATA instructions.
LABEL80.MAC Adapts assembler sources to the Microsoft format; ie: labels closed by ':' and EQU without ':'
RESET.MAC Re-establishes the initial state of the JOYCE after running into a „bad" state.
TABDEN.MAC Replaces the tab characters in one or more files with spaces or replaces groups of spaces with tabs.
TRUNC80.MAC The program reduces the number of characters to exactly 80 per line.
WHICH.MAC Searches on all disc drives for files in the search path as defined by the utility program SETDEF.COM.
WSDEL.MAC Delete some codes in a WordStar file generating a pure ASCII file.