CS - Checksum
3-33
3
CS - Checksum
Command Input
CS RANGE [;B|H|W]
Options
Description
The CS command calculates a checksum to verify the contents of a
block of memory. It uses the same checksum routine that is run at
system start-up. The checksum algorithm works as follows:
1. The checksum variable is set to zero.
2. Each data element is added to the checksum. If a carry is
generated, a one is added to the checksum variable.
This process is repeated for each data element until the ending
address is reached.
The option field serves both as a data size identifier and scale factor
if a COUNT is specified as part of the RANGE. The size option is
byte, half-word, or word for the items checked. The default data
size is word.
The addresses used in the RANGE parameters can be provided in
two forms:
❏ An absolute address (32-bit maximum).
❏ An expression using a displacement + relative offset register.
B Byte
H Half-word
W Word
Comments to this Manuals