<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=CounterOp</id>
	<title>CounterOp - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://eternity.youfailit.net/index.php?action=history&amp;feed=atom&amp;title=CounterOp"/>
	<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=CounterOp&amp;action=history"/>
	<updated>2026-05-24T03:56:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://eternity.youfailit.net/index.php?title=CounterOp&amp;diff=2492&amp;oldid=prev</id>
		<title>Printz: /* See also */</title>
		<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=CounterOp&amp;diff=2492&amp;oldid=prev"/>
		<updated>2011-01-11T12:31:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;See also&lt;/span&gt;&lt;/span&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 08:31, 11 January 2011&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-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&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;br/&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;br/&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;==See also==&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;==See also==&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;*[[CounterJump]]&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;*[[List of codepointers]]&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;*[[List of codepointers]]&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;*[[SetCounter]]&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;*[[SetCounter]]&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;[[Category:Codepointers]]&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;[[Category:Codepointers]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Printz</name></author>
	</entry>
	<entry>
		<id>https://eternity.youfailit.net/index.php?title=CounterOp&amp;diff=2490&amp;oldid=prev</id>
		<title>Printz: Added</title>
		<link rel="alternate" type="text/html" href="https://eternity.youfailit.net/index.php?title=CounterOp&amp;diff=2490&amp;oldid=prev"/>
		<updated>2011-01-11T12:18:42Z</updated>

		<summary type="html">&lt;p&gt;Added&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;CounterOp&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;operand1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;operand2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;destination&amp;#039;&amp;#039;, &amp;#039;&amp;#039;operation&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
Sets the value of the &amp;#039;&amp;#039;destination&amp;#039;&amp;#039; counter to the &amp;#039;&amp;#039;operation&amp;#039;&amp;#039; between the &amp;#039;&amp;#039;operand1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;operand2&amp;#039;&amp;#039; counters. The two operands and the destination can be identical.&lt;br /&gt;
&lt;br /&gt;
===Arguments===&lt;br /&gt;
*&amp;#039;&amp;#039;operand1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;operand2&amp;#039;&amp;#039;: The counter IDs to operate on (from 0 to 7).&lt;br /&gt;
*&amp;#039;&amp;#039;destination&amp;#039;&amp;#039;: The target counter ID to receive the calculation between the two operands (from 0 to 7).&lt;br /&gt;
*&amp;#039;&amp;#039;operation&amp;#039;&amp;#039;: Can be one of the following keywords or numbers:&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;add&amp;#039;&amp;#039;&amp;#039; (1)&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;sub&amp;#039;&amp;#039;&amp;#039; (2)&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;mul&amp;#039;&amp;#039;&amp;#039; (3)&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;div&amp;#039;&amp;#039;&amp;#039; (4): division. Won&amp;#039;t execute if &amp;#039;&amp;#039;operand2&amp;#039;&amp;#039; = 0.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;mod&amp;#039;&amp;#039;&amp;#039; (5): modulus. Return the remainder of the division. Won&amp;#039;t execute if &amp;#039;&amp;#039;operand2&amp;#039;&amp;#039; &amp;lt;= 0&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; (6): bitwise AND. &lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;or&amp;#039;&amp;#039;&amp;#039; (8): bitwise OR.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;xor&amp;#039;&amp;#039;&amp;#039; (9): bitwise exclusive OR.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;hitdice&amp;#039;&amp;#039;&amp;#039; (12): calculate &amp;#039;&amp;#039;destination&amp;#039;&amp;#039; = &amp;#039;&amp;#039;operand1&amp;#039;&amp;#039; * &amp;#039;&amp;#039;&amp;#039;random&amp;#039;&amp;#039;&amp;#039;(1, &amp;#039;&amp;#039;operand2&amp;#039;&amp;#039;)&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;rshift&amp;#039;&amp;#039;&amp;#039; (13): right shift. Divide &amp;#039;&amp;#039;operand1&amp;#039;&amp;#039; by 2^&amp;#039;&amp;#039;operand2&amp;#039;&amp;#039;.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;lshift&amp;#039;&amp;#039;&amp;#039; (14): left shift. Multiply &amp;#039;&amp;#039;operand1&amp;#039;&amp;#039; by 2^&amp;#039;&amp;#039;operand2&amp;#039;&amp;#039;.&lt;br /&gt;
The following operators are all unary and &amp;#039;&amp;#039;operand2&amp;#039;&amp;#039; will be ignored:&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;abs&amp;#039;&amp;#039;&amp;#039; (15): absolute value.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;negate&amp;#039;&amp;#039;&amp;#039; (16): negative value.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; (17): logical NOT. Return 1 if &amp;#039;&amp;#039;operand1&amp;#039;&amp;#039; is 0, return 0 otherwise.&lt;br /&gt;
:*&amp;#039;&amp;#039;&amp;#039;invert&amp;#039;&amp;#039;&amp;#039; (18): one&amp;#039;s complement (bitwise NOT).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[List of codepointers]]&lt;br /&gt;
*[[SetCounter]]&lt;br /&gt;
[[Category:Codepointers]]&lt;/div&gt;</summary>
		<author><name>Printz</name></author>
	</entry>
</feed>