From 74bc598c44eded1e881339d55ade3991e29bd10f Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 1 Dec 2020 01:16:23 -0800 Subject: 7316 --- apps/advent2020/1a.mu | 13 +++++++++++++ apps/advent2020/1b.mu | 13 +++++++++++++ 2 files changed, 26 insertions(+) (limited to 'apps') 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 -- cgit 1.4.1-2-gfad0