diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/advent2020/1a.mu | 13 | ||||
-rw-r--r-- | apps/advent2020/1b.mu | 13 |
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 |