-
Notifications
You must be signed in to change notification settings - Fork 17
/
test_opcode.8o
205 lines (201 loc) · 2.61 KB
/
test_opcode.8o
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
:alias x0 v8
:alias x1 v9
:alias x2 vA
:alias y vB
: imageok
0xEA 0xAC 0xAA 0xEA
: imagefalse
0xCE 0xAA 0xAA 0xAE
: im0
0xE0 0xA0 0xA0 0xE0
: im1
0xC0 0x40 0x40 0xE0
: im2
0xE0 0x20 0xC0 0xE0
: im3
0xE0 0x60 0x20 0xE0
: im4
0xA0 0xE0 0x20 0x20
: im5
0x60 0x40 0x20 0x40
: im6
0xE0 0x80 0xE0 0xE0
: im7
0xE0 0x20 0x20 0x20
: im8
0xE0 0xE0 0xA0 0xE0
: im9
0xE0 0xE0 0x20 0xE0
: imA
0x40 0xA0 0xE0 0xA0
: imE
0xE0 0xC0 0x80 0xE0
: imF
0xE0 0x80 0xC0 0x80
: imX
0xA0 0x40 0xA0 0xA0
:macro drawop A B {
i := A
sprite x0 y 4
i := B
sprite x1 y 4
}
: testAX
#test Ax
i := imageok
sprite x2 y 4
return
: test1x
i := imageok
sprite x2 y 4
jump endtest
: main
x0 := 1
x1 := 5
x2 := 10
y := 1
v5 := 42
v6 := 43
#test 3x
drawop im3 imX
i := imageok
if v6 != 43 then i := imagefalse
sprite x2 y 4
#test 4x
y := 6
drawop im4 imX
i := imagefalse
if v5 == 42 then i := imageok
sprite x2 y 4
#test 5x
y := 11
drawop im5 imX
i := imagefalse
if v5 != v6 then i := imageok
sprite x2 y 4
#test 7x
y := 16
drawop im7 imX
i := imagefalse
v6 += 255
if v6 == 42 then i := imageok
sprite x2 y 4
#test 9x
y := 21
drawop im9 imX
i := imagefalse
if v5 == v6 then i := imageok
sprite x2 y 4
#test AX
y := 26
drawop imA imX
testAX
#test 0E
x0 := 23
x1 := 27
x2 := 32
y := 1
drawop im0 imE
i := imageok
sprite x2 y 4
#test 8xy0
y := 6
drawop im8 im0
i := imagefalse
v7 := v5
if v7 == 42 then i := imageok
sprite x2 y 4
#test 8xy1
y := 11
drawop im8 im1
i := imagefalse
v7 := 42
v7 |= y
if v7 == 43 then i := imageok
sprite x2 y 4
#test 8xy2
y := 16
drawop im8 im2
i := imagefalse
v6 := 120
v7 := 31
v7 &= v6
if v7 == 24 then i := imageok
sprite x2 y 4
#test 8xy3
y := 21
drawop im8 im3
i := imagefalse
v6 := 120
v7 := 31
v7 ^= v6
if v7 == 103 then i := imageok
sprite x2 y 4
#test 8xy4
y := 26
drawop im8 im4
i := imagefalse
v6 := 140
v7 := 140
v7 += v6
if v7 == 24 then i := imageok
sprite x2 y 4
#test 8xy5
x0 := 44
x1 := 48
x2 := 52
y := 1
drawop im8 im5
i := imagefalse
v6 := 140
v7 := 120
v7 -= v6
if v7 == 236 then i := imageok
sprite x2 y 4
#test 8xy6
y := 6
drawop im8 im6
i := imagefalse
v6 := 224
v6 <<= v6
if v6 == 192 then i := imageok
sprite x2 y 4
#test 8xyE
y := 11
drawop im8 imE
i := imagefalse
v6 := 15
v6 >>= v6
if v6 == 7 then i := imageok
sprite x2 y 4
#test Fx55,Fx65
y := 16
drawop imF im5
i := 1000
v0 := 0
v1 := 48
save v1
i := 1001
load v0
i := imagefalse
if v0 == 48 then i := imageok
sprite x2 y 4
#test Fx33
y := 21
drawop imF im3
i := 1000
v6 := 137
bcd v6
load v2
i := imageok
if v0 != 1 then i := imagefalse
if v1 != 3 then i := imagefalse
if v2 != 7 then i := imagefalse
sprite x2 y 4
#test 1x
y := 26
drawop im1 imX
jump test1x
: endtest
loop
again