about summary refs log tree commit diff stats
path: root/linux
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-06-15 20:50:55 -0700
committerKartik Agaram <vc@akkartik.com>2021-06-15 20:50:55 -0700
commit10687ed8bb77ab5d07ccae7c7285e78302a66370 (patch)
treed1fdd3ff2a7e4c26e4f8d01189940f00bf683050 /linux
parent6515bace46c558739d0bf280da2c95569e12beca (diff)
downloadmu-10687ed8bb77ab5d07ccae7c7285e78302a66370.tar.gz
.
Diffstat (limited to 'linux')
-rw-r--r--linux/advent2017/1a.mu16
1 files changed, 16 insertions, 0 deletions
diff --git a/linux/advent2017/1a.mu b/linux/advent2017/1a.mu
index e2541441..4ce92c9d 100644
--- a/linux/advent2017/1a.mu
+++ b/linux/advent2017/1a.mu
@@ -1,3 +1,19 @@
+# Advent of code 2017, problem 1a
+#   https://adventofcode.com/2017/day/1
+#
+# Mu solution by Sumeet Agarwal and Kartik Agaram
+#   https://github.com/akkartik/mu/blob/main/linux/advent2017/1a.mu
+#   https://archive.org/details/2021-06-02-akkartik-sumeet
+#
+# To build on Linux:
+#   $ git clone https://github.com/akkartik/mu
+#   $ cd mu/linux
+#   $ ./translate advent2017/1a.mu            # emits a.elf
+# To run on Linux:
+#   Download https://adventofcode.com/2017/day/1/input
+#   $ ./a.elf < input
+# Type in the number returned at https://adventofcode.com/2017/day/1
+
 fn main -> _/ebx: int {
   var input_stream: (stream byte 0x8000)
   var input_stream_addr/esi: (addr stream byte) <- address input_stream