highlinting of new featured removed
This commit is contained in:
168
doc/formats.html
168
doc/formats.html
@ -466,158 +466,62 @@ In input, the next byte or bytes must match the checksum.
|
||||
<h3>Implemented checksum functions</h3>
|
||||
<dl>
|
||||
<dt><code>%<sum></code> or <code>%<sum8></code></dt>
|
||||
<dd>
|
||||
The sum of all characters modulo 2<sup>8</sup>.
|
||||
<br>
|
||||
One byte. <code>123456789%<sum></code> = 0xdd
|
||||
</dd>
|
||||
<dd>One byte. The sum of all characters modulo 2<sup>8</sup>.</dd>
|
||||
<dt><code>%<sum16></code></dt>
|
||||
<dd>
|
||||
The sum of all characters modulo 2<sup>16</sup>.
|
||||
<br>
|
||||
Two bytes. <code>123456789%<sum16></code> = 0x01dd
|
||||
</dd>
|
||||
<dd>Two bytes. The sum of all characters modulo 2<sup>16</sup>.</dd>
|
||||
<dt><code>%<sum32></code></dt>
|
||||
<dd>
|
||||
The sum of all characters modulo 2<sup>32</sup>.
|
||||
<br>
|
||||
Four bytes. <code>123456789%<sum32></code> = 0x000001dd
|
||||
</dd>
|
||||
<dd>Four bytes. The sum of all characters modulo 2<sup>32</sup>.</dd>
|
||||
<dt><code>%<negsum></code>, <code>%<nsum></code>, <code>%<-sum></code>, <code>%<negsum8></code>, <code>%<nsum8></code>, or <code>%<-sum8></code></dt>
|
||||
<dd>
|
||||
The negative of the sum of all characters modulo 2<sup>8</sup>.
|
||||
<br>
|
||||
One byte. <code>123456789%<-sum8></code> = 0x23
|
||||
</dd>
|
||||
<dd>One byte. The negative of the sum of all characters modulo 2<sup>8</sup>.</dd>
|
||||
<dt><code>%<negsum16></code>, <code>%<nsum16></code>, or <code>%<-sum16></code></dt>
|
||||
<dd>
|
||||
The negative of the sum of all characters modulo 2<sup>16</sup>.
|
||||
<br>
|
||||
Two bytes. <code>123456789%<-sum16></code> = 0xfe23
|
||||
</dd>
|
||||
<dd>Two bytes. The negative of the sum of all characters modulo 2<sup>16</sup>.</dd>
|
||||
<dt><code>%<negsum32></code>, <code>%<nsum32></code>, or <code>%<-sum32></code></dt>
|
||||
<dd>
|
||||
The negative of the sum of all characters modulo 2<sup>32</sup>.
|
||||
<br>
|
||||
Four bytes. <code>123456789%<-sum32></code> = 0xfffffe23
|
||||
</dd>
|
||||
<dd>Four bytes. The negative of the sum of all characters modulo 2<sup>32</sup>.</dd>
|
||||
<dt><code>%<notsum></code> or <code>%<~sum></code></dt>
|
||||
<dd>
|
||||
The bitwise inverse of the sum of all characters modulo 2<sup>8</sup>.
|
||||
<br>
|
||||
One byte. <code>123456789%<~sum8></code> = 0x22
|
||||
</dd>
|
||||
<dt><code>%<notsum16></code> or <code>%<~sum16></code></dt>
|
||||
<dd>
|
||||
The bitwise inverse of the sum of all characters modulo 2<sup>16</sup>.
|
||||
<br>
|
||||
Two bytes. <code>123456789%<~sum16></code> = 0xfe22
|
||||
</dd>
|
||||
<dt><code>%<notsum32></code> or <code>%<~sum32></code></dt>
|
||||
<dd>
|
||||
The bitwise inverse of the sum of all characters modulo 2<sup>32</sup>.
|
||||
<br>
|
||||
Four bytes. <code>123456789%<~sum32></code> = 0xfffffe22
|
||||
</dd>
|
||||
<dt><code>%<hexsum8></code></dt>
|
||||
<dd>
|
||||
The sum of all hexadecimal digits. (Other characters are ignored.)
|
||||
<br>
|
||||
One byte. <code>123456789%<hexsum8></code> = 0x2d
|
||||
</dd>
|
||||
<dd>One byte. The bitwise inverse of the sum of all characters modulo 2<sup>8</sup>.</dd>
|
||||
<dt><code>%<xor></code></dt>
|
||||
<dd>
|
||||
All characters xor'ed.
|
||||
<br>
|
||||
One byte. <code>123456789%<xor></code> = 0x31
|
||||
</dd>
|
||||
<dd>One byte. All characters xor'ed.</dd>
|
||||
<dt><code>%<xor7></code></dt>
|
||||
<dd>
|
||||
All characters xor'ed modulo 2<sup>7</sup>.
|
||||
<br>
|
||||
One byte. <code>123456789%<xor7></code> = 0x31
|
||||
</dd>
|
||||
<dd>One byte. All characters xor'ed & 0x7F.</dd>
|
||||
<dt><code>%<crc8></code></dt>
|
||||
<dd>
|
||||
An often used 8 bit crc checksum
|
||||
(poly=0x07, init=0x00, xorout=0x00).
|
||||
<br>
|
||||
One byte. <code>123456789%<crc8></code> = 0x31
|
||||
</dd>
|
||||
<dd>One byte. An often used 8 bit crc checksum
|
||||
(poly=0x07, init=0x00, xorout=0x00).</dd>
|
||||
<dt><code>%<ccitt8></code></dt>
|
||||
<dd>
|
||||
The CCITT standard 8 bit crc checksum
|
||||
(poly=0x31, init=0x00, xorout=0x00).
|
||||
<br>
|
||||
One byte. <code>123456789%<ccitt8></code> = 0xf4
|
||||
</dd>
|
||||
<dd>One byte. The CCITT standard 8 bit crc checksum
|
||||
(poly=0x31, init=0x00, xorout=0x00).</dd>
|
||||
<dt><code>%<crc16></code></dt>
|
||||
<dd>
|
||||
An often used 16 bit crc checksum
|
||||
(poly=0x8005, init=0x0000, xorout=0x0000).
|
||||
<br>
|
||||
Two bytes. <code>123456789%<crc16></code> = 0xfee8
|
||||
</dd>
|
||||
<dd>Two bytes. An often used 16 bit crc checksum
|
||||
(poly=0x8005, init=0x0000, xorout=0x0000).</dd>
|
||||
<dt><code>%<crc16r></code></dt>
|
||||
<dd>
|
||||
An often used reflected 16 bit crc checksum
|
||||
(poly=0x8005, init=0x0000, xorout=0x0000).
|
||||
<br>
|
||||
Two bytes. <code>123456789%<crc16r></code> = 0xbb3d
|
||||
</dd>
|
||||
<dd>Two bytes. An often used reflected 16 bit crc checksum
|
||||
(poly=0x8005, init=0x0000, xorout=0x0000).</dd>
|
||||
<dt><code>%<ccitt16></code></dt>
|
||||
<dd>
|
||||
The usual (but <a target="ex"
|
||||
href="http://srecord.sourceforge.net/crc16-ccitt.html">wrong?</a>)
|
||||
<dd>Two bytes. The usual (but <a target="ex"
|
||||
href="http://www.joegeluso.com/software/articles/ccitt.htm">wrong?</a>)
|
||||
implementation of the CCITT standard 16 bit crc checksum
|
||||
(poly=0x1021, init=0xFFFF, xorout=0x0000).
|
||||
<br>
|
||||
Two bytes. <code>123456789%<ccitt16></code> = 0x29b1
|
||||
</dd>
|
||||
(poly=0x1021, init=0xFFFF, xorout=0x0000).</dd>
|
||||
<dt><code>%<ccitt16a></code></dt>
|
||||
<dd>
|
||||
The unusual (but <a target="ex"
|
||||
href="http://srecord.sourceforge.net/crc16-ccitt.html">correct?</a>)
|
||||
<dd>Two bytes. The unusual (but <a target="ex"
|
||||
href="http://www.joegeluso.com/software/articles/ccitt.htm">correct?</a>)
|
||||
implementation of the CCITT standard 16 bit crc checksum with augment.
|
||||
(poly=0x1021, init=0x1D0F, xorout=0x0000).
|
||||
<br>
|
||||
Two bytes. <code>123456789%<ccitt16a></code> = 0xe5cc
|
||||
</dd>
|
||||
(poly=0x1021, init=0x1D0F, xorout=0x0000).</dd>
|
||||
<dt><code>%<ccitt16x></code> or <code>%<crc16c></code> or <code>%<xmodem></code></dt>
|
||||
<dd>
|
||||
The XMODEM checksum.
|
||||
(poly=0x1021, init=0x0000, xorout=0x0000).
|
||||
<br>
|
||||
Two bytes. <code>123456789%<xmodem></code> = 0x31c3
|
||||
</dd>
|
||||
<dd>Two bytes. The XMODEM checksum.
|
||||
(poly=0x1021, init=0x0000, xorout=0x0000).</dd>
|
||||
<dt><code>%<crc32></code></dt>
|
||||
<dd>
|
||||
The standard 32 bit crc checksum.
|
||||
(poly=0x04C11DB7, init=0xFFFFFFFF, xorout=0xFFFFFFFF).
|
||||
<br>
|
||||
Four bytes. <code>123456789%<crc32></code> = 0xfc891918
|
||||
</dd>
|
||||
<dd>Four bytes. The standard 32 bit crc checksum.
|
||||
(poly=0x04C11DB7, init=0xFFFFFFFF, xorout=0xFFFFFFFF).</dd>
|
||||
<dt><code>%<crc32r></code></dt>
|
||||
<dd>
|
||||
The standard reflected 32 bit crc checksum.
|
||||
(poly=0x04C11DB7, init=0xFFFFFFFF, xorout=0xFFFFFFFF).
|
||||
<br>
|
||||
Four bytes. <code>123456789%<crc32r></code> = 0xcbf43926
|
||||
</dd>
|
||||
<dd>Four bytes. The standard reflected 32 bit crc checksum.
|
||||
(poly=0x04C11DB7, init=0xFFFFFFFF, xorout=0xFFFFFFFF).</dd>
|
||||
<dt><code>%<jamcrc></code></dt>
|
||||
<dd>
|
||||
Another reflected 32 bit crc checksum.
|
||||
(poly=0x04C11DB7, init=0xFFFFFFFF, xorout=0x00000000).
|
||||
<br>
|
||||
Four bytes. <code>123456789%<jamcrc></code> = 0x340bc6d9
|
||||
</dd>
|
||||
<dd>Four bytes. Another reflected 32 bit crc checksum.
|
||||
(poly=0x04C11DB7, init=0xFFFFFFFF, xorout=0x00000000).</dd>
|
||||
<dt><code>%<adler32></code></dt>
|
||||
<dd>
|
||||
The Adler32 checksum according to <a target="ex"
|
||||
href="http://www.ietf.org/rfc/rfc1950.txt">RFC 1950</a>.
|
||||
<br>
|
||||
Four bytes. <code>123456789%<adler32></code> = 0x091e01de
|
||||
</dd>
|
||||
<dd>Four bytes. The Adler32 checksum according to <a target="ex"
|
||||
href="http://www.ietf.org/rfc/rfc1950.txt">RFC 1950</a>.</dd>
|
||||
<dt><code>%<hexsum8></code></dt>
|
||||
<dd>One byte. The sum of all hex digits. (Other characters are ignored.)</dd>
|
||||
</dl>
|
||||
|
||||
<a name="regex"></a>
|
||||
@ -737,6 +641,6 @@ ignored anyway).
|
||||
</p>
|
||||
<hr>
|
||||
<p align="right"><a href="processing.html">Next: Record Processing</a></p>
|
||||
<p><small>Dirk Zimoch, 2011</small></p>
|
||||
<p><small>Dirk Zimoch, 2015</small></p>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user