http://fileformats.archiveteam.org/index.php?title=RBJ_(Redcode_oBJect)&feed=atom&action=history
RBJ (Redcode oBJect) - Revision history
2024-03-29T05:07:46Z
Revision history for this page on the wiki
MediaWiki 1.19.2
http://fileformats.archiveteam.org/index.php?title=RBJ_(Redcode_oBJect)&diff=27057&oldid=prev
Dan Tobias: /* Structure Descriptions */ Link page on endianness
2016-12-14T02:00:53Z
<p><span dir="auto"><span class="autocomment">Structure Descriptions: </span> Link page on endianness</span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 02:00, 14 December 2016</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 25:</td>
<td colspan="2" class="diff-lineno">Line 25:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Structure Descriptions ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Structure Descriptions ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Int = 2 bytes in Little-endian format.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Int = 2 bytes in <ins class="diffchange diffchange-inline">[[Endianness|</ins>Little-endian<ins class="diffchange diffchange-inline">]] </ins>format.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Header ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Header ===</div></td></tr>
</table>
Dan Tobias
http://fileformats.archiveteam.org/index.php?title=RBJ_(Redcode_oBJect)&diff=27056&oldid=prev
Mark0: Added note about Endianess
2016-12-13T18:49:23Z
<p>Added note about Endianess</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 18:49, 13 December 2016</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 24:</td>
<td colspan="2" class="diff-lineno">Line 24:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Structure Descriptions ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== Structure Descriptions ==</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Int = 2 bytes in Little-endian format.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Header ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Header ===</div></td></tr>
</table>
Mark0
http://fileformats.archiveteam.org/index.php?title=RBJ_(Redcode_oBJect)&diff=26446&oldid=prev
Mark0 at 19:32, 17 September 2016
2016-09-17T19:32:25Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 19:32, 17 September 2016</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 11:</td>
<td colspan="2" class="diff-lineno">Line 11:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>'''RBJ''' format belongs to [[XRK - Extra Redcode Kit]], a complete [[Core Wars]] system for [[DOS]]. RBJ files contains an assembled binary version of a [[Redcode]] Warrior, usually written by the [[XRA - Extra Redcode Assembler]].</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>'''RBJ''' format belongs to [[XRK - Extra Redcode Kit]], a complete [[Core Wars]] system for [[DOS]] <ins class="diffchange diffchange-inline">by Marco Pontello</ins>. RBJ files contains an assembled binary version of a [[Redcode]] Warrior, usually written by the [[XRA - Extra Redcode Assembler]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>RBJ files also contains info about the warrior's author, name and version of the assembler used, date & time.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>RBJ files also contains info about the warrior's author, name and version of the assembler used, date & time.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>
Mark0
http://fileformats.archiveteam.org/index.php?title=RBJ_(Redcode_oBJect)&diff=21392&oldid=prev
Dan Tobias at 23:36, 29 March 2015
2015-03-29T23:36:30Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 23:36, 29 March 2015</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 11:</td>
<td colspan="2" class="diff-lineno">Line 11:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>'''RBJ''' format belongs to [[XRK - Extra Redcode Kit]], a complete [[Core Wars]] system for [[DOS]]. RBJ files contains an assembled binary version of a Redcode Warrior, usually written by the [[XRA - Extra Redcode Assembler]].</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>'''RBJ''' format belongs to [[XRK - Extra Redcode Kit]], a complete [[Core Wars]] system for [[DOS]]. RBJ files contains an assembled binary version of a <ins class="diffchange diffchange-inline">[[</ins>Redcode<ins class="diffchange diffchange-inline">]] </ins>Warrior, usually written by the [[XRA - Extra Redcode Assembler]].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>RBJ files also contains info about the warrior's author, name and version of the assembler used, date & time.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>RBJ files also contains info about the warrior's author, name and version of the assembler used, date & time.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
</table>
Dan Tobias
http://fileformats.archiveteam.org/index.php?title=RBJ_(Redcode_oBJect)&diff=21377&oldid=prev
Dan Tobias: Add subcategory; remove some unnecessary redlinks
2015-03-29T19:00:36Z
<p>Add subcategory; remove some unnecessary redlinks</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 19:00, 29 March 2015</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| reference impl        = http://mark0.net/soft-xrk-e.html</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| reference impl        = http://mark0.net/soft-xrk-e.html</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| error resiliance      = checksum           </div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| error resiliance      = checksum           </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">| subcat                = Game data files</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">[[</del>RBJ<del class="diffchange diffchange-inline">]] </del>format <del class="diffchange diffchange-inline">belong </del>to [[XRK - Extra Redcode Kit]], a complete [[Core Wars]] system for [[DOS]]. <del class="diffchange diffchange-inline">[[</del>RBJ<del class="diffchange diffchange-inline">]] </del>files contains an assembled binary version of a Redcode Warrior, usually written by the [[XRA - Extra Redcode Assembler]].</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">'''</ins>RBJ<ins class="diffchange diffchange-inline">''' </ins>format <ins class="diffchange diffchange-inline">belongs </ins>to [[XRK - Extra Redcode Kit]], a complete [[Core Wars]] system for [[DOS]]. RBJ files contains an assembled binary version of a Redcode Warrior, usually written by the [[XRA - Extra Redcode Assembler]].</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">[[</del>RBJ<del class="diffchange diffchange-inline">]] </del>files also contains info about the warrior's author, name and version of the assembler used, date & time.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>RBJ files also contains info about the warrior's author, name and version of the assembler used, date & time.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== File structure overview ==</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>== File structure overview ==</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 18:</td>
<td colspan="2" class="diff-lineno">Line 19:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The Tail is represented by 1 byte used as a checksum.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The Tail is represented by 1 byte used as a checksum.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>To verify the integrity of a <del class="diffchange diffchange-inline">[[</del>RBJ<del class="diffchange diffchange-inline">]] </del>file, simply compare this value to the</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>To verify the integrity of a RBJ file, simply compare this value to the</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>calculated checksum of the first (filesize - 1) bytes (that is Header +</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>calculated checksum of the first (filesize - 1) bytes (that is Header +</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Code).</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Code).</div></td></tr>
</table>
Dan Tobias
http://fileformats.archiveteam.org/index.php?title=RBJ_(Redcode_oBJect)&diff=21376&oldid=prev
Mark0: fixed image
2015-03-29T14:14:04Z
<p>fixed image</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 14:14, 29 March 2015</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| extensions            = {{ext|rbj}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| extensions            = {{ext|rbj}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| released              = 1992</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| released              = 1992</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>| image                  = <del class="diffchange diffchange-inline">[[File:</del>cw.png<del class="diffchange diffchange-inline">]]</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>| image                  = cw.png</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| caption                = XRK core display</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| caption                = XRK core display</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| endianness            = Little_endian</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| endianness            = Little_endian</div></td></tr>
</table>
Mark0
http://fileformats.archiveteam.org/index.php?title=RBJ_(Redcode_oBJect)&diff=21375&oldid=prev
Mark0 at 14:09, 29 March 2015
2015-03-29T14:09:29Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 14:09, 29 March 2015</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| extensions            = {{ext|rbj}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| extensions            = {{ext|rbj}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| released              = 1992</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| released              = 1992</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">| image                  = [[File:cw.png]]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| caption                = XRK core display</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| caption                = XRK core display</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| endianness            = Little_endian</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>| endianness            = Little_endian</div></td></tr>
</table>
Mark0
http://fileformats.archiveteam.org/index.php?title=RBJ_(Redcode_oBJect)&diff=21373&oldid=prev
Mark0: All the content is basically there
2015-03-29T14:05:01Z
<p>All the content is basically there</p>
<p><b>New page</b></p><div>{{FormatInfo<br />
| extensions = {{ext|rbj}}<br />
| released = 1992<br />
| caption = XRK core display<br />
| endianness = Little_endian<br />
| developed by = Marco Pontello<br />
| reference impl = http://mark0.net/soft-xrk-e.html<br />
| error resiliance = checksum <br />
}}<br />
<br />
[[RBJ]] format belong to [[XRK - Extra Redcode Kit]], a complete [[Core Wars]] system for [[DOS]]. [[RBJ]] files contains an assembled binary version of a Redcode Warrior, usually written by the [[XRA - Extra Redcode Assembler]].<br />
[[RBJ]] files also contains info about the warrior's author, name and version of the assembler used, date & time.<br />
<br />
== File structure overview ==<br />
<br />
An RBJ file is composed of 3 sections: Header, Code, Tail<br />
<br />
The Tail is represented by 1 byte used as a checksum.<br />
To verify the integrity of a [[RBJ]] file, simply compare this value to the<br />
calculated checksum of the first (filesize - 1) bytes (that is Header +<br />
Code).<br />
<br />
== Structure Descriptions ==<br />
<br />
=== Header ===<br />
<br />
The Header is 75 bytes long, and is composed as follow:<br />
<br />
<pre><br />
Pos Field Len Data<br />
---------------------------------<br />
0 Version ID 1 Byte - decimal<br />
1 Author 30 Chars<br />
31 Made with 30 Chars<br />
61 Serial Date&Time 8 FP64<br />
69 Split Flag 1 Byte<br />
70 Reserved 1 Byte<br />
71 Program Len 2 Int<br />
73 Start 2 Int<br />
</pre><br />
<br />
=== Code ===<br />
<br />
The Code block is a sequence of (Program Len) blocks as follow:<br />
<br />
<pre><br />
Field Len Data<br />
---------------------------------<br />
0 Command 1 Byte<br />
+1 Mode A / B 1 Byte<br />
+2 Operand A 2 Int<br />
+4 Operand B 2 Int<br />
</pre><br />
<br />
=== Tail ===<br />
<br />
One Byte as a checksum:<br />
<br />
<pre><br />
Field Len Data<br />
---------------------------------<br />
0 CheckByte 1 Byte<br />
---------------------------------<br />
</pre><br />
<br />
== Fields Descriptions ==<br />
<br />
=== Header ===<br />
<br />
<br />
==== Version ID ====<br />
Decimal (Major ver. * 10 + Minor ver.)<br />
Ex: 12 = v1.2<br />
<br />
==== Author ====<br />
Warrior's programmer Name/Nick<br />
<br />
==== Made with ====<br />
Assembler used<br />
<br />
==== Serial Date&Time ====<br />
Floating Point value: Dec * 86400 = seconds from midnight / Int = days from some date<br />
<br />
==== Split Flag ====<br />
0 = No SPL opcode used (program doesn't split)<br />
!0 = Program may use SPL<br />
<br />
==== Reserved ====<br />
Not used<br />
<br />
==== Program Len ====<br />
Instructions count, length of the code block<br />
<br />
==== Start ====<br />
<br />
Point to the instruction where execution start<br />
<br />
<br />
=== Code ===<br />
<br />
==== Command ====<br />
<br />
<pre><br />
0 DAT<br />
1 MOV<br />
2 ADD<br />
3 SUB<br />
4 JMP<br />
5 JMZ<br />
6 JMN<br />
7 DJN<br />
8 CMP<br />
9 (not used)<br />
10 SPL<br />
</pre><br />
<br />
==== Mode A / B ====<br />
<br />
<pre><br />
Field A = low nibble<br />
Field B = high nibble<br />
<br />
0 "#" Immediate<br />
1 "$" Direct<br />
2 "@" Indirect<br />
3 "<" Indirect autodecremented<br />
</pre><br />
<br />
==== Operand A & B ====<br />
<br />
<pre><br />
2 bytes signed integer<br />
</pre><br />
<br />
=== Tail ===<br />
<br />
==== CheckByte ====<br />
Here's how to calc the checksum byte (in [[BASIC]]-like [[pseudocode]]):<br />
<pre><br />
Sum = 0<br />
FOR i = 1 TO BufferLen STEP 1<br />
Sum = Sum + BufferByte(i)<br />
NEXT i<br />
FOR i = 1 TO BufferLen STEP 2<br />
Sum = Sum + BufferByte(i)<br />
NEXT i<br />
FOR i = 1 TO BufferLen STEP 3<br />
Sum = Sum + BufferByte(i)<br />
NEXT i<br />
FOR i = 1 TO BufferLen STEP 4<br />
Sum = Sum + BufferByte(i)<br />
NEXT i<br />
Sum = Sum AND 255<br />
</pre><br />
== External links ==<br />
* [http://mark0.net/soft-xrk-e.html XRK - Extra Redcode Kit]<br />
* [http://en.wikipedia.org/wiki/Core_War Wikipedia: Core War]</div>
Mark0