Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
165 lines (154 sloc) 3.21 KB
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 36-Alphabetizer - SIZE 112/39 - SPEED 32/109 --
-- This solution is level-specific (patterned and quantity-limited input).
-- Based on: 98.34-ocoss.asm
INBOX
COPYTO 0
INBOX
COPYTO 1
INBOX
JUMPZ a
COPYTO 2
INBOX
COPYTO 3
INBOX
JUMPZ b
COPYTO 4
INBOX
COMMENT 1
INBOX
COPYTO 20
SUB 0
JUMPN k
COPYFROM 20
OUTBOX
INBOX
OUTBOX
INBOX
JUMPZ end
COPYTO 20
SUB 2
JUMPZ i
JUMPN k
COPYFROM 2
OUTBOX
g:
COPYFROM 3
OUTBOX
h:
COPYFROM 4
OUTBOX
JUMP end
COMMENT 0
a:
INBOX
COPYTO 20
SUB 0
JUMPN k
COPYFROM 0
OUTBOX
COPYFROM 1
OUTBOX
JUMP end
COMMENT 2
b:
INBOX
COPYTO 20
SUB 0
JUMPZ d
COPYFROM 0
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 2
OUTBOX
COPYFROM 3
OUTBOX
JUMP end
d:
COPYFROM 20
OUTBOX
INBOX
OUTBOX
INBOX
JUMPZ end
COPYTO 20
SUB 2
JUMPZ e
JUMPN k
COPYFROM 2
OUTBOX
COPYFROM 3
OUTBOX
JUMP end
e:
COPYFROM 20
OUTBOX
INBOX
COPYTO 20
SUB 3
JUMPN k
COPYFROM 20
OUTBOX
JUMP end
j:
COPYFROM 20
OUTBOX
INBOX
JUMPZ end
COPYTO 20
COPYFROM 4
SUB 20
JUMPN h
COMMENT 4
k:
COPYFROM 20
OUTBOX
INBOX
JUMPZ end
OUTBOX
INBOX
JUMPZ end
OUTBOX
INBOX
JUMPZ end
OUTBOX
INBOX
INBOX
i:
COPYFROM 20
OUTBOX
INBOX
COPYTO 20
SUB 3
JUMPZ j
JUMPN k
COPYFROM 3
OUTBOX
COPYFROM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