highlinting of new featured removed
This commit is contained in:
@ -41,7 +41,7 @@ written or read value.
|
||||
(=20.0/0xFFFF) maps 0x0000 to -10.0, 0x7FFF to 0.0 and 0xFFFF to 10.0.
|
||||
Using unsigned formats with values ≥ 0x800000 gives different results
|
||||
on 64 bit machines.
|
||||
<p class="new">
|
||||
<p>
|
||||
If <code>LINR=="NO CONVERSION"</code> (the default), <code>VAL</code>
|
||||
is directly converted from and to <code>long</code> without going through
|
||||
<code>RVAL</code>. This allows for more bits on 64 bit machines.
|
||||
@ -84,6 +84,6 @@ written or read value.
|
||||
<a href="calcout.html">calcout</a>
|
||||
<a href="scalcout.html">scalcout</a>
|
||||
</p>
|
||||
<p><small>Dirk Zimoch, 2005</small></p>
|
||||
<p><small>Dirk Zimoch, 2015</small></p>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -40,7 +40,7 @@ written or read value.
|
||||
(=20.0/0xFFFF) maps -10.0 to 0x0000, 0.0 to 0x7FFF and 10.0 to 0xFFFF.
|
||||
Using unsigned formats with values ≥ 0x800000 gives different results
|
||||
on 64 bit machines.
|
||||
<p class="new">
|
||||
<p>
|
||||
If <code>LINR=="NO CONVERSION"</code> (the default), <code>OVAL</code>
|
||||
is directly converted to <code>long</code> without going through
|
||||
<code>RVAL</code>. This allows for more bits on 64 bit machines.
|
||||
@ -85,6 +85,6 @@ written or read value.
|
||||
<a href="calcout.html">calcout</a>
|
||||
<a href="scalcout.html">scalcout</a>
|
||||
</p>
|
||||
<p><small>Dirk Zimoch, 2005</small></p>
|
||||
<p><small>Dirk Zimoch, 2015</small></p>
|
||||
</body>
|
||||
</html>
|
||||
|
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>
|
||||
|
@ -104,13 +104,8 @@ This marks text you typically type in configuration files etc.
|
||||
<pre>
|
||||
Longer code segments are often set in a box.
|
||||
</pre>
|
||||
<p>
|
||||
Important modifications and new features are
|
||||
<span class="new">highlighted with a yellow background</span>.
|
||||
Obsolete features are <strike class="new">highlighted and crossed out</strike>.
|
||||
</p>
|
||||
<hr>
|
||||
<p align="right"><a href="setup.html">Next: Setup</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