Skip to content

Commit

Permalink
fix gcc instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmeiners committed Mar 26, 2022
1 parent cb5989a commit c37e3ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1318,12 +1318,13 @@ <h2>13. Running the VM<a id="s0:12"></a></h2>
<p>You can now build and run the LC-3 VM!</p>

<ol>
<li><p>Compile your program] with your favorite C compiler.
<li><p>Compile the VM with your favorite C compiler.
(Final source for <a href="src/lc3.c">unix</a>, <a href="src/lc3-win.c">windows</a>).</p>

<p>For gcc: <code>$ gcc lc3.c -o lc3</code></p></li>
<pre><code> $ gcc lc3.c -o lc3-vm
</code></pre></li>
<li><p>Download the assembled version of <a href="supplies/2048.obj">2048</a> or <a href="supplies/rogue.obj">Rogue</a>.</p></li>
<li><p>Run the program with the obj file as an argument:</p>
<li><p>Run the VM with the .obj file as an argument:</p>

<pre><code> $ lc3-vm path/to/2048.obj
</code></pre></li>
Expand Down
6 changes: 3 additions & 3 deletions index.lit
Original file line number Diff line number Diff line change
Expand Up @@ -1053,13 +1053,13 @@ HANDLE hStdin = INVALID_HANDLE_VALUE;

You can now build and run the LC-3 VM!

1. Compile your program] with your favorite C compiler.
1. Compile the VM with your favorite C compiler.
(Final source for [unix](src/lc3.c), [windows](src/lc3-win.c)).

For gcc: `$ gcc lc3.c -o lc3`
$ gcc lc3.c -o lc3-vm

2. Download the assembled version of [2048](supplies/2048.obj) or [Rogue](supplies/rogue.obj).
3. Run the program with the obj file as an argument:
3. Run the VM with the .obj file as an argument:

$ lc3-vm path/to/2048.obj

Expand Down

0 comments on commit c37e3ac

Please sign in to comment.