Skip to content

Instantly share code, notes, and snippets.

@garethlewin
Last active Jun 10, 2016
Embed
What would you like to do?

Pretty ugly solution, relies on knowledge about the data. Works.

-- HUMAN RESOURCE MACHINE PROGRAM --
COPYFROM 9
COPYTO 0
BUMPUP 0
ADD 0
COPYTO 1
ADD 0
COPYTO 2
ADD 1
COPYTO 3
ADD 2
COPYTO 4
ADD 3
COPYTO 5
ADD 4
COPYTO 6
a:
b:
c:
d:
e:
f:
g:
h:
INBOX
COPYTO 9
SUB 0
JUMPN a
COPYFROM 0
OUTBOX
COPYFROM 0
OUTBOX
COPYFROM 9
SUB 1
JUMPN b
COPYFROM 1
OUTBOX
COPYFROM 9
SUB 2
JUMPN c
COPYFROM 2
OUTBOX
COPYFROM 9
SUB 3
JUMPN d
COPYFROM 3
OUTBOX
COPYFROM 9
SUB 4
JUMPN e
COPYFROM 4
OUTBOX
COPYFROM 9
SUB 5
JUMPN g
COPYFROM 5
OUTBOX
COPYFROM 9
SUB 6
JUMPN h
COPYFROM 6
OUTBOX
JUMP f
@mg6maciej
Copy link

mg6maciej commented May 8, 2016

Which level is this?

@garethlewin
Copy link
Author

garethlewin commented Jun 10, 2016

level 22, it says it in the filename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment