about summary refs log tree commit diff stats
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/linux/advent2017/1a.mu.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/html/linux/advent2017/1a.mu.html b/html/linux/advent2017/1a.mu.html
index 9eed512f..f3579b5d 100644
--- a/html/linux/advent2017/1a.mu.html
+++ b/html/linux/advent2017/1a.mu.html
@@ -29,6 +29,22 @@ body { font-family: monospace; color: #000000; background-color: #a8a8a8; }
 </head>
 <body>
 <pre id='vimCodeElement'>
+<span class="muComment"># Advent of code 2017, problem 1a</span>
+<span class="muComment">#   <a href="https://adventofcode.com/2017/day/1">https://adventofcode.com/2017/day/1</a></span>
+<span class="muComment">#</span>
+<span class="muComment"># Mu solution by Sumeet Agarwal and Kartik Agaram</span>
+<span class="muComment">#   <a href="https://github.com/akkartik/mu/blob/main/linux/advent2017/1a.mu">https://github.com/akkartik/mu/blob/main/linux/advent2017/1a.mu</a></span>
+<span class="muComment">#   <a href="https://archive.org/details/2021-06-02-akkartik-sumeet">https://archive.org/details/2021-06-02-akkartik-sumeet</a></span>
+<span class="muComment">#</span>
+<span class="muComment"># To build on Linux:</span>
+<span class="muComment">#   $ git clone <a href="https://github.com/akkartik/mu">https://github.com/akkartik/mu</a></span>
+<span class="muComment">#   $ cd mu/linux</span>
+<span class="muComment">#   $ ./translate advent2017/1a.mu            # emits a.elf</span>
+<span class="muComment"># To run on Linux:</span>
+<span class="muComment">#   Download <a href="https://adventofcode.com/2017/day/1/input">https://adventofcode.com/2017/day/1/input</a></span>
+<span class="muComment">#   $ ./a.elf &lt; input</span>
+<span class="muComment"># Type in the number returned at <a href="https://adventofcode.com/2017/day/1">https://adventofcode.com/2017/day/1</a></span>
+
 <span class="PreProc">fn</span> <span class="muFunction">main</span><span class="PreProc"> -&gt; </span>_/<span class="muRegEbx">ebx</span>: int <span class="Delimiter">{</span>
   <span class="PreProc">var</span> input_stream: (stream byte <span class="Constant">0x8000</span>)
   <span class="PreProc">var</span> input_stream_addr/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address input_stream