<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Feynman on Finite Ape</title>
    <link>https://finiteape.com/tags/feynman/</link>
    <description>Recent content in Feynman on Finite Ape</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 11 Jun 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://finiteape.com/tags/feynman/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Feynman Lectures on Computation: Solutions</title>
      <link>https://finiteape.com/posts/feynman-lectures-computation-problems/</link>
      <pubDate>Wed, 11 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://finiteape.com/posts/feynman-lectures-computation-problems/</guid>
      <description>&lt;p&gt;Before we start, please note that these are &lt;em&gt;my&lt;/em&gt; solutions, not &lt;em&gt;the&lt;/em&gt; solutions.&lt;/p&gt;&#xA;&lt;h2 id=&#34;chapter-1&#34;&gt;Chapter 1&lt;/h2&gt;&#xA;&lt;p&gt;For future reference:&lt;/p&gt;&#xA;&lt;p&gt;Available on the pad:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Registers: A, B, X (general purpose), C (carry bit), PC (program counter)&lt;/li&gt;&#xA;&lt;li&gt;Memory locations: M (general memory addresses), &amp;ldquo;instruction file cabinet&amp;rdquo;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Available Instructions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Data Transfer: $A \leftarrow (M)$, $M \leftarrow (A)$, $B \leftarrow (M)$, $M \leftarrow (B)$, $X \leftarrow (B)$, $B \leftarrow (X)$, $PC \leftarrow (X)$, $X \leftarrow (PC)$&lt;/li&gt;&#xA;&lt;li&gt;Arithmetic: $A \leftarrow 0$ (Clear A), $A \leftarrow (A) + (B)$ (Add), $A \leftarrow (A) + 1$ (Increment), $A \leftarrow (A) - 1$ (Decrement)&lt;/li&gt;&#xA;&lt;li&gt;Bit Operations: Shift Left A, Shift Right A&lt;/li&gt;&#xA;&lt;li&gt;Logical: $A \leftarrow (A) \land (B)$ (AND), $A \leftarrow (A) \lor (B)$ (OR), $A \leftarrow (A) \oplus (B)$ (XOR)&lt;/li&gt;&#xA;&lt;li&gt;Direct Load: $B \leftarrow N$ (load constant N), $M \leftarrow 0$ (Clear memory location)&lt;/li&gt;&#xA;&lt;li&gt;Control Flow: $PC \leftarrow (Z)$ (Jump), $PC \leftarrow (Z)$ if $C=1$ (Conditional Jump), $PC \leftarrow (PC) + (Z)$ (Relative Jump)&lt;/li&gt;&#xA;&lt;li&gt;Special: Halt&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;NB: In what follows, I am a bit more liberal with the instructions. I sometimes shift $X$ instead of $A$, etc.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
