Skip to content

Commit

Permalink
Merge pull request #341 from CS-icez/main
Browse files Browse the repository at this point in the history
Faster non-specific solutions for mission 23,24,26,36
  • Loading branch information
atesgoral authored Aug 20, 2023
2 parents 4d1631f + 1800d6f commit c24b71a
Show file tree
Hide file tree
Showing 4 changed files with 343 additions and 0 deletions.
65 changes: 65 additions & 0 deletions solutions/23-The-Littlest-Number-13.75/43.63-icez.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 23-The-Littlest-Number - SIZE 43/13 - SPEED 63/75 --

INBOX
COPYTO 0
a:
b:
c:
INBOX
JUMPZ l
SUB 0
JUMPN d
INBOX
JUMPZ n
SUB 0
JUMPN f
JUMP b
d:
e:
f:
g:
h:
i:
j:
k:
ADD 0
COPYTO 0
INBOX
JUMPZ p
SUB 0
JUMPN h
INBOX
JUMPZ q
SUB 0
JUMPN i
INBOX
JUMPZ r
SUB 0
JUMPN j
INBOX
JUMPZ s
SUB 0
JUMPN k
JUMP a
l:
m:
n:
o:
p:
q:
r:
s:
COPYFROM 0
OUTBOX
INBOX
COPYTO 0
INBOX
JUMPZ m
SUB 0
JUMPN e
INBOX
JUMPZ o
SUB 0
JUMPN g
JUMP c
48 changes: 48 additions & 0 deletions solutions/24-Mod-Module-12.57/32.44-icez.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 24-Mod-Module - SIZE 32/12 - SPEED 44/57 --

INBOX
COPYTO 0
INBOX
COPYTO 1
COPYFROM 0
a:
b:
SUB 1
JUMPN c
SUB 1
JUMPN d
SUB 1
JUMPN e
SUB 1
JUMPN f
JUMP a
c:
d:
e:
f:
g:
h:
i:
j:
k:
ADD 1
OUTBOX
INBOX
COPYTO 0
INBOX
COPYTO 1
COPYFROM 0
SUB 1
JUMPN g
SUB 1
JUMPN h
SUB 1
JUMPN i
SUB 1
JUMPN j
SUB 1
JUMPN k
JUMP b


144 changes: 144 additions & 0 deletions solutions/26-Small-Divide-15.76/99.46-icez.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 26-Small-Divide - SIZE 99/15 - SPEED 46/76 --
-- Based on 39.52.unroll-viamodulo.asm, more code for faster speed.

a:
INBOX
b:
COPYTO 0
INBOX
COPYTO 1
COPYFROM 0
SUB 1
JUMPN s
SUB 1
JUMPN o
SUB 1
JUMPN k
SUB 1
JUMPN g
SUB 1
JUMPN c
JUMP y
c:
d:
e:
f:
BUMPUP 9
g:
h:
i:
j:
BUMPUP 9
k:
l:
m:
n:
BUMPUP 9
BUMPUP 9
OUTBOX
INBOX
COPYTO 0
INBOX
COPYTO 1
SUB 1
COPYTO 9
COPYFROM 0
SUB 1
JUMPN u
SUB 1
JUMPN q
SUB 1
JUMPN l
SUB 1
JUMPN i
SUB 1
JUMPN d
JUMP aa
o:
p:
q:
r:
BUMPUP 9
OUTBOX
BUMPDN 9
INBOX
JUMPZ x
COPYTO 0
INBOX
COPYTO 1
COPYFROM 0
SUB 1
JUMPN v
SUB 1
JUMPN r
SUB 1
JUMPN n
SUB 1
JUMPN j
SUB 1
JUMPN f
JUMP ab
s:
t:
u:
v:
COPYFROM 9
OUTBOX
INBOX
JUMPZ w
COPYTO 0
INBOX
COPYTO 1
COPYFROM 0
SUB 1
JUMPN t
SUB 1
JUMPN p
SUB 1
JUMPN m
SUB 1
JUMPN h
SUB 1
JUMPN e
JUMP z
w:
x:
OUTBOX
INBOX
INBOX
JUMP b
y:
z:
aa:
ab:
COMMENT 0
COPYTO 0
COPYFROM 9
COPYTO 2
BUMPUP 2
BUMPUP 2
BUMPUP 2
BUMPUP 2
BUMPUP 2
ac:
COPYFROM 0
SUB 1
JUMPN ad
COPYTO 0
BUMPUP 2
JUMP ac
ad:
COPYFROM 2
OUTBOX
JUMP a


DEFINE COMMENT 0
eJxLZmBgUJJ6njJT6tNSAenqlZYyT1fxajxdFaAnuAIoxRBi+CH4rsH0yLsG3e1sRgfnsBnlrQOJb7Xv
z7plq1V62PpFr5nlxD0gsQiXdTk7gyTypoRwF58PmdsnGyK32CCYZS1Izj31TcHj5NKSoLjCiWJx/xdM
TNy5dmpK4uZXmYmbg/IMVoHU3Kntz7Kt0SoVqOhYcrU8cbN3xbztIPHsBfqNyxbIVn2Zr1W6o/9AcX+f
Z3l/n03N0gnxXXsmsU/YP9Vrwazps1arTL+xPnrKmk2lnS+3hTe+3AbS67n009Jbq46tyN5wbAX3JsEV
xdsezEvYPmFywvYnjcXbPtbs3cRdrLM2rEhluU2N4pJrbY2L2Ce4LcpcdGCp08aqNan7b+9iOHVmH8Mp
5/3lx0Dm8VzSnqd79tcUteO/psQeOTd91/7/C6T2xSzftuf7xm173PYu3mt5yHn/oaOrD2899fgCw6l9
l3SOe1/9vXfDtRvrN1yrahC54RMlcoPVTu26uGvSdcnpN67LLf5858ctvbuTnjKMglEwAAAAgjW+RQ;
86 changes: 86 additions & 0 deletions solutions/36-Alphabetizer-39.109/63.55-icez.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 36-Alphabetizer - SIZE 63/39 - SPEED 55/109 --

a:
INBOX
COPYTO [23]
JUMPZ b
BUMPUP 23
INBOX
COPYTO [23]
JUMPZ c
BUMPUP 23
INBOX
COPYTO [23]
JUMPZ d
BUMPUP 23
INBOX
COPYTO [23]
JUMPZ e
BUMPUP 23
INBOX
COPYTO [23]
JUMPZ f
BUMPUP 23
INBOX
COPYTO [23]
JUMPZ g
BUMPUP 23
JUMP a
b:
c:
d:
e:
f:
g:
COPYTO 20
INBOX
COPYTO 10
SUB [20]
JUMPZ h
JUMPN m
JUMP j
h:
COPYFROM [20]
OUTBOX
BUMPUP 20
i:
INBOX
COPYTO 10
JUMPZ r
SUB [20]
JUMPZ o
JUMPN l
j:
k:
COPYFROM [20]
JUMPZ q
OUTBOX
BUMPUP 20
COPYFROM [20]
JUMPZ t
OUTBOX
BUMPUP 20
JUMP k
l:
m:
COPYFROM 10
n:
OUTBOX
INBOX
JUMPZ p
OUTBOX
INBOX
JUMPZ s
JUMP n
o:
COPYFROM [20]
OUTBOX
BUMPUP 20
SUB 23
JUMPN i
p:
q:
r:
s:
t:

0 comments on commit c24b71a

Please sign in to comment.