-
Notifications
You must be signed in to change notification settings - Fork 0
/
year30.hrm
36 lines (25 loc) · 940 Bytes
/
year30.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
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 30: String Storage Floor
-- INSTRUCTIONS: "Each thing in the INBOX is an address of a tile on the
-- floor. For each address provided in the INBOX, OUTBOX the requested
-- item from the floor and ALL FOLLOWING items on the floor until you
-- reach a ZERO. Repeat!"
-- AVAILABLE COMMANDS: INBOX, OUTBOX, COPYFROM, COPYTO, ADD, SUB,
-- BUMPUP, BUMPDN, JUMP, JUMPZ, JUMPN, COMMENT
-- SIZE: 7 commands (challenge 7)
-- AVERAGE RUNTIME: 203 steps (challenge 203)
-- Tile 24: Address of the beginning of each "string" to copy
a:
INBOX
COPYTO 24
b:
COPYFROM [24]
JUMPZ a
OUTBOX
BUMPUP 24
JUMP b
DEFINE LABEL 24
eJxTY2Bg6InNTeCN7a+YGJ3ZHR6ptzc88txloDBDUPS12qBowSr/GJ5yl4SmfJvkvdmf0qyznmb/ybqf
21YUl3euXD7vcZti7pperayq6TXJJxediPNZAtL7szpg+c9qhjyzWnfX9/UpOiCx6PzJvmKdk31B7N+T
5oftmbRzWtVkwRUg/rYpRinvpr+OS5+VGeu/+Hk0wygYBaOALgAA1ow95w;
-- vim: set autoindent: