<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dsibrew.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3ARemark%2FIcon-fixcrc.c</id>
	<title>User:Remark/Icon-fixcrc.c - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dsibrew.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3ARemark%2FIcon-fixcrc.c"/>
	<link rel="alternate" type="text/html" href="https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;action=history"/>
	<updated>2026-04-30T10:20:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1933&amp;oldid=prev</id>
		<title>LoganA: Icon-fixcrc.c moved to User:Remark/Icon-fixcrc.c</title>
		<link rel="alternate" type="text/html" href="https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1933&amp;oldid=prev"/>
		<updated>2009-08-10T20:16:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/wiki/Icon-fixcrc.c&quot; class=&quot;mw-redirect&quot; title=&quot;Icon-fixcrc.c&quot;&gt;Icon-fixcrc.c&lt;/a&gt; moved to &lt;a href=&quot;/wiki/User:Remark/Icon-fixcrc.c&quot; title=&quot;User:Remark/Icon-fixcrc.c&quot;&gt;User:Remark/Icon-fixcrc.c&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:16, 11 August 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key dsibrew-dsi_:diff:1.41:old-1353:rev-1933 --&gt;
&lt;/table&gt;</summary>
		<author><name>LoganA</name></author>
	</entry>
	<entry>
		<id>https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1353&amp;oldid=prev</id>
		<title>Remark: Fixed Syntax-Highlightning</title>
		<link rel="alternate" type="text/html" href="https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1353&amp;oldid=prev"/>
		<updated>2009-05-22T07:21:56Z</updated>

		<summary type="html">&lt;p&gt;Fixed Syntax-Highlightning&lt;/p&gt;
&lt;a href=&quot;https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;amp;diff=1353&amp;amp;oldid=1323&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Remark</name></author>
	</entry>
	<entry>
		<id>https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1323&amp;oldid=prev</id>
		<title>LoganA: added &lt;source lang=&quot;c&quot;&gt;</title>
		<link rel="alternate" type="text/html" href="https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1323&amp;oldid=prev"/>
		<updated>2009-05-12T16:53:53Z</updated>

		<summary type="html">&lt;p&gt;added &amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:53, 12 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&amp;lt;source lang=&quot;c&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // DSi icon_fixcrc&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // DSi icon_fixcrc&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // written by remark&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // written by remark&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l171&quot;&gt;Line 171:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 172:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     return 0;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     return 0;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&amp;lt;/source&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key dsibrew-dsi_:diff:1.41:old-1320:rev-1323:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>LoganA</name></author>
	</entry>
	<entry>
		<id>https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1320&amp;oldid=prev</id>
		<title>Remark at 15:04, 12 May 2009</title>
		<link rel="alternate" type="text/html" href="https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1320&amp;oldid=prev"/>
		<updated>2009-05-12T13:04:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:04, 12 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // written by remark&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // written by remark&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // thanks to loopy_, bLASTY, segher&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // thanks to loopy_, bLASTY, segher&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // Copyright 2007,2008  Segher Boessenkool  &amp;lt;segher@kernel.crashing.org&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // Copyright 2007,2008  Segher Boessenkool  &amp;lt;segher@kernel.crashing.org&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // Licensed under the terms of the GNU GPL, version 2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // Licensed under the terms of the GNU GPL, version 2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   #include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   #include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   typedef unsigned long u32;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   typedef unsigned long u32;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key dsibrew-dsi_:diff:1.41:old-1319:rev-1320:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Remark</name></author>
	</entry>
	<entry>
		<id>https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1319&amp;oldid=prev</id>
		<title>Remark at 15:03, 12 May 2009</title>
		<link rel="alternate" type="text/html" href="https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1319&amp;oldid=prev"/>
		<updated>2009-05-12T13:03:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:03, 12 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // Licensed under the terms of the GNU GPL, version 2&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // Licensed under the terms of the GNU GPL, version 2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   // http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   #include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   #include &amp;lt;stdio.h&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   typedef unsigned long u32;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   typedef unsigned long u32;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key dsibrew-dsi_:diff:1.41:old-1318:rev-1319:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Remark</name></author>
	</entry>
	<entry>
		<id>https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1318&amp;oldid=prev</id>
		<title>Remark: New page:   // DSi icon_fixcrc   // written by remark   // thanks to loopy_, bLASTY, segher      // Copyright 2007,2008  Segher Boessenkool  &lt;segher@kernel.crashing.org&gt;   // Licensed under the term...</title>
		<link rel="alternate" type="text/html" href="https://dsibrew.org/w/index.php?title=User:Remark/Icon-fixcrc.c&amp;diff=1318&amp;oldid=prev"/>
		<updated>2009-05-12T13:03:46Z</updated>

		<summary type="html">&lt;p&gt;New page:   // DSi icon_fixcrc   // written by remark   // thanks to loopy_, bLASTY, segher      // Copyright 2007,2008  Segher Boessenkool  &amp;lt;segher@kernel.crashing.org&amp;gt;   // Licensed under the term...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;  // DSi icon_fixcrc&lt;br /&gt;
  // written by remark&lt;br /&gt;
  // thanks to loopy_, bLASTY, segher&lt;br /&gt;
  &lt;br /&gt;
  // Copyright 2007,2008  Segher Boessenkool  &amp;lt;segher@kernel.crashing.org&amp;gt;&lt;br /&gt;
  // Licensed under the terms of the GNU GPL, version 2&lt;br /&gt;
  // http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt&lt;br /&gt;
  #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
  typedef unsigned long u32;&lt;br /&gt;
  typedef unsigned short u16;&lt;br /&gt;
  typedef unsigned char u8;&lt;br /&gt;
  &lt;br /&gt;
  u16 be16(const u8 *p)&lt;br /&gt;
  {&lt;br /&gt;
    return (p[0] &amp;lt;&amp;lt; 8) | p[1];&lt;br /&gt;
  }&lt;br /&gt;
  u32 be32(const u8 *p)&lt;br /&gt;
  {&lt;br /&gt;
    return (p[0] &amp;lt;&amp;lt; 24) | (p[1] &amp;lt;&amp;lt; 16) | (p[2] &amp;lt;&amp;lt; 8) | p[3];&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  #define BNR_VER 0x0301&lt;br /&gt;
  #define FLAG_FLIPV 0x80&lt;br /&gt;
  #define FLAG_FLIPH 0x40&lt;br /&gt;
  typedef struct {&lt;br /&gt;
    u16 version;&lt;br /&gt;
    u16 crcs[4];&lt;br /&gt;
    u8 padding[0x16]; &lt;br /&gt;
    u8 bitmap[0x200];&lt;br /&gt;
    u16 palette[0x10];&lt;br /&gt;
    u8 title_jap[0x100];&lt;br /&gt;
    u8 title_eng[0x100];&lt;br /&gt;
    u8 title_fr[0x100];&lt;br /&gt;
    u8 title_ger[0x100];&lt;br /&gt;
    u8 title_ita[0x100];&lt;br /&gt;
    u8 title_spa[0x100];&lt;br /&gt;
    u8 title_unk[0x100]; &lt;br /&gt;
    u8 title_unk2[0x100];&lt;br /&gt;
    u8 padding2[0x800];&lt;br /&gt;
    u8 bitmaps[8][0x200];&lt;br /&gt;
    u16 palettes[8][0x10];&lt;br /&gt;
    u16 sequence[0x40];&lt;br /&gt;
  } bannerstruct;&lt;br /&gt;
  &lt;br /&gt;
  int flength(FILE *f)&lt;br /&gt;
  {&lt;br /&gt;
    int pos,end;&lt;br /&gt;
    pos = ftell (f);&lt;br /&gt;
    fseek (f, 0, SEEK_END);&lt;br /&gt;
    end = ftell (f);&lt;br /&gt;
    fseek (f, pos, SEEK_SET);&lt;br /&gt;
    return end;&lt;br /&gt;
  }&lt;br /&gt;
    &lt;br /&gt;
  // crc16; poly 0xA001&lt;br /&gt;
  u16 crc_table[256] = {&lt;br /&gt;
    0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241, 0xc601, 0x06c0,&lt;br /&gt;
    0x0780, 0xc741, 0x0500, 0xc5c1, 0xc481, 0x0440, 0xcc01, 0x0cc0, 0x0d80, 0xcd41,&lt;br /&gt;
    0x0f00, 0xcfc1, 0xce81, 0x0e40, 0x0a00, 0xcac1, 0xcb81, 0x0b40, 0xc901, 0x09c0,&lt;br /&gt;
    0x0880, 0xc841, 0xd801, 0x18c0, 0x1980, 0xd941, 0x1b00, 0xdbc1, 0xda81, 0x1a40,&lt;br /&gt;
    0x1e00, 0xdec1, 0xdf81, 0x1f40, 0xdd01, 0x1dc0, 0x1c80, 0xdc41, 0x1400, 0xd4c1,&lt;br /&gt;
    0xd581, 0x1540, 0xd701, 0x17c0, 0x1680, 0xd641, 0xd201, 0x12c0, 0x1380, 0xd341,&lt;br /&gt;
    0x1100, 0xd1c1, 0xd081, 0x1040, 0xf001, 0x30c0, 0x3180, 0xf141, 0x3300, 0xf3c1,&lt;br /&gt;
    0xf281, 0x3240, 0x3600, 0xf6c1, 0xf781, 0x3740, 0xf501, 0x35c0, 0x3480, 0xf441,&lt;br /&gt;
    0x3c00, 0xfcc1, 0xfd81, 0x3d40, 0xff01, 0x3fc0, 0x3e80, 0xfe41, 0xfa01, 0x3ac0,&lt;br /&gt;
    0x3b80, 0xfb41, 0x3900, 0xf9c1, 0xf881, 0x3840, 0x2800, 0xe8c1, 0xe981, 0x2940,&lt;br /&gt;
    0xeb01, 0x2bc0, 0x2a80, 0xea41, 0xee01, 0x2ec0, 0x2f80, 0xef41, 0x2d00, 0xedc1,&lt;br /&gt;
    0xec81, 0x2c40, 0xe401, 0x24c0, 0x2580, 0xe541, 0x2700, 0xe7c1, 0xe681, 0x2640,&lt;br /&gt;
    0x2200, 0xe2c1, 0xe381, 0x2340, 0xe101, 0x21c0, 0x2080, 0xe041, 0xa001, 0x60c0,&lt;br /&gt;
    0x6180, 0xa141, 0x6300, 0xa3c1, 0xa281, 0x6240, 0x6600, 0xa6c1, 0xa781, 0x6740,&lt;br /&gt;
    0xa501, 0x65c0, 0x6480, 0xa441, 0x6c00, 0xacc1, 0xad81, 0x6d40, 0xaf01, 0x6fc0,&lt;br /&gt;
    0x6e80, 0xae41, 0xaa01, 0x6ac0, 0x6b80, 0xab41, 0x6900, 0xa9c1, 0xa881, 0x6840,&lt;br /&gt;
    0x7800, 0xb8c1, 0xb981, 0x7940, 0xbb01, 0x7bc0, 0x7a80, 0xba41, 0xbe01, 0x7ec0,&lt;br /&gt;
    0x7f80, 0xbf41, 0x7d00, 0xbdc1, 0xbc81, 0x7c40, 0xb401, 0x74c0, 0x7580, 0xb541,&lt;br /&gt;
    0x7700, 0xb7c1, 0xb681, 0x7640, 0x7200, 0xb2c1, 0xb381, 0x7340, 0xb101, 0x71c0,&lt;br /&gt;
    0x7080, 0xb041, 0x5000, 0x90c1, 0x9181, 0x5140, 0x9301, 0x53c0, 0x5280, 0x9241,&lt;br /&gt;
    0x9601, 0x56c0, 0x5780, 0x9741, 0x5500, 0x95c1, 0x9481, 0x5440, 0x9c01, 0x5cc0,&lt;br /&gt;
    0x5d80, 0x9d41, 0x5f00, 0x9fc1, 0x9e81, 0x5e40, 0x5a00, 0x9ac1, 0x9b81, 0x5b40,&lt;br /&gt;
    0x9901, 0x59c0, 0x5880, 0x9841, 0x8801, 0x48c0, 0x4980, 0x8941, 0x4b00, 0x8bc1,&lt;br /&gt;
    0x8a81, 0x4a40, 0x4e00, 0x8ec1, 0x8f81, 0x4f40, 0x8d01, 0x4dc0, 0x4c80, 0x8c41,&lt;br /&gt;
    0x4400, 0x84c1, 0x8581, 0x4540, 0x8701, 0x47c0, 0x4680, 0x8641, 0x8201, 0x42c0,&lt;br /&gt;
    0x4380, 0x8341, 0x4100, 0x81c1, 0x8081, 0x4040&lt;br /&gt;
  };&lt;br /&gt;
    &lt;br /&gt;
  u16 crc16(char* buf, int len)&lt;br /&gt;
  {&lt;br /&gt;
    u16 c = 0xFFFF;&lt;br /&gt;
    int n;&lt;br /&gt;
    for (n = 0; n &amp;lt; len; n++) {&lt;br /&gt;
      c = crc_table[(c^buf[n]) &amp;amp; 0xFF] ^ (c&amp;gt;&amp;gt;8);&lt;br /&gt;
    }&lt;br /&gt;
    return c;&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  int main(int argc, char* argv[])&lt;br /&gt;
  {&lt;br /&gt;
    if(argc != 2)&lt;br /&gt;
    {&lt;br /&gt;
      printf(&amp;quot;usage: %s &amp;lt;icon.bin&amp;gt;\n&amp;quot;, argv[0]);&lt;br /&gt;
      exit(0);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    FILE* fp = fopen(argv[1],&amp;quot;rb&amp;quot;);&lt;br /&gt;
    if(fp == NULL)&lt;br /&gt;
    {&lt;br /&gt;
      printf(&amp;quot;input file not found\n&amp;quot;);&lt;br /&gt;
      exit(1);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    int f_len = flength(fp);&lt;br /&gt;
    char* f_buf = malloc(f_len);&lt;br /&gt;
    if(f_buf == NULL)&lt;br /&gt;
    {&lt;br /&gt;
      fprintf(stderr, &amp;quot;not enough memory\n&amp;quot;);&lt;br /&gt;
      exit(1);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    if(fread(f_buf, f_len, 1, fp) != 1)&lt;br /&gt;
    {&lt;br /&gt;
      fprintf(stderr, &amp;quot;file read failure\n&amp;quot;);&lt;br /&gt;
      exit(1);&lt;br /&gt;
    }&lt;br /&gt;
  &lt;br /&gt;
    bannerstruct* bnr = (bannerstruct*) f_buf;&lt;br /&gt;
    // check magic&lt;br /&gt;
    if(be16((u8*)&amp;amp;bnr-&amp;gt;version) != BNR_VER)&lt;br /&gt;
    {&lt;br /&gt;
      fprintf(stderr, &amp;quot;invalid banner icon (magic mismatch)\n&amp;quot;);&lt;br /&gt;
      exit(1);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    // 1st&lt;br /&gt;
    u16 calc_crc = crc16(f_buf+0x20,0x820);&lt;br /&gt;
    if(calc_crc != bnr-&amp;gt;crcs[0])&lt;br /&gt;
    {&lt;br /&gt;
      printf(&amp;quot;crc[0] updated: %x != %x\n&amp;quot;, calc_crc, bnr-&amp;gt;crcs[0]);&lt;br /&gt;
      bnr-&amp;gt;crcs[0] = calc_crc;&lt;br /&gt;
    }&lt;br /&gt;
    // 2nd&lt;br /&gt;
    calc_crc = crc16(f_buf+0x20,0x920);&lt;br /&gt;
    if(calc_crc != bnr-&amp;gt;crcs[1])&lt;br /&gt;
    {&lt;br /&gt;
      printf(&amp;quot;crc[1] updated: %x != %x\n&amp;quot;, calc_crc, bnr-&amp;gt;crcs[1]);&lt;br /&gt;
      bnr-&amp;gt;crcs[1] = calc_crc;&lt;br /&gt;
    }&lt;br /&gt;
    // 3rd&lt;br /&gt;
    calc_crc = crc16(f_buf+0x20,0xA20);&lt;br /&gt;
    if(calc_crc != bnr-&amp;gt;crcs[2])&lt;br /&gt;
    {&lt;br /&gt;
      printf(&amp;quot;crc[2] updated: %x != %x\n&amp;quot;, calc_crc, bnr-&amp;gt;crcs[2]);&lt;br /&gt;
      bnr-&amp;gt;crcs[2] = calc_crc;&lt;br /&gt;
    }&lt;br /&gt;
    // 4th&lt;br /&gt;
    calc_crc = crc16(f_buf+0x1240,0x1180);&lt;br /&gt;
    if(calc_crc != bnr-&amp;gt;crcs[3])&lt;br /&gt;
    {&lt;br /&gt;
      printf(&amp;quot;crc[3] updated: %x != %x\n&amp;quot;, calc_crc, bnr-&amp;gt;crcs[3]);&lt;br /&gt;
      bnr-&amp;gt;crcs[3] = calc_crc;&lt;br /&gt;
    }&lt;br /&gt;
  &lt;br /&gt;
    fp = freopen(argv[1], &amp;quot;wb+&amp;quot;, fp);&lt;br /&gt;
    if(fwrite(f_buf, f_len, 1, fp) != 1)&lt;br /&gt;
    {&lt;br /&gt;
      printf(&amp;quot;write to output file failed\n&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
  &lt;br /&gt;
    printf(&amp;quot;finished..\n&amp;quot;);&lt;br /&gt;
    fclose(fp);&lt;br /&gt;
    &lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;/div&gt;</summary>
		<author><name>Remark</name></author>
	</entry>
</feed>