<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wikiti.brandonw.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=Z80_Routines%3ASecurity%3ACRC16</id>
		<title>Z80 Routines:Security:CRC16 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wikiti.brandonw.net/index.php?action=history&amp;feed=atom&amp;title=Z80_Routines%3ASecurity%3ACRC16"/>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Security:CRC16&amp;action=history"/>
		<updated>2026-04-05T23:46:59Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.5</generator>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=Z80_Routines:Security:CRC16&amp;diff=4731&amp;oldid=prev</id>
		<title>AndyJ: Previous edit by Saibot84 is not minor (creating a new page is not minor! :))</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Security:CRC16&amp;diff=4731&amp;oldid=prev"/>
				<updated>2006-05-27T22:51:35Z</updated>
		
		<summary type="html">&lt;p&gt;Previous edit by Saibot84 is not minor (creating a new page is not minor! :))&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:51, 27 May 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Z80 Routines|CRC16]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Z80 Routines|CRC16]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Untested-Code}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Untested-Code}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;nowiki&amp;gt;CRC16:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; &amp;lt;nowiki&amp;gt;CRC16:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Borrowed from http://zilog.sh.cvut.cz/~base/misc/z80bits.html&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Borrowed from http://zilog.sh.cvut.cz/~base/misc/z80bits.html&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>AndyJ</name></author>	</entry>

	<entry>
		<id>https://wikiti.brandonw.net/index.php?title=Z80_Routines:Security:CRC16&amp;diff=4730&amp;oldid=prev</id>
		<title>Saibot84: just a CRC16 routine I edited</title>
		<link rel="alternate" type="text/html" href="https://wikiti.brandonw.net/index.php?title=Z80_Routines:Security:CRC16&amp;diff=4730&amp;oldid=prev"/>
				<updated>2006-05-27T20:50:32Z</updated>
		
		<summary type="html">&lt;p&gt;just a CRC16 routine I edited&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Z80 Routines:Security|CRC16]]&lt;br /&gt;
[[Category:Z80 Routines|CRC16]]&lt;br /&gt;
{{Untested-Code}}&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;CRC16:&lt;br /&gt;
;Borrowed from http://zilog.sh.cvut.cz/~base/misc/z80bits.html&lt;br /&gt;
; and moddified to be a loop&lt;br /&gt;
;The arrow comments show what lines I added or commented out from the original.&lt;br /&gt;
;Inputs:    de-&amp;gt;data bc=number of bytes&lt;br /&gt;
;Outputs:   hl=CRC16&lt;br /&gt;
   push bc     ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   push de     ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   push af     ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   ld hl,$FFFF&lt;br /&gt;
   push bc     ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
CRC16_Read:&lt;br /&gt;
   ld a,(de)&lt;br /&gt;
   inc de&lt;br /&gt;
   xor h&lt;br /&gt;
   ld h,a&lt;br /&gt;
   ld b,8&lt;br /&gt;
CRC16_CrcByte:&lt;br /&gt;
   add hl,hl&lt;br /&gt;
   jr nc,CRC16_Next&lt;br /&gt;
   ld a,h&lt;br /&gt;
   xor $10&lt;br /&gt;
   ld h,a&lt;br /&gt;
   ld a,l&lt;br /&gt;
   xor $21&lt;br /&gt;
   ld l,a&lt;br /&gt;
CRC16_Next:&lt;br /&gt;
   djnz CRC16_CrcByte&lt;br /&gt;
;   dec c      ;&amp;gt;&amp;gt;&amp;gt;---&amp;gt;&lt;br /&gt;
   pop bc      ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   dec bc      ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   push bc     ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   ld a,b      ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   or c        ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   jr nz,CRC16_Read&lt;br /&gt;
   pop bc      ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   pop af      ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   pop de      ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   pop bc      ;&amp;lt;---&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
   ret&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Saibot84</name></author>	</entry>

	</feed>