RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

OS_CRC

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_CRC

OS_CRC

(SWI &5B)
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

Use

The purpose of this call is to calculate the cyclic-redundancy check for a block of data.

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.

Created on November 9, 2009 20:44:10 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: OS SWI Calls

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys