forked from YPetremann/ShenzhenIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
electronic-practice-target-1.txt
129 lines (117 loc) · 1.37 KB
/
electronic-practice-target-1.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
[name] (CLD) CaitSith2
[puzzle] Sz041
[production-cost] 2400
[power-usage] 1143
[lines-of-code] 49
[traces]
......................
......................
......................
......................
......................
......................
..154154.1555554..1C..
..9C..14.1554.1555C2..
..23554..1554.154.34..
..8..14..1C94..15C14..
..34.155556355554A94..
.................22...
......................
......................
[chip]
[type] UC6
[x] 3
[y] 3
[code]
slx x3
mov p1 acc
sub 50
mul acc
mov acc dat
mov p0 acc
sub 50
mul acc
add dat
dgt x3
mov acc x2
[chip]
[type] UC6
[x] 16
[y] 3
[code]
mov x0 dat
tgt dat 0
- jmp E
teq dat 8
+ mov 4 acc
L:mov p0 x3
mov x3 x1
mov p1 x3
mov x3 x2
+ sub 1
+ slp 2
E:- slp 1
+ tgt acc 0
+ jmp L
[chip]
[type] BRIDGE
[x] 6
[y] 4
[chip]
[type] BANK
[x] 7
[y] 4
[rom]
4,2,2,2,1,1,1,1,1,-2,-2,-2,-2,-2
[chip]
[type] UC6
[x] 12
[y] 4
[code]
slx x0
mov x0 dat
teq dat 1
+ mov 8 p1
- teq dat 5
+ mov 8 acc
add x1
tlt dat 5
+ mov acc p0
- mov acc p1
mov dat x3
[chip]
[type] BRIDGE
[x] 19
[y] 4
[chip]
[type] BRIDGE
[x] 15
[y] 5
[chip]
[type] DX3
[x] 4
[y] 6
[rotated] true
[chip]
[type] UC4X
[x] 7
[y] 6
[code]
teq x0 0
- mov 2 x1
- add 1
- mov acc x2
+ mov acc x3
- tlt acc 8
- mov 0 acc
- slp 8
+ slp 1
[chip]
[type] UC4
[x] 16
[y] 7
[code]
slx x1
mov x1 acc
sub 8
mov acc x1