Standalone Logtool for MPE/iX

RECORD`LENGTH 220
N`FIELDS
This command specifies the number of fields (pieces of data) in the current RECORD`ID. Variant tags are considered
as 1 field. The subfields are defined with subsequent TAG`ID commands. This value must be equal to the number of
entries on the FIELD`FORMAT command.
Syntax:
N`FIELDS <# of fields>
Example:
N`FIELDS 5
RECORD`LABEL
This command assigns a label to the log record. The label is restricted to 20 characters and must be enclosed by either
double or single quotes.
Syntax:
RECORD`LABEL "<name>"
Example:
RECORD`LABEL "I/O"
RECORD`LABEL
FIELD`FORMAT
This command defines (bit for bit) what the record contains and the data types of each field. Several "types" are
known, as follows:
JUNK Typically a reserved field and is not formatted. (Don't include VALUE`LABEL or VAR`LABEL
entries for this type).
INTEGER Numeric data. It may be displayed in any of the popular bases (2,8,10,16). Currently a maximum of 64
bits is allowed.
ASCII ASCII<\esc> data. The full specified bit count will be displayed.
STRING A PASCAL string. [Length information in the front]. Only the valid characters in the string will be
printed.
For the present, assume PASCAL/MODCAL strings are of the following format:
[current length] [ASCII data] [String trailer]
|__________________|___________________|__________________|
| | |
String Overhead String Data String Overhead
The current length field requires 32 bits. String trailer requires 32 bits.
ARRAY An array of data. The specified number of bits (rounded up to the nearest byte count) will be displayed
in HEX AND ASCII (if the character is valid) - something like the following:
XX XX XX XX XX XX XX XX ..hello..
XX XX XX XX XX XX XX XX ..w....4.