Skip to content

Commit

Permalink
Deployed 8e926bc with MkDocs version: 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoRiether committed Jul 27, 2023
1 parent 65c0930 commit ff3b2f3
Show file tree
Hide file tree
Showing 9 changed files with 594 additions and 8 deletions.
15 changes: 15 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,21 @@



<li class="md-nav__item">
<a href="/fpgrars/getting-started/" class="md-nav__link">
Getting Started
</a>
</li>










<li class="md-nav__item">
<a href="/fpgrars/midi/" class="md-nav__link">
MIDI
Expand Down
24 changes: 19 additions & 5 deletions configuration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,21 @@



<li class="md-nav__item">
<a href="../getting-started/" class="md-nav__link">
Getting Started
</a>
</li>










<li class="md-nav__item">
<a href="../midi/" class="md-nav__link">
MIDI
Expand Down Expand Up @@ -375,11 +390,11 @@ <h2 id="command-line-arguments">Command-line arguments</h2>
</span></code></pre></div>
<p>For example, if you want to run FPGRARS without the bitmap display and print
the state of the registers when the program exits, you can use the command </p>
<div class="language-text highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>fpgrars --no-video --print-state file.s
<div class="language-bash highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a>fpgrars<span class="w"> </span>--no-video<span class="w"> </span>--print-state<span class="w"> </span>file.s
</span></code></pre></div>
<p>As another example, if you want the bitmap display to be 1280 x 720 and display
each pixel as a 1x1 square (an actual pixel), you should run</p>
<div class="language-text highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a>fpgrars -w 1280 -h 720 -s 1
<div class="language-bash highlight"><pre><span></span><code><span id="__span-2-1"><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a>fpgrars<span class="w"> </span>-w<span class="w"> </span><span class="m">1280</span><span class="w"> </span>-h<span class="w"> </span><span class="m">720</span><span class="w"> </span>-s<span class="w"> </span><span class="m">1</span>
</span></code></pre></div>
<p>In this case, you probably want to run FPGRARS with this configuration every
time your project is executed. The next section outlines a way to do this.</p>
Expand All @@ -392,14 +407,13 @@ <h2 id="configuration-file-fpgrarstoml">Configuration file (fpgrars.toml)</h2>
</span><span id="__span-3-3"><a id="__codelineno-3-3" name="__codelineno-3-3" href="#__codelineno-3-3"></a>| |- main.s
</span></code></pre></div>
<p>and <code>fpgrars.toml</code> contains the following:</p>
<div class="language-toml highlight"><pre><span></span><code><span id="__span-4-1"><a id="__codelineno-4-1" name="__codelineno-4-1" href="#__codelineno-4-1"></a><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1280</span>
<div class="language-toml highlight"><span class="filename">fpgrars.toml</span><pre><span></span><code><span id="__span-4-1"><a id="__codelineno-4-1" name="__codelineno-4-1" href="#__codelineno-4-1"></a><span class="n">width</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1280</span>
</span><span id="__span-4-2"><a id="__codelineno-4-2" name="__codelineno-4-2" href="#__codelineno-4-2"></a><span class="n">height</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">720</span>
</span><span id="__span-4-3"><a id="__codelineno-4-3" name="__codelineno-4-3" href="#__codelineno-4-3"></a><span class="n">scale</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span>
</span></code></pre></div>
<p>Then, running <code>fpgrars src/main.s</code> is the same as <code>fpgrars --width 1280 --height 720 --scale 1</code>.</p>
<p>You could also specify a default file to run, for example:</p>
<div class="language-toml highlight"><pre><span></span><code><span id="__span-5-1"><a id="__codelineno-5-1" name="__codelineno-5-1" href="#__codelineno-5-1"></a><span class="c1"># fpgrars.toml</span>
</span><span id="__span-5-2"><a id="__codelineno-5-2" name="__codelineno-5-2" href="#__codelineno-5-2"></a><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;src/main.s&quot;</span>
<div class="language-toml highlight"><span class="filename">fpgrars.toml</span><pre><span></span><code><span id="__span-5-1"><a id="__codelineno-5-1" name="__codelineno-5-1" href="#__codelineno-5-1"></a><span class="n">file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;src/main.s&quot;</span>
</span></code></pre></div>
<p>Then, running <code>fpgrars</code> is the same as <code>fpgrars src/main.s</code>.</p>
<p>It's worth noting that you can still pass command-line arguments in addition to
Expand Down
17 changes: 16 additions & 1 deletion ecalls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link rel="prev" href="../configuration/">


<link rel="next" href="../midi/">
<link rel="next" href="../getting-started/">

<link rel="icon" href="../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.4.3, mkdocs-material-9.1.15">
Expand Down Expand Up @@ -248,6 +248,21 @@



<li class="md-nav__item">
<a href="../getting-started/" class="md-nav__link">
Getting Started
</a>
</li>










<li class="md-nav__item">
<a href="../midi/" class="md-nav__link">
MIDI
Expand Down
Loading

0 comments on commit ff3b2f3

Please sign in to comment.