|
|
1.1 root 1: org 0100H
2: JP main
3:
4: test_add:
5: LD HL,testset_add
6: JP testrun2
7: testexec_add:
8: ADD A,D
9: RET
10: testset_add:
11: defw testname_add
12: defw testexec_add
13: defw testdata_add_00
14: testname_add:
15: defm "ADD $"
16:
17: testdata_add_00: defb 000H,002H,000H,000H,040H
18: testdata_add_01: defb 000H,002H,001H,001H,000H
19: testdata_add_02: defb 000H,002H,00fH,00fH,000H
20: testdata_add_03: defb 000H,002H,010H,010H,000H
21: testdata_add_04: defb 000H,002H,07fH,07fH,000H
22: testdata_add_05: defb 000H,002H,080H,080H,080H
23: testdata_add_06: defb 000H,002H,0ffH,0ffH,080H
24: testdata_add_07: defb 001H,002H,000H,001H,000H
25: testdata_add_08: defb 001H,002H,001H,002H,000H
26: testdata_add_09: defb 001H,002H,00fH,010H,010H
27: testdata_add_0a: defb 001H,002H,010H,011H,000H
28: testdata_add_0b: defb 001H,002H,07fH,080H,094H
29: testdata_add_0c: defb 001H,002H,080H,081H,080H
30: testdata_add_0d: defb 001H,002H,0ffH,000H,051H
31: testdata_add_0e: defb 00fH,002H,000H,00fH,000H
32: testdata_add_0f: defb 00fH,002H,001H,010H,010H
33: testdata_add_10: defb 00fH,002H,00fH,01eH,010H
34: testdata_add_11: defb 00fH,002H,010H,01fH,000H
35: testdata_add_12: defb 00fH,002H,07fH,08eH,094H
36: testdata_add_13: defb 00fH,002H,080H,08fH,080H
37: testdata_add_14: defb 00fH,002H,0ffH,00eH,011H
38: testdata_add_15: defb 010H,002H,000H,010H,000H
39: testdata_add_16: defb 010H,002H,001H,011H,000H
40: testdata_add_17: defb 010H,002H,00fH,01fH,000H
41: testdata_add_18: defb 010H,002H,010H,020H,000H
42: testdata_add_19: defb 010H,002H,07fH,08fH,084H
43: testdata_add_1a: defb 010H,002H,080H,090H,080H
44: testdata_add_1b: defb 010H,002H,0ffH,00fH,001H
45: testdata_add_1c: defb 07fH,002H,000H,07fH,000H
46: testdata_add_1d: defb 07fH,002H,001H,080H,094H
47: testdata_add_1e: defb 07fH,002H,00fH,08eH,094H
48: testdata_add_1f: defb 07fH,002H,010H,08fH,084H
49: testdata_add_20: defb 07fH,002H,07fH,0feH,094H
50: testdata_add_21: defb 07fH,002H,080H,0ffH,080H
51: testdata_add_22: defb 07fH,002H,0ffH,07eH,011H
52: testdata_add_23: defb 080H,002H,000H,080H,080H
53: testdata_add_24: defb 080H,002H,001H,081H,080H
54: testdata_add_25: defb 080H,002H,00fH,08fH,080H
55: testdata_add_26: defb 080H,002H,010H,090H,080H
56: testdata_add_27: defb 080H,002H,07fH,0ffH,080H
57: testdata_add_28: defb 080H,002H,080H,000H,045H
58: testdata_add_29: defb 080H,002H,0ffH,07fH,005H
59: testdata_add_2a: defb 0ffH,002H,000H,0ffH,080H
60: testdata_add_2b: defb 0ffH,002H,001H,000H,051H
61: testdata_add_2c: defb 0ffH,002H,00fH,00eH,011H
62: testdata_add_2d: defb 0ffH,002H,010H,00fH,001H
63: testdata_add_2e: defb 0ffH,002H,07fH,07eH,011H
64: testdata_add_2f: defb 0ffH,002H,080H,07fH,005H
65: testdata_add_30: defb 0ffH,002H,0ffH,0feH,091H
66: defb 0,0,0,0,0FFH
67:
68: test_adc:
69: LD HL,testset_adc
70: JP testrun2
71: testexec_adc:
72: ADC A,D
73: RET
74: testset_adc:
75: defw testname_adc
76: defw testexec_adc
77: defw testdata_adc_00
78: testname_adc:
79: defm "ADC $"
80:
81: testdata_adc_00: defb 000H,002H,000H,000H,040H
82: testdata_adc_01: defb 000H,003H,000H,001H,000H
83: testdata_adc_02: defb 000H,002H,001H,001H,000H
84: testdata_adc_03: defb 000H,003H,001H,002H,000H
85: testdata_adc_04: defb 000H,002H,00fH,00fH,000H
86: testdata_adc_05: defb 000H,003H,00fH,010H,010H
87: testdata_adc_06: defb 000H,002H,010H,010H,000H
88: testdata_adc_07: defb 000H,003H,010H,011H,000H
89: testdata_adc_08: defb 000H,002H,07fH,07fH,000H
90: testdata_adc_09: defb 000H,003H,07fH,080H,094H
91: testdata_adc_0a: defb 000H,002H,080H,080H,080H
92: testdata_adc_0b: defb 000H,003H,080H,081H,080H
93: testdata_adc_0c: defb 000H,002H,0ffH,0ffH,080H
94: testdata_adc_0d: defb 000H,003H,0ffH,000H,051H
95: testdata_adc_0e: defb 001H,002H,000H,001H,000H
96: testdata_adc_0f: defb 001H,003H,000H,002H,000H
97: testdata_adc_10: defb 001H,002H,001H,002H,000H
98: testdata_adc_11: defb 001H,003H,001H,003H,000H
99: testdata_adc_12: defb 001H,002H,00fH,010H,010H
100: testdata_adc_13: defb 001H,003H,00fH,011H,010H
101: testdata_adc_14: defb 001H,002H,010H,011H,000H
102: testdata_adc_15: defb 001H,003H,010H,012H,000H
103: testdata_adc_16: defb 001H,002H,07fH,080H,094H
104: testdata_adc_17: defb 001H,003H,07fH,081H,094H
105: testdata_adc_18: defb 001H,002H,080H,081H,080H
106: testdata_adc_19: defb 001H,003H,080H,082H,080H
107: testdata_adc_1a: defb 001H,002H,0ffH,000H,051H
108: testdata_adc_1b: defb 001H,003H,0ffH,001H,011H
109: testdata_adc_1c: defb 00fH,002H,000H,00fH,000H
110: testdata_adc_1d: defb 00fH,003H,000H,010H,010H
111: testdata_adc_1e: defb 00fH,002H,001H,010H,010H
112: testdata_adc_1f: defb 00fH,003H,001H,011H,010H
113: testdata_adc_20: defb 00fH,002H,00fH,01eH,010H
114: testdata_adc_21: defb 00fH,003H,00fH,01fH,010H
115: testdata_adc_22: defb 00fH,002H,010H,01fH,000H
116: testdata_adc_23: defb 00fH,003H,010H,020H,010H
117: testdata_adc_24: defb 00fH,002H,07fH,08eH,094H
118: testdata_adc_25: defb 00fH,003H,07fH,08fH,094H
119: testdata_adc_26: defb 00fH,002H,080H,08fH,080H
120: testdata_adc_27: defb 00fH,003H,080H,090H,090H
121: testdata_adc_28: defb 00fH,002H,0ffH,00eH,011H
122: testdata_adc_29: defb 00fH,003H,0ffH,00fH,011H
123: testdata_adc_2a: defb 010H,002H,000H,010H,000H
124: testdata_adc_2b: defb 010H,003H,000H,011H,000H
125: testdata_adc_2c: defb 010H,002H,001H,011H,000H
126: testdata_adc_2d: defb 010H,003H,001H,012H,000H
127: testdata_adc_2e: defb 010H,002H,00fH,01fH,000H
128: testdata_adc_2f: defb 010H,003H,00fH,020H,010H
129: testdata_adc_30: defb 010H,002H,010H,020H,000H
130: testdata_adc_31: defb 010H,003H,010H,021H,000H
131: testdata_adc_32: defb 010H,002H,07fH,08fH,084H
132: testdata_adc_33: defb 010H,003H,07fH,090H,094H
133: testdata_adc_34: defb 010H,002H,080H,090H,080H
134: testdata_adc_35: defb 010H,003H,080H,091H,080H
135: testdata_adc_36: defb 010H,002H,0ffH,00fH,001H
136: testdata_adc_37: defb 010H,003H,0ffH,010H,011H
137: testdata_adc_38: defb 07fH,002H,000H,07fH,000H
138: testdata_adc_39: defb 07fH,003H,000H,080H,094H
139: testdata_adc_3a: defb 07fH,002H,001H,080H,094H
140: testdata_adc_3b: defb 07fH,003H,001H,081H,094H
141: testdata_adc_3c: defb 07fH,002H,00fH,08eH,094H
142: testdata_adc_3d: defb 07fH,003H,00fH,08fH,094H
143: testdata_adc_3e: defb 07fH,002H,010H,08fH,084H
144: testdata_adc_3f: defb 07fH,003H,010H,090H,094H
145: testdata_adc_40: defb 07fH,002H,07fH,0feH,094H
146: testdata_adc_41: defb 07fH,003H,07fH,0ffH,094H
147: testdata_adc_42: defb 07fH,002H,080H,0ffH,080H
148: testdata_adc_43: defb 07fH,003H,080H,000H,051H
149: testdata_adc_44: defb 07fH,002H,0ffH,07eH,011H
150: testdata_adc_45: defb 07fH,003H,0ffH,07fH,011H
151: testdata_adc_46: defb 080H,002H,000H,080H,080H
152: testdata_adc_47: defb 080H,003H,000H,081H,080H
153: testdata_adc_48: defb 080H,002H,001H,081H,080H
154: testdata_adc_49: defb 080H,003H,001H,082H,080H
155: testdata_adc_4a: defb 080H,002H,00fH,08fH,080H
156: testdata_adc_4b: defb 080H,003H,00fH,090H,090H
157: testdata_adc_4c: defb 080H,002H,010H,090H,080H
158: testdata_adc_4d: defb 080H,003H,010H,091H,080H
159: testdata_adc_4e: defb 080H,002H,07fH,0ffH,080H
160: testdata_adc_4f: defb 080H,003H,07fH,000H,051H
161: testdata_adc_50: defb 080H,002H,080H,000H,045H
162: testdata_adc_51: defb 080H,003H,080H,001H,005H
163: testdata_adc_52: defb 080H,002H,0ffH,07fH,005H
164: testdata_adc_53: defb 080H,003H,0ffH,080H,091H
165: testdata_adc_54: defb 0ffH,002H,000H,0ffH,080H
166: testdata_adc_55: defb 0ffH,003H,000H,000H,051H
167: testdata_adc_56: defb 0ffH,002H,001H,000H,051H
168: testdata_adc_57: defb 0ffH,003H,001H,001H,011H
169: testdata_adc_58: defb 0ffH,002H,00fH,00eH,011H
170: testdata_adc_59: defb 0ffH,003H,00fH,00fH,011H
171: testdata_adc_5a: defb 0ffH,002H,010H,00fH,001H
172: testdata_adc_5b: defb 0ffH,003H,010H,010H,011H
173: testdata_adc_5c: defb 0ffH,002H,07fH,07eH,011H
174: testdata_adc_5d: defb 0ffH,003H,07fH,07fH,011H
175: testdata_adc_5e: defb 0ffH,002H,080H,07fH,005H
176: testdata_adc_5f: defb 0ffH,003H,080H,080H,091H
177: testdata_adc_60: defb 0ffH,002H,0ffH,0feH,091H
178: testdata_adc_61: defb 0ffH,003H,0ffH,0ffH,091H
179: defb 0,0,0,0,0FFH
180:
181: test_sub:
182: LD HL,testset_sub
183: JP testrun2
184: testexec_sub:
185: SUB D
186: RET
187: testset_sub:
188: defw testname_sub
189: defw testexec_sub
190: defw testdata_sub_00
191: testname_sub:
192: defm "SUB $"
193:
194: testdata_sub_00: defb 000H,000H,000H,000H,042H
195: testdata_sub_01: defb 000H,000H,001H,0ffH,093H
196: testdata_sub_02: defb 000H,000H,00fH,0f1H,093H
197: testdata_sub_03: defb 000H,000H,010H,0f0H,083H
198: testdata_sub_04: defb 000H,000H,07fH,081H,093H
199: testdata_sub_05: defb 000H,000H,080H,080H,087H
200: testdata_sub_06: defb 000H,000H,0ffH,001H,013H
201: testdata_sub_07: defb 001H,000H,000H,001H,002H
202: testdata_sub_08: defb 001H,000H,001H,000H,042H
203: testdata_sub_09: defb 001H,000H,00fH,0f2H,093H
204: testdata_sub_0a: defb 001H,000H,010H,0f1H,083H
205: testdata_sub_0b: defb 001H,000H,07fH,082H,093H
206: testdata_sub_0c: defb 001H,000H,080H,081H,087H
207: testdata_sub_0d: defb 001H,000H,0ffH,002H,013H
208: testdata_sub_0e: defb 00fH,000H,000H,00fH,002H
209: testdata_sub_0f: defb 00fH,000H,001H,00eH,002H
210: testdata_sub_10: defb 00fH,000H,00fH,000H,042H
211: testdata_sub_11: defb 00fH,000H,010H,0ffH,083H
212: testdata_sub_12: defb 00fH,000H,07fH,090H,083H
213: testdata_sub_13: defb 00fH,000H,080H,08fH,087H
214: testdata_sub_14: defb 00fH,000H,0ffH,010H,003H
215: testdata_sub_15: defb 010H,000H,000H,010H,002H
216: testdata_sub_16: defb 010H,000H,001H,00fH,012H
217: testdata_sub_17: defb 010H,000H,00fH,001H,012H
218: testdata_sub_18: defb 010H,000H,010H,000H,042H
219: testdata_sub_19: defb 010H,000H,07fH,091H,093H
220: testdata_sub_1a: defb 010H,000H,080H,090H,087H
221: testdata_sub_1b: defb 010H,000H,0ffH,011H,013H
222: testdata_sub_1c: defb 07fH,000H,000H,07fH,002H
223: testdata_sub_1d: defb 07fH,000H,001H,07eH,002H
224: testdata_sub_1e: defb 07fH,000H,00fH,070H,002H
225: testdata_sub_1f: defb 07fH,000H,010H,06fH,002H
226: testdata_sub_20: defb 07fH,000H,07fH,000H,042H
227: testdata_sub_21: defb 07fH,000H,080H,0ffH,087H
228: testdata_sub_22: defb 07fH,000H,0ffH,080H,087H
229: testdata_sub_23: defb 080H,000H,000H,080H,082H
230: testdata_sub_24: defb 080H,000H,001H,07fH,016H
231: testdata_sub_25: defb 080H,000H,00fH,071H,016H
232: testdata_sub_26: defb 080H,000H,010H,070H,006H
233: testdata_sub_27: defb 080H,000H,07fH,001H,016H
234: testdata_sub_28: defb 080H,000H,080H,000H,042H
235: testdata_sub_29: defb 080H,000H,0ffH,081H,093H
236: testdata_sub_2a: defb 0ffH,000H,000H,0ffH,082H
237: testdata_sub_2b: defb 0ffH,000H,001H,0feH,082H
238: testdata_sub_2c: defb 0ffH,000H,00fH,0f0H,082H
239: testdata_sub_2d: defb 0ffH,000H,010H,0efH,082H
240: testdata_sub_2e: defb 0ffH,000H,07fH,080H,082H
241: testdata_sub_2f: defb 0ffH,000H,080H,07fH,002H
242: testdata_sub_30: defb 0ffH,000H,0ffH,000H,042H
243: defb 0,0,0,0,0FFH
244:
245: test_sbc:
246: LD HL,testset_sbc
247: JP testrun2
248: testexec_sbc:
249: SBC A,D
250: RET
251: testset_sbc:
252: defw testname_sbc
253: defw testexec_sbc
254: defw testdata_sbc_00
255: testname_sbc:
256: defm "SBC $"
257:
258: testdata_sbc_00: defb 000H,000H,000H,000H,042H
259: testdata_sbc_01: defb 000H,001H,000H,0ffH,093H
260: testdata_sbc_02: defb 000H,000H,001H,0ffH,093H
261: testdata_sbc_03: defb 000H,001H,001H,0feH,093H
262: testdata_sbc_04: defb 000H,000H,00fH,0f1H,093H
263: testdata_sbc_05: defb 000H,001H,00fH,0f0H,093H
264: testdata_sbc_06: defb 000H,000H,010H,0f0H,083H
265: testdata_sbc_07: defb 000H,001H,010H,0efH,093H
266: testdata_sbc_08: defb 000H,000H,07fH,081H,093H
267: testdata_sbc_09: defb 000H,001H,07fH,080H,093H
268: testdata_sbc_0a: defb 000H,000H,080H,080H,087H
269: testdata_sbc_0b: defb 000H,001H,080H,07fH,013H
270: testdata_sbc_0c: defb 000H,000H,0ffH,001H,013H
271: testdata_sbc_0d: defb 000H,001H,0ffH,000H,053H
272: testdata_sbc_0e: defb 001H,000H,000H,001H,002H
273: testdata_sbc_0f: defb 001H,001H,000H,000H,042H
274: testdata_sbc_10: defb 001H,000H,001H,000H,042H
275: testdata_sbc_11: defb 001H,001H,001H,0ffH,093H
276: testdata_sbc_12: defb 001H,000H,00fH,0f2H,093H
277: testdata_sbc_13: defb 001H,001H,00fH,0f1H,093H
278: testdata_sbc_14: defb 001H,000H,010H,0f1H,083H
279: testdata_sbc_15: defb 001H,001H,010H,0f0H,083H
280: testdata_sbc_16: defb 001H,000H,07fH,082H,093H
281: testdata_sbc_17: defb 001H,001H,07fH,081H,093H
282: testdata_sbc_18: defb 001H,000H,080H,081H,087H
283: testdata_sbc_19: defb 001H,001H,080H,080H,087H
284: testdata_sbc_1a: defb 001H,000H,0ffH,002H,013H
285: testdata_sbc_1b: defb 001H,001H,0ffH,001H,013H
286: testdata_sbc_1c: defb 00fH,000H,000H,00fH,002H
287: testdata_sbc_1d: defb 00fH,001H,000H,00eH,002H
288: testdata_sbc_1e: defb 00fH,000H,001H,00eH,002H
289: testdata_sbc_1f: defb 00fH,001H,001H,00dH,002H
290: testdata_sbc_20: defb 00fH,000H,00fH,000H,042H
291: testdata_sbc_21: defb 00fH,001H,00fH,0ffH,093H
292: testdata_sbc_22: defb 00fH,000H,010H,0ffH,083H
293: testdata_sbc_23: defb 00fH,001H,010H,0feH,083H
294: testdata_sbc_24: defb 00fH,000H,07fH,090H,083H
295: testdata_sbc_25: defb 00fH,001H,07fH,08fH,093H
296: testdata_sbc_26: defb 00fH,000H,080H,08fH,087H
297: testdata_sbc_27: defb 00fH,001H,080H,08eH,087H
298: testdata_sbc_28: defb 00fH,000H,0ffH,010H,003H
299: testdata_sbc_29: defb 00fH,001H,0ffH,00fH,013H
300: testdata_sbc_2a: defb 010H,000H,000H,010H,002H
301: testdata_sbc_2b: defb 010H,001H,000H,00fH,012H
302: testdata_sbc_2c: defb 010H,000H,001H,00fH,012H
303: testdata_sbc_2d: defb 010H,001H,001H,00eH,012H
304: testdata_sbc_2e: defb 010H,000H,00fH,001H,012H
305: testdata_sbc_2f: defb 010H,001H,00fH,000H,052H
306: testdata_sbc_30: defb 010H,000H,010H,000H,042H
307: testdata_sbc_31: defb 010H,001H,010H,0ffH,093H
308: testdata_sbc_32: defb 010H,000H,07fH,091H,093H
309: testdata_sbc_33: defb 010H,001H,07fH,090H,093H
310: testdata_sbc_34: defb 010H,000H,080H,090H,087H
311: testdata_sbc_35: defb 010H,001H,080H,08fH,097H
312: testdata_sbc_36: defb 010H,000H,0ffH,011H,013H
313: testdata_sbc_37: defb 010H,001H,0ffH,010H,013H
314: testdata_sbc_38: defb 07fH,000H,000H,07fH,002H
315: testdata_sbc_39: defb 07fH,001H,000H,07eH,002H
316: testdata_sbc_3a: defb 07fH,000H,001H,07eH,002H
317: testdata_sbc_3b: defb 07fH,001H,001H,07dH,002H
318: testdata_sbc_3c: defb 07fH,000H,00fH,070H,002H
319: testdata_sbc_3d: defb 07fH,001H,00fH,06fH,012H
320: testdata_sbc_3e: defb 07fH,000H,010H,06fH,002H
321: testdata_sbc_3f: defb 07fH,001H,010H,06eH,002H
322: testdata_sbc_40: defb 07fH,000H,07fH,000H,042H
323: testdata_sbc_41: defb 07fH,001H,07fH,0ffH,093H
324: testdata_sbc_42: defb 07fH,000H,080H,0ffH,087H
325: testdata_sbc_43: defb 07fH,001H,080H,0feH,087H
326: testdata_sbc_44: defb 07fH,000H,0ffH,080H,087H
327: testdata_sbc_45: defb 07fH,001H,0ffH,07fH,013H
328: testdata_sbc_46: defb 080H,000H,000H,080H,082H
329: testdata_sbc_47: defb 080H,001H,000H,07fH,016H
330: testdata_sbc_48: defb 080H,000H,001H,07fH,016H
331: testdata_sbc_49: defb 080H,001H,001H,07eH,016H
332: testdata_sbc_4a: defb 080H,000H,00fH,071H,016H
333: testdata_sbc_4b: defb 080H,001H,00fH,070H,016H
334: testdata_sbc_4c: defb 080H,000H,010H,070H,006H
335: testdata_sbc_4d: defb 080H,001H,010H,06fH,016H
336: testdata_sbc_4e: defb 080H,000H,07fH,001H,016H
337: testdata_sbc_4f: defb 080H,001H,07fH,000H,056H
338: testdata_sbc_50: defb 080H,000H,080H,000H,042H
339: testdata_sbc_51: defb 080H,001H,080H,0ffH,093H
340: testdata_sbc_52: defb 080H,000H,0ffH,081H,093H
341: testdata_sbc_53: defb 080H,001H,0ffH,080H,093H
342: testdata_sbc_54: defb 0ffH,000H,000H,0ffH,082H
343: testdata_sbc_55: defb 0ffH,001H,000H,0feH,082H
344: testdata_sbc_56: defb 0ffH,000H,001H,0feH,082H
345: testdata_sbc_57: defb 0ffH,001H,001H,0fdH,082H
346: testdata_sbc_58: defb 0ffH,000H,00fH,0f0H,082H
347: testdata_sbc_59: defb 0ffH,001H,00fH,0efH,092H
348: testdata_sbc_5a: defb 0ffH,000H,010H,0efH,082H
349: testdata_sbc_5b: defb 0ffH,001H,010H,0eeH,082H
350: testdata_sbc_5c: defb 0ffH,000H,07fH,080H,082H
351: testdata_sbc_5d: defb 0ffH,001H,07fH,07fH,016H
352: testdata_sbc_5e: defb 0ffH,000H,080H,07fH,002H
353: testdata_sbc_5f: defb 0ffH,001H,080H,07eH,002H
354: testdata_sbc_60: defb 0ffH,000H,0ffH,000H,042H
355: testdata_sbc_61: defb 0ffH,001H,0ffH,0ffH,093H
356: defb 0,0,0,0,0FFH
357:
358: test_and:
359: LD HL,testset_and
360: JP testrun2
361: testexec_and:
362: AND D
363: RET
364: testset_and:
365: defw testname_and
366: defw testexec_and
367: defw testdata_and_00
368: testname_and:
369: defm "AND $"
370:
371: testdata_and_00: defb 000H,003H,000H,000H,054H
372: testdata_and_01: defb 000H,003H,001H,000H,054H
373: testdata_and_02: defb 000H,003H,003H,000H,054H
374: testdata_and_03: defb 000H,003H,055H,000H,054H
375: testdata_and_04: defb 000H,003H,07fH,000H,054H
376: testdata_and_05: defb 000H,003H,0aaH,000H,054H
377: testdata_and_06: defb 000H,003H,0ffH,000H,054H
378: testdata_and_07: defb 001H,003H,000H,000H,054H
379: testdata_and_08: defb 001H,003H,001H,001H,010H
380: testdata_and_09: defb 001H,003H,003H,001H,010H
381: testdata_and_0a: defb 001H,003H,055H,001H,010H
382: testdata_and_0b: defb 001H,003H,07fH,001H,010H
383: testdata_and_0c: defb 001H,003H,0aaH,000H,054H
384: testdata_and_0d: defb 001H,003H,0ffH,001H,010H
385: testdata_and_0e: defb 003H,003H,000H,000H,054H
386: testdata_and_0f: defb 003H,003H,001H,001H,010H
387: testdata_and_10: defb 003H,003H,003H,003H,014H
388: testdata_and_11: defb 003H,003H,055H,001H,010H
389: testdata_and_12: defb 003H,003H,07fH,003H,014H
390: testdata_and_13: defb 003H,003H,0aaH,002H,010H
391: testdata_and_14: defb 003H,003H,0ffH,003H,014H
392: testdata_and_15: defb 055H,003H,000H,000H,054H
393: testdata_and_16: defb 055H,003H,001H,001H,010H
394: testdata_and_17: defb 055H,003H,003H,001H,010H
395: testdata_and_18: defb 055H,003H,055H,055H,014H
396: testdata_and_19: defb 055H,003H,07fH,055H,014H
397: testdata_and_1a: defb 055H,003H,0aaH,000H,054H
398: testdata_and_1b: defb 055H,003H,0ffH,055H,014H
399: testdata_and_1c: defb 07fH,003H,000H,000H,054H
400: testdata_and_1d: defb 07fH,003H,001H,001H,010H
401: testdata_and_1e: defb 07fH,003H,003H,003H,014H
402: testdata_and_1f: defb 07fH,003H,055H,055H,014H
403: testdata_and_20: defb 07fH,003H,07fH,07fH,010H
404: testdata_and_21: defb 07fH,003H,0aaH,02aH,010H
405: testdata_and_22: defb 07fH,003H,0ffH,07fH,010H
406: testdata_and_23: defb 0aaH,003H,000H,000H,054H
407: testdata_and_24: defb 0aaH,003H,001H,000H,054H
408: testdata_and_25: defb 0aaH,003H,003H,002H,010H
409: testdata_and_26: defb 0aaH,003H,055H,000H,054H
410: testdata_and_27: defb 0aaH,003H,07fH,02aH,010H
411: testdata_and_28: defb 0aaH,003H,0aaH,0aaH,094H
412: testdata_and_29: defb 0aaH,003H,0ffH,0aaH,094H
413: testdata_and_2a: defb 0ffH,003H,000H,000H,054H
414: testdata_and_2b: defb 0ffH,003H,001H,001H,010H
415: testdata_and_2c: defb 0ffH,003H,003H,003H,014H
416: testdata_and_2d: defb 0ffH,003H,055H,055H,014H
417: testdata_and_2e: defb 0ffH,003H,07fH,07fH,010H
418: testdata_and_2f: defb 0ffH,003H,0aaH,0aaH,094H
419: testdata_and_30: defb 0ffH,003H,0ffH,0ffH,094H
420: defb 0,0,0,0,0FFH
421:
422: test_or:
423: LD HL,testset_or
424: JP testrun2
425: testexec_or:
426: OR D
427: RET
428: testset_or:
429: defw testname_or
430: defw testexec_or
431: defw testdata_or_00
432: testname_or:
433: defm "OR $"
434:
435: testdata_or_00: defb 000H,013H,000H,000H,044H
436: testdata_or_01: defb 000H,013H,001H,001H,000H
437: testdata_or_02: defb 000H,013H,003H,003H,004H
438: testdata_or_03: defb 000H,013H,055H,055H,004H
439: testdata_or_04: defb 000H,013H,07fH,07fH,000H
440: testdata_or_05: defb 000H,013H,0aaH,0aaH,084H
441: testdata_or_06: defb 000H,013H,0ffH,0ffH,084H
442: testdata_or_07: defb 001H,013H,000H,001H,000H
443: testdata_or_08: defb 001H,013H,001H,001H,000H
444: testdata_or_09: defb 001H,013H,003H,003H,004H
445: testdata_or_0a: defb 001H,013H,055H,055H,004H
446: testdata_or_0b: defb 001H,013H,07fH,07fH,000H
447: testdata_or_0c: defb 001H,013H,0aaH,0abH,080H
448: testdata_or_0d: defb 001H,013H,0ffH,0ffH,084H
449: testdata_or_0e: defb 003H,013H,000H,003H,004H
450: testdata_or_0f: defb 003H,013H,001H,003H,004H
451: testdata_or_10: defb 003H,013H,003H,003H,004H
452: testdata_or_11: defb 003H,013H,055H,057H,000H
453: testdata_or_12: defb 003H,013H,07fH,07fH,000H
454: testdata_or_13: defb 003H,013H,0aaH,0abH,080H
455: testdata_or_14: defb 003H,013H,0ffH,0ffH,084H
456: testdata_or_15: defb 055H,013H,000H,055H,004H
457: testdata_or_16: defb 055H,013H,001H,055H,004H
458: testdata_or_17: defb 055H,013H,003H,057H,000H
459: testdata_or_18: defb 055H,013H,055H,055H,004H
460: testdata_or_19: defb 055H,013H,07fH,07fH,000H
461: testdata_or_1a: defb 055H,013H,0aaH,0ffH,084H
462: testdata_or_1b: defb 055H,013H,0ffH,0ffH,084H
463: testdata_or_1c: defb 07fH,013H,000H,07fH,000H
464: testdata_or_1d: defb 07fH,013H,001H,07fH,000H
465: testdata_or_1e: defb 07fH,013H,003H,07fH,000H
466: testdata_or_1f: defb 07fH,013H,055H,07fH,000H
467: testdata_or_20: defb 07fH,013H,07fH,07fH,000H
468: testdata_or_21: defb 07fH,013H,0aaH,0ffH,084H
469: testdata_or_22: defb 07fH,013H,0ffH,0ffH,084H
470: testdata_or_23: defb 0aaH,013H,000H,0aaH,084H
471: testdata_or_24: defb 0aaH,013H,001H,0abH,080H
472: testdata_or_25: defb 0aaH,013H,003H,0abH,080H
473: testdata_or_26: defb 0aaH,013H,055H,0ffH,084H
474: testdata_or_27: defb 0aaH,013H,07fH,0ffH,084H
475: testdata_or_28: defb 0aaH,013H,0aaH,0aaH,084H
476: testdata_or_29: defb 0aaH,013H,0ffH,0ffH,084H
477: testdata_or_2a: defb 0ffH,013H,000H,0ffH,084H
478: testdata_or_2b: defb 0ffH,013H,001H,0ffH,084H
479: testdata_or_2c: defb 0ffH,013H,003H,0ffH,084H
480: testdata_or_2d: defb 0ffH,013H,055H,0ffH,084H
481: testdata_or_2e: defb 0ffH,013H,07fH,0ffH,084H
482: testdata_or_2f: defb 0ffH,013H,0aaH,0ffH,084H
483: testdata_or_30: defb 0ffH,013H,0ffH,0ffH,084H
484: defb 0,0,0,0,0FFH
485:
486: test_xor:
487: LD HL,testset_xor
488: JP testrun2
489: testexec_xor:
490: XOR D
491: RET
492: testset_xor:
493: defw testname_xor
494: defw testexec_xor
495: defw testdata_xor_00
496: testname_xor:
497: defm "XOR $"
498:
499: testdata_xor_00: defb 000H,013H,000H,000H,044H
500: testdata_xor_01: defb 000H,013H,001H,001H,000H
501: testdata_xor_02: defb 000H,013H,003H,003H,004H
502: testdata_xor_03: defb 000H,013H,055H,055H,004H
503: testdata_xor_04: defb 000H,013H,07fH,07fH,000H
504: testdata_xor_05: defb 000H,013H,0aaH,0aaH,084H
505: testdata_xor_06: defb 000H,013H,0ffH,0ffH,084H
506: testdata_xor_07: defb 001H,013H,000H,001H,000H
507: testdata_xor_08: defb 001H,013H,001H,000H,044H
508: testdata_xor_09: defb 001H,013H,003H,002H,000H
509: testdata_xor_0a: defb 001H,013H,055H,054H,000H
510: testdata_xor_0b: defb 001H,013H,07fH,07eH,004H
511: testdata_xor_0c: defb 001H,013H,0aaH,0abH,080H
512: testdata_xor_0d: defb 001H,013H,0ffH,0feH,080H
513: testdata_xor_0e: defb 003H,013H,000H,003H,004H
514: testdata_xor_0f: defb 003H,013H,001H,002H,000H
515: testdata_xor_10: defb 003H,013H,003H,000H,044H
516: testdata_xor_11: defb 003H,013H,055H,056H,004H
517: testdata_xor_12: defb 003H,013H,07fH,07cH,000H
518: testdata_xor_13: defb 003H,013H,0aaH,0a9H,084H
519: testdata_xor_14: defb 003H,013H,0ffH,0fcH,084H
520: testdata_xor_15: defb 055H,013H,000H,055H,004H
521: testdata_xor_16: defb 055H,013H,001H,054H,000H
522: testdata_xor_17: defb 055H,013H,003H,056H,004H
523: testdata_xor_18: defb 055H,013H,055H,000H,044H
524: testdata_xor_19: defb 055H,013H,07fH,02aH,000H
525: testdata_xor_1a: defb 055H,013H,0aaH,0ffH,084H
526: testdata_xor_1b: defb 055H,013H,0ffH,0aaH,084H
527: testdata_xor_1c: defb 07fH,013H,000H,07fH,000H
528: testdata_xor_1d: defb 07fH,013H,001H,07eH,004H
529: testdata_xor_1e: defb 07fH,013H,003H,07cH,000H
530: testdata_xor_1f: defb 07fH,013H,055H,02aH,000H
531: testdata_xor_20: defb 07fH,013H,07fH,000H,044H
532: testdata_xor_21: defb 07fH,013H,0aaH,0d5H,080H
533: testdata_xor_22: defb 07fH,013H,0ffH,080H,080H
534: testdata_xor_23: defb 0aaH,013H,000H,0aaH,084H
535: testdata_xor_24: defb 0aaH,013H,001H,0abH,080H
536: testdata_xor_25: defb 0aaH,013H,003H,0a9H,084H
537: testdata_xor_26: defb 0aaH,013H,055H,0ffH,084H
538: testdata_xor_27: defb 0aaH,013H,07fH,0d5H,080H
539: testdata_xor_28: defb 0aaH,013H,0aaH,000H,044H
540: testdata_xor_29: defb 0aaH,013H,0ffH,055H,004H
541: testdata_xor_2a: defb 0ffH,013H,000H,0ffH,084H
542: testdata_xor_2b: defb 0ffH,013H,001H,0feH,080H
543: testdata_xor_2c: defb 0ffH,013H,003H,0fcH,084H
544: testdata_xor_2d: defb 0ffH,013H,055H,0aaH,084H
545: testdata_xor_2e: defb 0ffH,013H,07fH,080H,080H
546: testdata_xor_2f: defb 0ffH,013H,0aaH,055H,004H
547: testdata_xor_30: defb 0ffH,013H,0ffH,000H,044H
548: defb 0,0,0,0,0FFH
549:
550: test_cp:
551: LD HL,testset_cp
552: JP testrun2
553: testexec_cp:
554: CP D
555: RET
556: testset_cp:
557: defw testname_cp
558: defw testexec_cp
559: defw testdata_cp_00
560: testname_cp:
561: defm "CP $"
562:
563: testdata_cp_00: defb 000H,000H,000H,000H,042H
564: testdata_cp_01: defb 000H,000H,001H,000H,093H
565: testdata_cp_02: defb 000H,000H,00fH,000H,093H
566: testdata_cp_03: defb 000H,000H,010H,000H,083H
567: testdata_cp_04: defb 000H,000H,07fH,000H,093H
568: testdata_cp_05: defb 000H,000H,080H,000H,087H
569: testdata_cp_06: defb 000H,000H,0ffH,000H,013H
570: testdata_cp_07: defb 001H,000H,000H,001H,002H
571: testdata_cp_08: defb 001H,000H,001H,001H,042H
572: testdata_cp_09: defb 001H,000H,00fH,001H,093H
573: testdata_cp_0a: defb 001H,000H,010H,001H,083H
574: testdata_cp_0b: defb 001H,000H,07fH,001H,093H
575: testdata_cp_0c: defb 001H,000H,080H,001H,087H
576: testdata_cp_0d: defb 001H,000H,0ffH,001H,013H
577: testdata_cp_0e: defb 00fH,000H,000H,00fH,002H
578: testdata_cp_0f: defb 00fH,000H,001H,00fH,002H
579: testdata_cp_10: defb 00fH,000H,00fH,00fH,042H
580: testdata_cp_11: defb 00fH,000H,010H,00fH,083H
581: testdata_cp_12: defb 00fH,000H,07fH,00fH,083H
582: testdata_cp_13: defb 00fH,000H,080H,00fH,087H
583: testdata_cp_14: defb 00fH,000H,0ffH,00fH,003H
584: testdata_cp_15: defb 010H,000H,000H,010H,002H
585: testdata_cp_16: defb 010H,000H,001H,010H,012H
586: testdata_cp_17: defb 010H,000H,00fH,010H,012H
587: testdata_cp_18: defb 010H,000H,010H,010H,042H
588: testdata_cp_19: defb 010H,000H,07fH,010H,093H
589: testdata_cp_1a: defb 010H,000H,080H,010H,087H
590: testdata_cp_1b: defb 010H,000H,0ffH,010H,013H
591: testdata_cp_1c: defb 07fH,000H,000H,07fH,002H
592: testdata_cp_1d: defb 07fH,000H,001H,07fH,002H
593: testdata_cp_1e: defb 07fH,000H,00fH,07fH,002H
594: testdata_cp_1f: defb 07fH,000H,010H,07fH,002H
595: testdata_cp_20: defb 07fH,000H,07fH,07fH,042H
596: testdata_cp_21: defb 07fH,000H,080H,07fH,087H
597: testdata_cp_22: defb 07fH,000H,0ffH,07fH,087H
598: testdata_cp_23: defb 080H,000H,000H,080H,082H
599: testdata_cp_24: defb 080H,000H,001H,080H,016H
600: testdata_cp_25: defb 080H,000H,00fH,080H,016H
601: testdata_cp_26: defb 080H,000H,010H,080H,006H
602: testdata_cp_27: defb 080H,000H,07fH,080H,016H
603: testdata_cp_28: defb 080H,000H,080H,080H,042H
604: testdata_cp_29: defb 080H,000H,0ffH,080H,093H
605: testdata_cp_2a: defb 0ffH,000H,000H,0ffH,082H
606: testdata_cp_2b: defb 0ffH,000H,001H,0ffH,082H
607: testdata_cp_2c: defb 0ffH,000H,00fH,0ffH,082H
608: testdata_cp_2d: defb 0ffH,000H,010H,0ffH,082H
609: testdata_cp_2e: defb 0ffH,000H,07fH,0ffH,082H
610: testdata_cp_2f: defb 0ffH,000H,080H,0ffH,002H
611: testdata_cp_30: defb 0ffH,000H,0ffH,0ffH,042H
612: defb 0,0,0,0,0FFH
613:
614: test_inc:
615: LD HL,testset_inc
616: JP testrun1
617: testexec_inc:
618: INC A
619: RET
620: testset_inc:
621: defw testname_inc
622: defw testexec_inc
623: defw testdata_inc_00
624: testname_inc:
625: defm "INC $"
626:
627: testdata_inc_00: defb 000H,002H,001H,000H
628: testdata_inc_01: defb 000H,003H,001H,001H
629: testdata_inc_02: defb 001H,002H,002H,000H
630: testdata_inc_03: defb 001H,003H,002H,001H
631: testdata_inc_04: defb 00fH,002H,010H,010H
632: testdata_inc_05: defb 00fH,003H,010H,011H
633: testdata_inc_06: defb 010H,002H,011H,000H
634: testdata_inc_07: defb 010H,003H,011H,001H
635: testdata_inc_08: defb 07fH,002H,080H,094H
636: testdata_inc_09: defb 07fH,003H,080H,095H
637: testdata_inc_0a: defb 080H,002H,081H,080H
638: testdata_inc_0b: defb 080H,003H,081H,081H
639: testdata_inc_0c: defb 0ffH,002H,000H,050H
640: testdata_inc_0d: defb 0ffH,003H,000H,051H
641: defb 0,0,0,0FFH
642:
643: test_dec:
644: LD HL,testset_dec
645: JP testrun1
646: testexec_dec:
647: DEC A
648: RET
649: testset_dec:
650: defw testname_dec
651: defw testexec_dec
652: defw testdata_dec_00
653: testname_dec:
654: defm "DEC $"
655:
656: testdata_dec_00: defb 000H,000H,0ffH,092H
657: testdata_dec_01: defb 000H,001H,0ffH,093H
658: testdata_dec_02: defb 001H,000H,000H,042H
659: testdata_dec_03: defb 001H,001H,000H,043H
660: testdata_dec_04: defb 00fH,000H,00eH,002H
661: testdata_dec_05: defb 00fH,001H,00eH,003H
662: testdata_dec_06: defb 010H,000H,00fH,012H
663: testdata_dec_07: defb 010H,001H,00fH,013H
664: testdata_dec_08: defb 07fH,000H,07eH,002H
665: testdata_dec_09: defb 07fH,001H,07eH,003H
666: testdata_dec_0a: defb 080H,000H,07fH,016H
667: testdata_dec_0b: defb 080H,001H,07fH,017H
668: testdata_dec_0c: defb 0ffH,000H,0feH,082H
669: testdata_dec_0d: defb 0ffH,001H,0feH,083H
670: defb 0,0,0,0FFH
671:
672: test_neg:
673: LD HL,testset_neg
674: JP testrun1
675: testexec_neg:
676: NEG
677: RET
678: testset_neg:
679: defw testname_neg
680: defw testexec_neg
681: defw testdata_neg_00
682: testname_neg:
683: defm "NEG $"
684:
685: testdata_neg_00: defb 000H,000H,000H,042H
686: testdata_neg_01: defb 001H,000H,0ffH,093H
687: testdata_neg_02: defb 00fH,000H,0f1H,093H
688: testdata_neg_03: defb 010H,000H,0f0H,083H
689: testdata_neg_04: defb 07fH,000H,081H,093H
690: testdata_neg_05: defb 080H,000H,080H,087H
691: testdata_neg_06: defb 0ffH,000H,001H,013H
692: defb 0,0,0,0FFH
693:
694: test_cpl:
695: LD HL,testset_cpl
696: JP testrun1
697: testexec_cpl:
698: CPL
699: RET
700: testset_cpl:
701: defw testname_cpl
702: defw testexec_cpl
703: defw testdata_cpl_00
704: testname_cpl:
705: defm "CPL $"
706:
707: testdata_cpl_00: defb 000H,0c5H,0ffH,0d7H
708: testdata_cpl_01: defb 001H,000H,0feH,012H
709: testdata_cpl_02: defb 003H,0c5H,0fcH,0d7H
710: testdata_cpl_03: defb 055H,000H,0aaH,012H
711: testdata_cpl_04: defb 07fH,0c5H,080H,0d7H
712: testdata_cpl_05: defb 0aaH,000H,055H,012H
713: testdata_cpl_06: defb 0ffH,0c5H,000H,0d7H
714: defb 0,0,0,0FFH
715:
716: test_rla:
717: LD HL,testset_rla
718: JP testrun1
719: testexec_rla:
720: RLA
721: RET
722: testset_rla:
723: defw testname_rla
724: defw testexec_rla
725: defw testdata_rla_00
726: testname_rla:
727: defm "RLA $"
728:
729: testdata_rla_00: defb 000H,0d6H,000H,0c4H
730: testdata_rla_01: defb 000H,0d7H,001H,0c4H
731: testdata_rla_02: defb 001H,012H,002H,000H
732: testdata_rla_03: defb 001H,013H,003H,000H
733: testdata_rla_04: defb 003H,0d6H,006H,0c4H
734: testdata_rla_05: defb 003H,0d7H,007H,0c4H
735: testdata_rla_06: defb 055H,012H,0aaH,000H
736: testdata_rla_07: defb 055H,013H,0abH,000H
737: testdata_rla_08: defb 07fH,0d6H,0feH,0c4H
738: testdata_rla_09: defb 07fH,0d7H,0ffH,0c4H
739: testdata_rla_0a: defb 0aaH,012H,054H,001H
740: testdata_rla_0b: defb 0aaH,013H,055H,001H
741: testdata_rla_0c: defb 0ffH,0d6H,0feH,0c5H
742: testdata_rla_0d: defb 0ffH,0d7H,0ffH,0c5H
743: defb 0,0,0,0FFH
744:
745: test_rra:
746: LD HL,testset_rra
747: JP testrun1
748: testexec_rra:
749: RRA
750: RET
751: testset_rra:
752: defw testname_rra
753: defw testexec_rra
754: defw testdata_rra_00
755: testname_rra:
756: defm "RRA $"
757:
758: testdata_rra_00: defb 000H,0d6H,000H,0c4H
759: testdata_rra_01: defb 000H,0d7H,080H,0c4H
760: testdata_rra_02: defb 001H,012H,000H,001H
761: testdata_rra_03: defb 001H,013H,080H,001H
762: testdata_rra_04: defb 003H,0d6H,001H,0c5H
763: testdata_rra_05: defb 003H,0d7H,081H,0c5H
764: testdata_rra_06: defb 055H,012H,02aH,001H
765: testdata_rra_07: defb 055H,013H,0aaH,001H
766: testdata_rra_08: defb 07fH,0d6H,03fH,0c5H
767: testdata_rra_09: defb 07fH,0d7H,0bfH,0c5H
768: testdata_rra_0a: defb 0aaH,012H,055H,000H
769: testdata_rra_0b: defb 0aaH,013H,0d5H,000H
770: testdata_rra_0c: defb 0ffH,0d6H,07fH,0c5H
771: testdata_rra_0d: defb 0ffH,0d7H,0ffH,0c5H
772: defb 0,0,0,0FFH
773:
774: test_rlca:
775: LD HL,testset_rlca
776: JP testrun1
777: testexec_rlca:
778: RLCA
779: RET
780: testset_rlca:
781: defw testname_rlca
782: defw testexec_rlca
783: defw testdata_rlca_00
784: testname_rlca:
785: defm "RLCA $"
786:
787: testdata_rlca_00: defb 000H,0d6H,000H,0c4H
788: testdata_rlca_01: defb 001H,012H,002H,000H
789: testdata_rlca_02: defb 003H,0d6H,006H,0c4H
790: testdata_rlca_03: defb 055H,012H,0aaH,000H
791: testdata_rlca_04: defb 07fH,0d6H,0feH,0c4H
792: testdata_rlca_05: defb 0aaH,012H,055H,001H
793: testdata_rlca_06: defb 0ffH,0d6H,0ffH,0c5H
794: defb 0,0,0,0FFH
795:
796: test_rrca:
797: LD HL,testset_rrca
798: JP testrun1
799: testexec_rrca:
800: RRCA
801: RET
802: testset_rrca:
803: defw testname_rrca
804: defw testexec_rrca
805: defw testdata_rrca_00
806: testname_rrca:
807: defm "RRCA $"
808:
809: testdata_rrca_00: defb 000H,0d6H,000H,0c4H
810: testdata_rrca_01: defb 001H,012H,080H,001H
811: testdata_rrca_02: defb 003H,0d6H,081H,0c5H
812: testdata_rrca_03: defb 055H,012H,0aaH,001H
813: testdata_rrca_04: defb 07fH,0d6H,0bfH,0c5H
814: testdata_rrca_05: defb 0aaH,012H,055H,000H
815: testdata_rrca_06: defb 0ffH,0d6H,0ffH,0c5H
816: defb 0,0,0,0FFH
817:
818: test_rl:
819: LD HL,testset_rl
820: JP testrun1
821: testexec_rl:
822: RL A
823: RET
824: testset_rl:
825: defw testname_rl
826: defw testexec_rl
827: defw testdata_rl_00
828: testname_rl:
829: defm "RL $"
830:
831: testdata_rl_00: defb 000H,012H,000H,044H
832: testdata_rl_01: defb 000H,013H,001H,000H
833: testdata_rl_02: defb 001H,012H,002H,000H
834: testdata_rl_03: defb 001H,013H,003H,004H
835: testdata_rl_04: defb 003H,012H,006H,004H
836: testdata_rl_05: defb 003H,013H,007H,000H
837: testdata_rl_06: defb 055H,012H,0aaH,084H
838: testdata_rl_07: defb 055H,013H,0abH,080H
839: testdata_rl_08: defb 07fH,012H,0feH,080H
840: testdata_rl_09: defb 07fH,013H,0ffH,084H
841: testdata_rl_0a: defb 0aaH,012H,054H,001H
842: testdata_rl_0b: defb 0aaH,013H,055H,005H
843: testdata_rl_0c: defb 0ffH,012H,0feH,081H
844: testdata_rl_0d: defb 0ffH,013H,0ffH,085H
845: defb 0,0,0,0FFH
846:
847: test_rr:
848: LD HL,testset_rr
849: JP testrun1
850: testexec_rr:
851: RR A
852: RET
853: testset_rr:
854: defw testname_rr
855: defw testexec_rr
856: defw testdata_rr_00
857: testname_rr:
858: defm "RR $"
859:
860: testdata_rr_00: defb 000H,012H,000H,044H
861: testdata_rr_01: defb 000H,013H,080H,080H
862: testdata_rr_02: defb 001H,012H,000H,045H
863: testdata_rr_03: defb 001H,013H,080H,081H
864: testdata_rr_04: defb 003H,012H,001H,001H
865: testdata_rr_05: defb 003H,013H,081H,085H
866: testdata_rr_06: defb 055H,012H,02aH,001H
867: testdata_rr_07: defb 055H,013H,0aaH,085H
868: testdata_rr_08: defb 07fH,012H,03fH,005H
869: testdata_rr_09: defb 07fH,013H,0bfH,081H
870: testdata_rr_0a: defb 0aaH,012H,055H,004H
871: testdata_rr_0b: defb 0aaH,013H,0d5H,080H
872: testdata_rr_0c: defb 0ffH,012H,07fH,001H
873: testdata_rr_0d: defb 0ffH,013H,0ffH,085H
874: defb 0,0,0,0FFH
875:
876: test_rlc:
877: LD HL,testset_rlc
878: JP testrun1
879: testexec_rlc:
880: RLC A
881: RET
882: testset_rlc:
883: defw testname_rlc
884: defw testexec_rlc
885: defw testdata_rlc_00
886: testname_rlc:
887: defm "RLC $"
888:
889: testdata_rlc_00: defb 000H,012H,000H,044H
890: testdata_rlc_01: defb 001H,012H,002H,000H
891: testdata_rlc_02: defb 003H,012H,006H,004H
892: testdata_rlc_03: defb 055H,012H,0aaH,084H
893: testdata_rlc_04: defb 07fH,012H,0feH,080H
894: testdata_rlc_05: defb 0aaH,012H,055H,005H
895: testdata_rlc_06: defb 0ffH,012H,0ffH,085H
896: defb 0,0,0,0FFH
897:
898: test_rrc:
899: LD HL,testset_rrc
900: JP testrun1
901: testexec_rrc:
902: RRC A
903: RET
904: testset_rrc:
905: defw testname_rrc
906: defw testexec_rrc
907: defw testdata_rrc_00
908: testname_rrc:
909: defm "RRC $"
910:
911: testdata_rrc_00: defb 000H,012H,000H,044H
912: testdata_rrc_01: defb 001H,012H,080H,081H
913: testdata_rrc_02: defb 003H,012H,081H,085H
914: testdata_rrc_03: defb 055H,012H,0aaH,085H
915: testdata_rrc_04: defb 07fH,012H,0bfH,081H
916: testdata_rrc_05: defb 0aaH,012H,055H,004H
917: testdata_rrc_06: defb 0ffH,012H,0ffH,085H
918: defb 0,0,0,0FFH
919:
920: test_sla:
921: LD HL,testset_sla
922: JP testrun1
923: testexec_sla:
924: SLA A
925: RET
926: testset_sla:
927: defw testname_sla
928: defw testexec_sla
929: defw testdata_sla_00
930: testname_sla:
931: defm "SLA $"
932:
933: testdata_sla_00: defb 000H,012H,000H,044H
934: testdata_sla_01: defb 001H,012H,002H,000H
935: testdata_sla_02: defb 003H,012H,006H,004H
936: testdata_sla_03: defb 055H,012H,0aaH,084H
937: testdata_sla_04: defb 07fH,012H,0feH,080H
938: testdata_sla_05: defb 0aaH,012H,054H,001H
939: testdata_sla_06: defb 0ffH,012H,0feH,081H
940: defb 0,0,0,0FFH
941:
942: test_sra:
943: LD HL,testset_sra
944: JP testrun1
945: testexec_sra:
946: SRA A
947: RET
948: testset_sra:
949: defw testname_sra
950: defw testexec_sra
951: defw testdata_sra_00
952: testname_sra:
953: defm "SRA $"
954:
955: testdata_sra_00: defb 000H,012H,000H,044H
956: testdata_sra_01: defb 001H,012H,000H,045H
957: testdata_sra_02: defb 003H,012H,001H,001H
958: testdata_sra_03: defb 055H,012H,02aH,001H
959: testdata_sra_04: defb 07fH,012H,03fH,005H
960: testdata_sra_05: defb 0aaH,012H,0d5H,080H
961: testdata_sra_06: defb 0ffH,012H,0ffH,085H
962: defb 0,0,0,0FFH
963:
964: test_srl:
965: LD HL,testset_srl
966: JP testrun1
967: testexec_srl:
968: SRL A
969: RET
970: testset_srl:
971: defw testname_srl
972: defw testexec_srl
973: defw testdata_srl_00
974: testname_srl:
975: defm "SRL $"
976:
977: testdata_srl_00: defb 000H,012H,000H,044H
978: testdata_srl_01: defb 001H,012H,000H,045H
979: testdata_srl_02: defb 003H,012H,001H,001H
980: testdata_srl_03: defb 055H,012H,02aH,001H
981: testdata_srl_04: defb 07fH,012H,03fH,005H
982: testdata_srl_05: defb 0aaH,012H,055H,004H
983: testdata_srl_06: defb 0ffH,012H,07fH,001H
984: defb 0,0,0,0FFH
985:
986: main:
987: CALL test_add
988: CALL test_adc
989: CALL test_sub
990: CALL test_sbc
991: CALL test_and
992: CALL test_or
993: CALL test_xor
994: CALL test_cp
995: CALL test_inc
996: CALL test_dec
997: CALL test_neg
998: CALL test_cpl
999: CALL test_rla
1000: CALL test_rra
1001: CALL test_rlca
1002: CALL test_rrca
1003: CALL test_rl
1004: CALL test_rr
1005: CALL test_rlc
1006: CALL test_rrc
1007: CALL test_sla
1008: CALL test_sra
1009: CALL test_srl
1010: RET
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.