Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | CRC continuation value, or 0 |
R1 | Pointer to start of block |
R2 | Pointer to end of block |
R3 | Increment |
Exit | |
---|---|
R0 | CRC value |
R1 | Preserved |
R2 | Preserved |
R3 | Preserved |
The purpose of this call is to calculate the cyclic-redundancy check for a block of data.
The value calculated is only 16 bit.
The SWI adds R3 to R1 until it equals R2, ie if R1 never equals R2 you have an infinite loop
The byte at R2 is not included in the CRC value.