User`s manual

.CHK_SUM
5-68
5
.CHK_SUM
Name
.CHK_SUM - Generate checksum for address range
Code
$006B
Description
This routine generates a checksum for an address range
that is passed in as arguments.
Entry Conditions
R03: Beginning address
R04: Ending address + 1
R05: Scale indicator. Values are:
0 Default setting (WORD)
1 BYTE
2 HALF-WORD
4 WORD
Exit Conditions Different From Entry
R03: Checksum
Notes 1. If a Bus Error results from this routine, then the
debugger bus error exception handler is invoked and
the calling routine is also aborted.
2. The calling routine must insure that the beginning
and ending addresses are on word boundaries or the
integrity of the checksum cannot be guaranteed.