Page namespace (page_namespace) | 0 |
Page title (without namespace) (page_title) | 'Der Know How Computer' |
Full page title (page_prefixedtitle) | 'Der Know How Computer' |
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) | 'The Know How paper computer, also called the ''WDR papiercomputer'' is a "paper computer" that is meant to be a simulation of a computer using paper, a very small instruction set, and your head to compute it. It was invented by Wolfgang Back and Ulrich Rohde. It was introduced in West German TV and in MC magazine in 1983.
It has four registers, labeled 1 through 4, and five instructions. Here are the list of instructions:
# <code>+ [register]</code>: Adds 1 to the register.
# <code>- [register]</code>: Subtracts 1 to the register.
# <code>J [line]</code>: Jumps to the given line number.
# <code>0 [register]</code>: Checks if the given register is zero. If not zero, it continues like normal. If zero, skips one line ahead of it.
# <code>Stop</code>: Halts program.<br>
Below are some examples of code:
Cleaning the <code>1</code> register: <!-- not my code-->
<pre>
0 1
J 4
STOP
- 1
J 1
</pre>
Adding the first and second registers, and outputting them in the first register: <!-- my code, just realised it's identical to the one in the video-->
<pre>
0 2
J 4
Stop
- 2
+ 1
J 1
</pre>
Multiplication: <!-- not mine either-->
<pre>
0 2
J 4
J 8
- 2
+ 4
+ 1
J 1
0 4
J 11
J 14
- 4
+ 2
J 8
- 3
0 3
J 1
0 2
J 20
STOP
- 2
J 17
</pre>' |
Unified diff of changes made by edit (edit_diff) | '@@ -1,0 +1,54 @@
+The Know How paper computer, also called the ''WDR papiercomputer'' is a "paper computer" that is meant to be a simulation of a computer using paper, a very small instruction set, and your head to compute it. It was invented by Wolfgang Back and Ulrich Rohde. It was introduced in West German TV and in MC magazine in 1983.
+
+It has four registers, labeled 1 through 4, and five instructions. Here are the list of instructions:
+
+# <code>+ [register]</code>: Adds 1 to the register.
+# <code>- [register]</code>: Subtracts 1 to the register.
+# <code>J [line]</code>: Jumps to the given line number.
+# <code>0 [register]</code>: Checks if the given register is zero. If not zero, it continues like normal. If zero, skips one line ahead of it.
+# <code>Stop</code>: Halts program.<br>
+Below are some examples of code:
+
+Cleaning the <code>1</code> register: <!-- not my code-->
+<pre>
+0 1
+J 4
+STOP
+- 1
+J 1
+</pre>
+
+Adding the first and second registers, and outputting them in the first register: <!-- my code, just realised it's identical to the one in the video-->
+<pre>
+0 2
+J 4
+Stop
+- 2
++ 1
+J 1
+</pre>
+
+Multiplication: <!-- not mine either-->
+<pre>
+0 2
+J 4
+J 8
+- 2
++ 4
++ 1
+J 1
+0 4
+J 11
+J 14
+- 4
++ 2
+J 8
+- 3
+0 3
+J 1
+0 2
+J 20
+STOP
+- 2
+J 17
+</pre>
' |
Lines added in edit (added_lines) | [
0 => 'The Know How paper computer, also called the ''WDR papiercomputer'' is a "paper computer" that is meant to be a simulation of a computer using paper, a very small instruction set, and your head to compute it. It was invented by Wolfgang Back and Ulrich Rohde. It was introduced in West German TV and in MC magazine in 1983.',
1 => '',
2 => 'It has four registers, labeled 1 through 4, and five instructions. Here are the list of instructions:',
3 => '',
4 => '# <code>+ [register]</code>: Adds 1 to the register.',
5 => '# <code>- [register]</code>: Subtracts 1 to the register.',
6 => '# <code>J [line]</code>: Jumps to the given line number.',
7 => '# <code>0 [register]</code>: Checks if the given register is zero. If not zero, it continues like normal. If zero, skips one line ahead of it.',
8 => '# <code>Stop</code>: Halts program.<br>',
9 => 'Below are some examples of code:',
10 => '',
11 => 'Cleaning the <code>1</code> register: <!-- not my code-->',
12 => '<pre>',
13 => '0 1',
14 => 'J 4',
15 => 'STOP',
16 => '- 1',
17 => 'J 1',
18 => '</pre>',
19 => '',
20 => 'Adding the first and second registers, and outputting them in the first register: <!-- my code, just realised it's identical to the one in the video-->',
21 => '<pre>',
22 => '0 2',
23 => 'J 4',
24 => 'Stop',
25 => '- 2',
26 => '+ 1',
27 => 'J 1',
28 => '</pre>',
29 => '',
30 => 'Multiplication: <!-- not mine either-->',
31 => '<pre>',
32 => '0 2',
33 => 'J 4',
34 => 'J 8',
35 => '- 2',
36 => '+ 4',
37 => '+ 1',
38 => 'J 1',
39 => '0 4',
40 => 'J 11',
41 => 'J 14',
42 => '- 4',
43 => '+ 2',
44 => 'J 8',
45 => '- 3',
46 => '0 3',
47 => 'J 1',
48 => '0 2',
49 => 'J 20',
50 => 'STOP',
51 => '- 2',
52 => 'J 17',
53 => '</pre>'
] |