Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
204 lines (186 sloc) 5.84 KB
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 28-Three-Sort - SIZE 96/34 - SPEED 52/78 --
-- This solution is level-specific (patterned and quantity-limited input).
-- The input SHALL consists of 4 tuples, and the first 3 should be in reverse
-- order, the 2nd should be in order.
-- Heavily based on 62.73-AlanDeSmet.asm.
INBOX
COPYTO 0
INBOX
COPYTO 1
INBOX
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 0
OUTBOX
INBOX
OUTBOX
INBOX
OUTBOX
INBOX
OUTBOX
INBOX
COPYTO 0
INBOX
COPYTO 1
SUB 0
JUMPN i
COMMENT 1
INBOX
SUB 0
JUMPN h
COMMENT 7
ADD 0
COPYTO 2
SUB 1
JUMPN g
COMMENT 9
COPYFROM 0
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 2
OUTBOX
JUMP a
g:
COMMENT 8
COPYFROM 0
OUTBOX
COPYFROM 2
OUTBOX
COPYFROM 1
OUTBOX
JUMP a
h:
COMMENT 6
ADD 0
OUTBOX
COPYFROM 0
OUTBOX
COPYFROM 1
OUTBOX
JUMP a
i:
COMMENT 0
INBOX
SUB 1
JUMPN k
COMMENT 3
ADD 1
COPYTO 2
SUB 0
JUMPN j
COMMENT 4
COPYFROM 1
OUTBOX
COPYFROM 0
OUTBOX
COPYFROM 2
OUTBOX
JUMP a
j:
COMMENT 5
COPYFROM 1
OUTBOX
COPYFROM 2
OUTBOX
COPYFROM 0
OUTBOX
JUMP a
k:
COMMENT 2
ADD 1
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 0
OUTBOX
a:
INBOX
COPYTO 0
INBOX
COPYTO 1
SUB 0
JUMPN i
COMMENT 1
INBOX
SUB 0
JUMPN h
COMMENT 7
ADD 0
COPYTO 2
SUB 1
JUMPN g
COMMENT 9
COPYFROM 0
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 2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