分类 游戏 下的文章

程序员升职记

Human Resource Machine

https://steamcommunity.com/sharedfiles/filedetails/?id=550015574
收发室

    INBOX   
    OUTBOX  
    INBOX   
    OUTBOX  
    INBOX   
    OUTBOX  

繁忙的收发室

a:  INBOX   
    OUTBOX  
    JUMP     a
a:  INBOX   
    OUTBOX  
    INBOX   
    OUTBOX  
    JUMP     a

复印楼层

    COPYFROM 4
    OUTBOX  
    COPYFROM 0
    OUTBOX  
    COPYFROM 3
    OUTBOX  

扰码处理器

a:  INBOX   
    COPYTO   0
    INBOX   
    OUTBOX  
    COPYFROM 0
    OUTBOX  
    JUMP     a

咖啡时间
多雨之夏

a:  INBOX   
    COPYTO   0
    INBOX   
    ADD      0
    OUTBOX  
    JUMP     a

零扑灭运动

a:
b:  INBOX   
    JUMPZ    b
    OUTBOX  
    JUMP     a

三倍扩大室

a:  INBOX   
    COPYTO   0
    ADD      0
    ADD      0
    OUTBOX  
    JUMP     a

零保护行动

    JUMP     b
a:  OUTBOX  
b:
c:  INBOX   
    JUMPZ    a
    JUMP     c

八倍扩大装置

a:  INBOX   
    COPYTO   0
    ADD      0
    COPYTO   0
    ADD      0
    COPYTO   0
    ADD      0
    OUTBOX  
    JUMP     a

加运算走廊

a:  INBOX   
    COPYTO   0
    INBOX   
    COPYTO   1
    SUB      0
    OUTBOX  
    COPYFROM 0
    SUB      1
    OUTBOX  
    JUMP     a

四十倍扩大器

a:  INBOX   
    COPYTO   0
    ADD      0
    COPYTO   0
    ADD      0
    COPYTO   0
    ADD      0
    COPYTO   0
    ADD      0
    COPYTO   1
    ADD      0
    ADD      1
    OUTBOX  
    JUMP     a

均衡之间

    JUMP     b
a:  COPYFROM 0
    OUTBOX  
b:
c:  INBOX   
    COPYTO   0
    INBOX   
    SUB      0
    JUMPZ    a
    JUMP     c

最大值室

    JUMP     c
a:  COPYFROM 0
b:  OUTBOX  
c:  INBOX   
    COPYTO   0
    INBOX   
    SUB      0
    JUMPN    a
    ADD      0
    JUMP     b

斗志注入
绝对正能量

    JUMP     c
a:  COPYTO   0
    SUB      0
    SUB      0
b:  OUTBOX  
c:  INBOX   
    JUMPN    a
    JUMP     b

专属休息室

a:
b:  INBOX   
    JUMPN    d
    INBOX   
    JUMPN    e
c:  COPYFROM 4
    OUTBOX  
    JUMP     b
d:  INBOX   
    JUMPN    c
e:  COPYFROM 5
    OUTBOX  
    JUMP     a

海滩天堂
计时器

a:  INBOX   
    COPYTO   0
b:
c:  OUTBOX  
    BUMPDN   0
    JUMPN    d
    JUMP     c
d:  BUMPUP   0
    JUMPZ    a
    BUMPUP   0
    JUMP     b
    JUMP     d
a:
b:
c:  OUTBOX  
d:  INBOX   
    JUMPN    f
    JUMPZ    a
    COPYTO   0
    OUTBOX  
e:  BUMPDN   0
    JUMPZ    c
    OUTBOX  
    JUMP     e
f:  COPYTO   0
    OUTBOX  
g:  BUMPUP   0
    JUMPZ    b
    OUTBOX  
    JUMP     g

乘法研讨会

    JUMP     b
a:  COPYFROM 0
    OUTBOX  
b:  COPYFROM 9
    COPYTO   0
    INBOX   
    COPYTO   1
    INBOX   
    COPYTO   2
c:  JUMPZ    a
    COPYFROM 0
    ADD      1
    COPYTO   0
    BUMPDN   2
    JUMP     c
    BUMPUP   9
    JUMP     k
a:  ADD      1
b:  ADD      1
c:  ADD      1
d:  ADD      1
e:  ADD      1
f:  ADD      1
g:  ADD      1
h:  ADD      1
i:  ADD      1
j:  OUTBOX  
k:  INBOX   
    COPYTO   1
    INBOX   
    JUMPZ    j
    SUB      9
    JUMPZ    i
    SUB      9
    JUMPZ    h
    SUB      9
    JUMPZ    g
    SUB      9
    JUMPZ    f
    SUB      9
    JUMPZ    e
    SUB      9
    JUMPZ    d
    SUB      9
    JUMPZ    c
    SUB      9
    JUMPZ    b
    SUB      9
    JUMP     a

零结尾字符串

    JUMP     c
a:  ADD      0
b:  OUTBOX  
c:  INBOX   
    JUMPZ    b
d:  COPYTO   0
    INBOX   
    JUMPZ    a
    ADD      0
    JUMP     d

斐波那契参上

a:  INBOX   
    COPYTO   0
    COPYFROM 9
    COPYTO   1
    COPYTO   2
    BUMPUP   1
b:  ADD      2
    COPYTO   3
    COPYFROM 0
    SUB      1
    JUMPN    a
    COPYFROM 1
    OUTBOX  
    COPYFROM 1
    COPYTO   2
    COPYFROM 3
    COPYTO   1
    JUMP     b
a:  INBOX   
    COPYTO   0
    COPYFROM 9
    COPYTO   1
    COPYTO   2
    BUMPUP   1
    OUTBOX  
    COPYFROM 1
b:  ADD      2
    COPYTO   3
    COPYFROM 0
    SUB      3
    JUMPN    a
    COPYFROM 3
    OUTBOX  
    COPYFROM 1
    COPYTO   2
    COPYFROM 3
    COPYTO   1
    JUMP     b

最小的数字

    JUMP     b
a:  COPYFROM 0
    OUTBOX  
b:  INBOX   
    JUMP     d
c:  ADD      0
d:  COPYTO   0
e:  INBOX   
    JUMPZ    a
    SUB      0
    JUMPN    c
    JUMP     e

模运算

    JUMP     c
a:  ADD      1
b:  OUTBOX  
c:  INBOX   
    COPYTO   0
    INBOX   
    COPYTO   1
    COPYFROM 0
d:  SUB      1
    JUMPZ    b
    JUMPN    a
    JUMP     d

累加的倒计时

    JUMP     c
a:  COPYFROM 0
b:  OUTBOX  
c:  INBOX   
    JUMPZ    b
    COPYTO   1
d:  COPYTO   0
    BUMPDN   1
    JUMPZ    a
    ADD      0
    JUMP     d

小试除法

    JUMP     b
a:  COPYFROM 3
    OUTBOX  
b:  COPYFROM 9
    COPYTO   3
    INBOX   
    COPYTO   0
    INBOX   
    COPYTO   1
c:  COPYFROM 0
    SUB      1
    JUMPN    a
    COPYTO   0
    BUMPUP   3
    JUMP     c

午夜惊魂
三排序

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

存储楼层

a:  NBOX   
    COPYTO   12
    COPYFROM [12]
    OUTBOX  
    JUMP     a

串存储楼层

a:  INBOX   
    COPYTO   24
b:  COPYFROM [24]
    JUMPZ    a
    OUTBOX  
    BUMPUP   24
    JUMP     b

反转字符串

a:
b:  INBOX   
    JUMPZ    c
    COPYTO   [14]
    BUMPUP   14
    JUMP     b
c:
d:  BUMPDN   14
    COPYFROM [14]
    OUTBOX  
    COPYFROM 14
    JUMPZ    a
    JUMP     d

库存报告

    BUMPUP   14
    BUMPUP   14
    COPYTO   15
    ADD      14
    COPYTO   16
    JUMP     d
a:  ADD      16
b:  ADD      14
c:  OUTBOX  
d:  INBOX   
    SUB      4
    JUMPN    a
    JUMPZ    b
    BUMPUP   15
    JUMP     c

王五去哪
删除元音字母

    JUMP     b
a:  COPYFROM 9
    OUTBOX  
b:
c:  INBOX   
    COPYTO   9
    COPYFROM 5
    COPYTO   6
d:  COPYFROM [6]
    JUMPZ    a
    SUB      9
    JUMPZ    c
    BUMPUP   6
    JUMP     d

删除重复项

    INBOX   
    JUMP     b
a:  BUMPUP   14
    COPYFROM 12
b:  COPYTO   [14]
    OUTBOX  
c:  COPYFROM 14
    COPYTO   13
    INBOX   
    COPYTO   12
d:  SUB      [13]
    JUMPZ    c
    BUMPDN   13
    JUMPN    a
    COPYFROM 12
    JUMP     d

字母排序

a:  INBOX   
    COPYTO   [23]
    JUMPZ    b
    BUMPUP   23
    JUMP     a
b:  COPYTO   22
c:  INBOX   
    JUMPZ    h
    COPYTO   20
    SUB      [22]
    JUMPZ    g
    JUMPN    e
d:  COPYFROM [22]
    JUMPZ    i
    OUTBOX  
    BUMPUP   22
    JUMP     d
e:  COPYFROM 20
f:  OUTBOX  
    INBOX   
    JUMPZ    j
    JUMP     f
g:  COPYFROM 20
    OUTBOX  
    BUMPUP   22
    SUB      23
    JUMPN    c
h:
i:
j:

数据链

a:  INBOX   
b:  COPYTO   12
    COPYFROM [12]
    OUTBOX  
    BUMPUP   12
    COPYFROM [12]
    JUMPN    a
    JUMP     b

数位炸弹

-- HUMAN RESOURCE MACHINE PROGRAM --

    COPYFROM 11
    ADD      11
    COPYTO   8
    COPYFROM 10
    ADD      10
    COPYTO   7
    JUMP     e
a:  ADD      10
    JUMPN    b
    COPYTO   0
    BUMPUP   1
b:  COPYFROM 2
    JUMPZ    c
    OUTBOX  
c:  COPYFROM 1
    OUTBOX  
d:  COPYFROM 0
    OUTBOX  
e:  INBOX   
    COPYTO   0
    SUB      10
    JUMPN    d
    COPYFROM 9
    COPYTO   1
    COPYTO   2
f:  COPYFROM 0
    SUB      8
    JUMPN    g
    COPYTO   0
    BUMPUP   2
    BUMPUP   2
    JUMP     f
g:  ADD      11
    JUMPN    h
    COPYTO   0
    BUMPUP   2
h:
i:  COPYFROM 0
    SUB      7
    JUMPN    a
    COPYTO   0
    BUMPUP   1
    BUMPUP   1
    JUMP     i
-- HUMAN RESOURCE MACHINE PROGRAM --

a:  COPYFROM 9
    COPYTO   0
    COPYTO   1
    INBOX   
    COPYTO   8
    SUB      10
    JUMPN    g
    ADD      10
    SUB      11
    JUMPN    d
b:  COPYFROM 8
    SUB      11
    JUMPN    c
    COPYTO   8
    BUMPUP   0
    JUMP     b
c:  COPYFROM 0
    OUTBOX  
d:
e:  COPYFROM 8
    SUB      10
    JUMPN    f
    COPYTO   8
    BUMPUP   1
    JUMP     e
f:  COPYFROM 1
    OUTBOX  
g:  COPYFROM 8
    OUTBOX  
    JUMP     a

重设坐标

    JUMP     b
a:  ADD      15
    OUTBOX  
    COPYFROM 1
    OUTBOX  
b:  COPYFROM 14
    COPYTO   1
    INBOX   
c:  SUB      15
    JUMPN    a
    COPYTO   0
    BUMPUP   1
    COPYFROM 0
    JUMP     c

质数工厂

a:
b:  INBOX   
    COPYTO   10
    COPYFROM 24
    COPYTO   22
    BUMPUP   22
    COPYTO   1
c:  BUMPUP   1
d:  COPYFROM 24
    COPYTO   12
    SUB      10
e:  COPYTO   11
    BUMPUP   12
    COPYFROM 11
    ADD      1
    JUMPN    e
    JUMPZ    f
    BUMPDN   22
    JUMPZ    c
    COPYFROM 10
    OUTBOX  
    JUMP     b
f:  COPYFROM 1
    OUTBOX  
    BUMPDN   12
    JUMPZ    a
    BUMPUP   12
    COPYTO   10
    JUMP     d

排序楼层

    JUMP     b
a:  BUMPUP   24
b:  BUMPDN   24
c:
d:
e:  BUMPUP   24
    COPYTO   22
    COPYTO   21
    INBOX   
    JUMPZ    g
    COPYTO   20
    COPYTO   [22]
    BUMPDN   21
    JUMPN    c
f:  COPYFROM 20
    SUB      [21]
    JUMPN    e
    COPYFROM [21]
    COPYTO   [22]
    COPYFROM 20
    COPYTO   [21]
    BUMPDN   22
    BUMPDN   21
    JUMPN    d
    JUMP     f
g:
h:  BUMPDN   24
    JUMPN    a
    COPYFROM [24]
    OUTBOX  
    JUMP     h

最终程序

成就 1

INBOX   
COPYTO   0
INBOX   
COPYTO   1
SUB      0
OUTBOX  
COPYFROM 0
SUB      1
OUTBOX  
INBOX   
COPYTO   0
INBOX   
COPYTO   1
SUB      0
OUTBOX  
COPYFROM 0
SUB      1
OUTBOX  

INBOX   
COPYTO   0
INBOX   
COPYTO   1
SUB      0
OUTBOX  
COPYFROM 0
SUB      1
OUTBOX  

INBOX   
COPYTO   0
INBOX   
COPYTO   1
SUB      0
OUTBOX  
COPYFROM 0
SUB      1
OUTBOX