forked from YPetremann/ShenzhenIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aquatic-harvesting-robot-0.txt
186 lines (173 loc) · 1.98 KB
/
aquatic-harvesting-robot-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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[name] (CPLD) CaitSith2
[puzzle] Sz042
[production-cost] 3800
[power-usage] 7211
[lines-of-code] 99
[traces]
......................
......................
......................
......................
......................
............9554.1C...
..94.15C14.16.155CA...
..A9554355C14954.A34..
..2A954.14B54A1C.A....
..16A.9554A156.A.354..
..14A16...A14.16......
....354...354.........
......................
......................
[chip]
[type] UC6
[x] 3
[y] 2
[code]
@ slp 1
mov x1 acc
teq acc -999
+ jmp E
dst 1 x1
mov acc dat
mov 0 x2
L:mov x2 acc
teq x0 0
- jmp L
mov acc x2
mov dat x0
E:mov null x3
slp 1
[chip]
[type] UC6
[x] 12
[y] 2
[code]
slx x1
mov x1 acc
dgt 1
mov acc dat
mov p0 acc
dgt 1
sub dat
mul acc
mov x1 dat
tgt dat acc
+ mov dat x3
+ mov dat x3
- mov acc x3
- mov acc x3
[chip]
[type] BRIDGE
[x] 2
[y] 3
[chip]
[type] UC6
[x] 9
[y] 3
[code]
S:slx x0
mov x0 acc
teq acc -1
mov acc x3
- mov acc x2
- dgt 0
- mov acc dat
- mov p1 acc
- dgt 0
- sub dat
- mul acc
- mov acc x2
- mov x0 x3
[chip]
[type] UC6
[x] 6
[y] 4
[code]
- mov x2 x1
L:mov x0 acc
tcp acc 0
+ teq acc p1
+ mov x1 acc
+ sub 1
+ mov acc x1
+ mov 0 x0
- mov acc x3
- mov acc x3
E:tlt x1 6
- mov -1 x3
- slp 1
[chip]
[type] RAM
[x] 3
[y] 5
[chip]
[type] UC6
[x] 12
[y] 5
[code]
mov 999 dat
mov p0 acc
L:teq x3 -1
+ jmp E
tlt x2 dat
+ mov x2 dat
+ mov x3 acc
- mov x2 null
- mov x3 null
jmp L
E:mov acc x1
dst 0 0
mov acc x1
slp 1
[chip]
[type] UC6
[x] 9
[y] 6
[code]
mov x2 acc
dgt 0
mov acc dat
mov p0 acc
dgt 0
sub dat
mov acc x1
mov acc x3
mov p0 acc
dst 0 0
sub x2
mov acc x1
mov acc x3
slp 1
[chip]
[type] RADIO
[x] 3
[y] 7
[rotated] true
[is-puzzle-provided] true
[chip]
[type] UC4
[x] 6
[y] 7
[code]
tcp x1 0
+ sub 1
- add 1
tcp x1 0
+ sub 10
- add 10
mov acc p0
slp 1
[chip]
[type] UC4
[x] 15
[y] 7
[code]
tcp x0 0
mov 50 p1
+ mov 0 p1
- mov 100 p1
tcp x0 0
mov 50 p0
+ mov 0 p0
- mov 100 p0
slp 1