-
Notifications
You must be signed in to change notification settings - Fork 0
/
NEXUS.06.786.0.0.txt
116 lines (104 loc) · 879 Bytes
/
NEXUS.06.786.0.0.txt
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
@0
@1
DOS: MOV UP, ACC
MOV ACC, DOWN
SWP
MOV DOWN, ACC
JEZ DOS
SWP
JRO -5
@2
MOV UP, RIGHT
@3
DOS: MOV LEFT, ACC
MOV ACC, DOWN
SWP
MOV DOWN, ACC
JEZ DOS
SWP
JRO -5
@4
B: MOV DOWN, ACC
L: SWP
ADD DOWN
SWP
SUB 1
JNZ L
SWP
SUB UP
JLZ LZ
MOV 0, DOWN
MOV 0, UP
MOV ACC, RIGHT
JMP B
LZ: MOV 1, DOWN
MOV 1, UP
@5
B: ADD LEFT
ADD RIGHT
JEZ E2
SUB 2
JEZ E
NEG
MOV ACC, DOWN
MOV 0, ACC
JMP B
E: MOV 0, ACC
MOV 1, DOWN
JMP B
E2: MOV 0, DOWN
@6
B: MOV DOWN, ACC
L: SWP
ADD DOWN
SWP
SUB 1
JNZ L
SWP
SUB UP
JLZ LZ
MOV 0, DOWN
MOV 0, UP
MOV ACC, LEFT
JMP B
LZ: MOV 1, DOWN
MOV 1, UP
@7
@8
S: MOV 2, ACC
MOV ACC, UP
L: SWP
MOV ACC, UP
SWP
SUB 1
JNZ L
SWP
ADD 1
SWP
MOV UP, ACC
JNZ S
SWP
SUB 1
MOV ACC, RIGHT
@9
ADD LEFT
ADD RIGHT
SUB UP
MOV ACC, DOWN
MOV 0, ACC
@10
S: MOV 2, ACC
MOV ACC, UP
L: SWP
MOV ACC, UP
SWP
SUB 1
JNZ L
SWP
ADD 1
SWP
MOV UP, ACC
JNZ S
SWP
SUB 1
MOV ACC, LEFT