466
|
1 <refentry id="crc">
|
|
2 <refnamediv>
|
468
|
3 <refname>Crc</refname>
|
|
4 <refpurpose>compute a cyclic redundancy count</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
|
9 <funcprototype>
|
|
10 <funcdef><function>crc</function></funcdef>
|
570
|
11 <paramdef>char *<parameter>start</parameter></paramdef>
|
|
12 <paramdef>int <parameter>count</parameter></paramdef>
|
|
13 <paramdef>char <parameter>accum</parameter>[3]</paramdef>
|
466
|
14 </funcprototype>
|
|
15 </funcsynopsis>
|
|
16
|
|
17 </refsynopsisdiv>
|
|
18
|
540
|
19 <refsect1><title>Assembler Equivalent</title>
|
|
20 <para>
|
|
21 os9 F$CRC
|
|
22 </para>
|
|
23 </refsect1>
|
|
24
|
466
|
25 <refsect1><title>Description</title>
|
|
26 <para>
|
594
|
27 This call accumulates a crc into a three byte array at "accum"
|
|
28 for "count" bytes starting at "start". All three bytes of
|
|
29 "accum" should be initialized to 0xff before the first call to
|
|
30 "crc()". However, repeated calls can be subsequently made to
|
|
31 cover an entire module. If the result is to be used as an OS-9
|
|
32 module crc, it should have its bytes complemented before
|
|
33 insertion at the end of the module.
|
466
|
34 </para>
|
|
35 </refsect1>
|
|
36 </refentry>
|