Skip to content

Commit

Permalink
regenerated table of contents using latest srcweave
Browse files Browse the repository at this point in the history
  • Loading branch information
rpendleton committed Jan 2, 2024
1 parent 54ac220 commit 2713659
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,22 @@ <h1>Write your Own Virtual Machine<a id="c0"></a></h1>
<p>The final code is about 250 lines of C (<a href="src/lc3.c">unix</a>, <a href="src/lc3-win.c">windows</a>).
All you need to know is how to read basic C or C++ and how to do <a href="https://www.swarthmore.edu/NatSci/echeeve1/Ref/BinaryMath/BinaryMath.html">binary arithmetic</a>.</p>

<ol><li><a href="#s0:0">What is a virtual machine?</a></li><li><a href="#s0:1">LC-3 architecture</a></li><li><a href="#s0:2">Assembly examples</a></li><li><a href="#s0:3">Executing programs</a></li><li><a href="#s0:4">Implementing instructions</a></li><li><a href="#s0:5">Instruction cheat sheet</a></li><li><a href="#s0:6">Trap routines</a></li><li><a href="#s0:7">Trap routine cheat sheet</a></li><li><a href="#s0:8">Loading programs</a></li><li><a href="#s0:9">Memory mapped registers</a></li><li><a href="#s0:10">Platform specifics</a></li><li><a href="#s0:11">Running the VM</a></li><li><a href="#s0:12">Alternate C++ technique</a></li><li><a href="#s0:13">Contributions</a></li></ol>
<ol>
<li><a href="#s0:0">What is a virtual machine?</a></li>
<li><a href="#s0:1">LC-3 architecture</a></li>
<li><a href="#s0:2">Assembly examples</a></li>
<li><a href="#s0:3">Executing programs</a></li>
<li><a href="#s0:4">Implementing instructions</a></li>
<li><a href="#s0:5">Instruction cheat sheet</a></li>
<li><a href="#s0:6">Trap routines</a></li>
<li><a href="#s0:7">Trap routine cheat sheet</a></li>
<li><a href="#s0:8">Loading programs</a></li>
<li><a href="#s0:9">Memory mapped registers</a></li>
<li><a href="#s0:10">Platform specifics</a></li>
<li><a href="#s0:11">Running the VM</a></li>
<li><a href="#s0:12">Alternate C++ technique</a></li>
<li><a href="#s0:13">Contributions</a></li>
</ol>


<blockquote><p><strong>Note:</strong> This tutorial is a <a href="https://en.wikipedia.org/wiki/Literate_programming">literate program</a>.
Expand Down

0 comments on commit 2713659

Please sign in to comment.