-
Notifications
You must be signed in to change notification settings - Fork 0
/
year12-fast.hrm
74 lines (62 loc) · 1.16 KB
/
year12-fast.hrm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 12: Tetracontiplier
-- INSTRUCTIONS: "For each thing in the INBOX, multiply it by 40, and
-- put the result in the OUTBOX."
-- AVAILABLE COMMANDS: INBOX, OUTBOX, COPYFROM, COPYTO, ADD, JUMP
-- SIZE: 52 commands (challenge 14)
-- AVERAGE RUNTIME: 52 steps (challenge 56)
-- There are always exactly four items in the inbox. Multiply each one
-- by 5 and then by 8.
INBOX
COPYTO 0
ADD 0
ADD 0
ADD 0
ADD 0
COPYTO 0
ADD 0
COPYTO 0
ADD 0
COPYTO 0
ADD 0
OUTBOX
INBOX
COPYTO 0
ADD 0
ADD 0
ADD 0
ADD 0
COPYTO 0
ADD 0
COPYTO 0
ADD 0
COPYTO 0
ADD 0
OUTBOX
INBOX
COPYTO 0
ADD 0
ADD 0
ADD 0
ADD 0
COPYTO 0
ADD 0
COPYTO 0
ADD 0
COPYTO 0
ADD 0
OUTBOX
INBOX
COPYTO 0
ADD 0
ADD 0
ADD 0
ADD 0
COPYTO 0
ADD 0
COPYTO 0
ADD 0
COPYTO 0
ADD 0
OUTBOX
-- vim: set autoindent: