<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://turingcomplete.wiki/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AlonzoTG</id>
	<title>Turing Complete - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://turingcomplete.wiki/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AlonzoTG"/>
	<link rel="alternate" type="text/html" href="http://turingcomplete.wiki/wiki/Special:Contributions/AlonzoTG"/>
	<updated>2026-04-21T22:08:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>http://turingcomplete.wiki/w/index.php?title=Talk:State_Machines_-or-_How_to_solve_the_maze_with_2_gates&amp;diff=3370</id>
		<title>Talk:State Machines -or- How to solve the maze with 2 gates</title>
		<link rel="alternate" type="text/html" href="http://turingcomplete.wiki/w/index.php?title=Talk:State_Machines_-or-_How_to_solve_the_maze_with_2_gates&amp;diff=3370"/>
		<updated>2024-01-07T08:16:23Z</updated>

		<summary type="html">&lt;p&gt;AlonzoTG: programatic implementation.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the overture 1 / &amp;quot;Arm&amp;quot; code I got when implementing the solution as a program. My implementation is 791 gates and has a &amp;quot;unary logic unit&amp;quot; which takes a single operand from register 1 and stores to register 3, ignoring register 2. It should be noted that this solution is 24 instructions which is longer than my implementation of the normal algorithm (19 instructions) and performs much worse because the entire code is run at each step where the normal algorithm only executes a fraction of the code at each step. &lt;br /&gt;
&lt;br /&gt;
#input and mask&lt;br /&gt;
in_to_reg2&lt;br /&gt;
2&lt;br /&gt;
reg0_to_reg1&lt;br /&gt;
and&lt;br /&gt;
#compute bits #1 and #2&lt;br /&gt;
reg3_to_reg1&lt;br /&gt;
reg2_to_reg0&lt;br /&gt;
reg5_to_reg2&lt;br /&gt;
or&lt;br /&gt;
reg3_to_reg1&lt;br /&gt;
shl                       &amp;lt;&amp;lt;&amp;lt;&amp;lt; uses the ULU &lt;br /&gt;
reg3_to_reg4&lt;br /&gt;
#compute bit #0&lt;br /&gt;
reg5_to_reg1&lt;br /&gt;
reg0_to_reg2&lt;br /&gt;
nor&lt;br /&gt;
1 &lt;br /&gt;
reg0_to_reg1&lt;br /&gt;
reg3_to_reg2&lt;br /&gt;
and &lt;br /&gt;
# save state&lt;br /&gt;
reg3_to_reg5&lt;br /&gt;
reg4_to_reg2&lt;br /&gt;
reg3_to_reg1&lt;br /&gt;
or&lt;br /&gt;
reg3_to_out&lt;br /&gt;
# return to top &lt;br /&gt;
0&lt;br /&gt;
jump&lt;/div&gt;</summary>
		<author><name>AlonzoTG</name></author>
	</entry>
</feed>