Page namespace (page_namespace) | 0 |
Page title (without namespace) (page_title) | 'Count' |
Full page title (page_prefixedtitle) | 'Count' |
Old content model (old_content_model) | '' |
New content model (new_content_model) | 'wikitext' |
Old page wikitext, before the edit (old_wikitext) | '' |
New page wikitext, after the edit (new_wikitext) | 'Count, or sometimes called The Count, is a stack-based language with 16 commands. Each command is represented by a single hexadecimal digit. This means that a string of code in Count can be thought of as a number represented in hexadecimal read from left to right.
{| class="wikitable"
|-
! Character !! Interpretation
|-
| 0 || Do nothing and move on to the next command.
|-
| 1 || Take an input in the form of an integer and push it onto the stack.
|-
| 2 || Pop and output the top value on the stack
|-
| 3 || Push 0 on to the stack
|-
| 4 || Pop the top value off the stack and increment it then push it back on
|-
| 5 || Pop the top value off the stack and decrement it then push it back on
|-
| 6 || Pop the top value off the stack
|-
| 7 || Pop the top two values off the stack if the second value is greater pop a third value off the stack
|-
| 8 || Pop the top two values x and y off the stack, then push the y back the stack x times.
|-
| 9 || Pop the top two values x and y off the stack, then pop off the next y values and convert them to a number base x(stating at the one's place) and push it back on the stack.
|-
| a || Example
|-
| b || Example
|-
| c || Example
|-
| d || Example
|-
| e || Example
|-
| f || Pop a value off the top of the stack, translate it to hexadecimal and run it as a series of commands.
|}' |
Unified diff of changes made by edit (edit_diff) | '@@ -1,0 +1,38 @@
+Count, or sometimes called The Count, is a stack-based language with 16 commands. Each command is represented by a single hexadecimal digit. This means that a string of code in Count can be thought of as a number represented in hexadecimal read from left to right.
+
+{| class="wikitable"
+|-
+! Character !! Interpretation
+|-
+| 0 || Do nothing and move on to the next command.
+|-
+| 1 || Take an input in the form of an integer and push it onto the stack.
+|-
+| 2 || Pop and output the top value on the stack
+|-
+| 3 || Push 0 on to the stack
+|-
+| 4 || Pop the top value off the stack and increment it then push it back on
+|-
+| 5 || Pop the top value off the stack and decrement it then push it back on
+|-
+| 6 || Pop the top value off the stack
+|-
+| 7 || Pop the top two values off the stack if the second value is greater pop a third value off the stack
+|-
+| 8 || Pop the top two values x and y off the stack, then push the y back the stack x times.
+|-
+| 9 || Pop the top two values x and y off the stack, then pop off the next y values and convert them to a number base x(stating at the one's place) and push it back on the stack.
+|-
+| a || Example
+|-
+| b || Example
+|-
+| c || Example
+|-
+| d || Example
+|-
+| e || Example
+|-
+| f || Pop a value off the top of the stack, translate it to hexadecimal and run it as a series of commands.
+|}
' |
Lines added in edit (added_lines) | [
0 => 'Count, or sometimes called The Count, is a stack-based language with 16 commands. Each command is represented by a single hexadecimal digit. This means that a string of code in Count can be thought of as a number represented in hexadecimal read from left to right.',
1 => '',
2 => '{| class="wikitable"',
3 => '|-',
4 => '! Character !! Interpretation',
5 => '|-',
6 => '| 0 || Do nothing and move on to the next command.',
7 => '|-',
8 => '| 1 || Take an input in the form of an integer and push it onto the stack.',
9 => '|-',
10 => '| 2 || Pop and output the top value on the stack',
11 => '|-',
12 => '| 3 || Push 0 on to the stack',
13 => '|-',
14 => '| 4 || Pop the top value off the stack and increment it then push it back on',
15 => '|-',
16 => '| 5 || Pop the top value off the stack and decrement it then push it back on',
17 => '|-',
18 => '| 6 || Pop the top value off the stack',
19 => '|-',
20 => '| 7 || Pop the top two values off the stack if the second value is greater pop a third value off the stack',
21 => '|-',
22 => '| 8 || Pop the top two values x and y off the stack, then push the y back the stack x times.',
23 => '|-',
24 => '| 9 || Pop the top two values x and y off the stack, then pop off the next y values and convert them to a number base x(stating at the one's place) and push it back on the stack.',
25 => '|-',
26 => '| a || Example',
27 => '|-',
28 => '| b || Example',
29 => '|-',
30 => '| c || Example',
31 => '|-',
32 => '| d || Example',
33 => '|-',
34 => '| e || Example',
35 => '|-',
36 => '| f || Pop a value off the top of the stack, translate it to hexadecimal and run it as a series of commands.',
37 => '|}'
] |