h6. [[OS SWI Calls]] h6(. » OS_CRC h2. OS_CRC h5. (SWI &5B) |_<^{width:3em}. Entry | | |<^. R0 |<^. CRC continuation value, or 0| |<^. R1 |<^. Pointer to start of block | |<^. R2 |<^. Pointer to end of block | |<^. R3 |<^. Increment | |_<^{width:3em}. Exit | | |<^. R0|<^. CRC value | |<^. R1 |<^. Preserved | |<^. R2 |<^. Preserved | |<^. R3 |<^. Preserved | h4. Use The purpose of this call is to calculate the cyclic-redundancy check for a block of data. h4. Notes 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.