about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-12-01 01:16:23 -0800
committerKartik Agaram <vc@akkartik.com>2020-12-01 01:19:07 -0800
commit74bc598c44eded1e881339d55ade3991e29bd10f (patch)
tree37292eb08dd6a47f33f696712793426f8d80ee87 /apps
parent3d291822ca22f73aa5b4c3a9ed7d107513a2f7bc (diff)
downloadmu-74bc598c44eded1e881339d55ade3991e29bd10f.tar.gz
7316
Diffstat (limited to 'apps')
-rw-r--r--apps/advent2020/1a.mu13
-rw-r--r--apps/advent2020/1b.mu13
2 files changed, 26 insertions, 0 deletions
diff --git a/apps/advent2020/1a.mu b/apps/advent2020/1a.mu
index 45bb5bd2..05aa58bf 100644
--- a/apps/advent2020/1a.mu
+++ b/apps/advent2020/1a.mu
@@ -1,3 +1,16 @@
+# https://adventofcode.com/2020/day/1
+#
+# To run (on Linux):
+#   $ git clone https://github.com/akkartik/mu
+#   $ cd mu
+#   $ ./translate_mu apps/advent2020/1a.mu
+#   $ ./a.elf < input
+#   found
+#   1353 667
+#   902451
+#
+# You'll need to register to download the 'input' file for yourself.
+
 fn main -> _/ebx: int {
   # data structure
   var numbers-storage: (array int 0x100)  # 256 ints
diff --git a/apps/advent2020/1b.mu b/apps/advent2020/1b.mu
index 14119172..aa2d21f1 100644
--- a/apps/advent2020/1b.mu
+++ b/apps/advent2020/1b.mu
@@ -1,3 +1,16 @@
+# https://adventofcode.com/2020/day/1
+#
+# To run (on Linux):
+#   $ git clone https://github.com/akkartik/mu
+#   $ cd mu
+#   $ ./translate_mu apps/advent2020/1b.mu
+#   $ ./a.elf < input
+#   found
+#   143 407 1470
+#   85555470
+#
+# You'll need to register to download the 'input' file for yourself.
+
 fn main -> _/ebx: int {
   # data structure
   var numbers-storage: (array int 0x100)  # 256 ints