forked from dhansel/Altair8800
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prog_tools.cpp
596 lines (558 loc) · 41.8 KB
/
prog_tools.cpp
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
#include <Arduino.h>
#include "prog_tools.h"
#include "host.h"
const byte PROGMEM BDOS[28] = {
/* 0x0000 */ B11000011, 0x00, 0x00, // jmp 0000
/* 000003 */ B00000000, // nop
/* 000004 */ B00000000, // nop
/* 0x0005 */ B01111001, // mov a, c
/* 0x0006 */ B11111110, 0x02, // cpi 02
/* 0x0008 */ B11001010, 0x18, 0x00, // jz chrout
/* 0x000b */ B11111110, 0x09, // cpi 09
/* 0x000d */ B11000000, // rnz
// loop:
/* 0x000e */ B00011010, // ldax de
/* 0x000f */ B11111110, 0x24, // cpi '$'
/* 0x0011 */ B11001000, // rz
/* 0x0012 */ B11010011, 0x11, // out 0x11
/* 0x0014 */ B00010011, // inx de
/* 0x0015 */ B11000011, 0x0e, 0x00, // jmp loop
// chrout:
/* 0x0018 */ B01111011, // mov a,e
/* 0x0019 */ B11010011, 0x11, // out 0x11
/* 0x001b */ B11001001 // ret
};
const byte PROGMEM i8080_cpudiag[92*16] =
{0xC3,0xAB,0x01,0x4D,0x49,0x43,0x52,0x4F,0x43,0x4F,0x53,0x4D,0x20,0x41,0x53,0x53,
0x4F,0x43,0x49,0x41,0x54,0x45,0x53,0x20,0x38,0x30,0x38,0x30,0x2F,0x38,0x30,0x38,
0x35,0x20,0x43,0x50,0x55,0x20,0x44,0x49,0x41,0x47,0x4E,0x4F,0x53,0x54,0x49,0x43,
0x20,0x56,0x45,0x52,0x53,0x49,0x4F,0x4E,0x20,0x31,0x2E,0x30,0x20,0x28,0x43,0x29,
0x20,0x31,0x39,0x38,0x30,0xD5,0xEB,0x0E,0x09,0xCD,0x05,0x00,0xD1,0xC9,0x0E,0x02,
0xCD,0x05,0x00,0xC9,0xF5,0xCD,0x64,0x01,0x5F,0xCD,0x4E,0x01,0xF1,0xCD,0x68,0x01,
0x5F,0xC3,0x4E,0x01,0x0F,0x0F,0x0F,0x0F,0xE6,0x0F,0xFE,0x0A,0xFA,0x71,0x01,0xC6,
0x07,0xC6,0x30,0xC9,0x0C,0x0D,0x0A,0x20,0x43,0x50,0x55,0x20,0x49,0x53,0x20,0x4F,
0x50,0x45,0x52,0x41,0x54,0x49,0x4F,0x4E,0x41,0x4C,0x24,0x0C,0x0D,0x0A,0x20,0x43,
0x50,0x55,0x20,0x48,0x41,0x53,0x20,0x46,0x41,0x49,0x4C,0x45,0x44,0x21,0x20,0x45,
0x52,0x52,0x4F,0x52,0x20,0x45,0x58,0x49,0x54,0x3D,0x24,0x31,0xA4,0x07,0xE6,0x00,
0xCA,0xB6,0x01,0xCD,0x89,0x06,0xD2,0xBC,0x01,0xCD,0x89,0x06,0xEA,0xC2,0x01,0xCD,
0x89,0x06,0xF2,0xC8,0x01,0xCD,0x89,0x06,0xC2,0xD7,0x01,0xDA,0xD7,0x01,0xE2,0xD7,
0x01,0xFA,0xD7,0x01,0xC3,0xDA,0x01,0xCD,0x89,0x06,0xC6,0x06,0xC2,0xE2,0x01,0xCD,
0x89,0x06,0xDA,0xEB,0x01,0xE2,0xEB,0x01,0xF2,0xEE,0x01,0xCD,0x89,0x06,0xC6,0x70,
0xE2,0xF6,0x01,0xCD,0x89,0x06,0xFA,0xFF,0x01,0xCA,0xFF,0x01,0xD2,0x02,0x02,0xCD,
0x89,0x06,0xC6,0x81,0xFA,0x0A,0x02,0xCD,0x89,0x06,0xCA,0x13,0x02,0xDA,0x13,0x02,
0xE2,0x16,0x02,0xCD,0x89,0x06,0xC6,0xFE,0xDA,0x1E,0x02,0xCD,0x89,0x06,0xCA,0x27,
0x02,0xE2,0x27,0x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x03,0xC6,0xFE,0xD8,0xCD,0x89,0x06,0xC8,0xC6,0x01,0xCC,0x14,0x03,0xC6,0xD0,
0xC0,0xCD,0x89,0x06,0xC0,0xC6,0x47,0xFE,0x47,0xC8,0xCD,0x89,0x06,0x3E,0x77,0x3C,
0x47,0x04,0x48,0x0D,0x51,0x5A,0x63,0x6C,0x7D,0x3D,0x4F,0x59,0x6B,0x45,0x50,0x62,
0x7C,0x57,0x14,0x6A,0x4D,0x0C,0x61,0x44,0x05,0x58,0x7B,0x5F,0x1C,0x43,0x60,0x24,
0x4C,0x69,0x55,0x15,0x7A,0x67,0x25,0x54,0x42,0x68,0x2C,0x5D,0x1D,0x4B,0x79,0x6F,
0x2D,0x65,0x5C,0x53,0x4A,0x41,0x78,0xFE,0x77,0xC4,0x89,0x06,0xAF,0x06,0x01,0x0E,
0x03,0x16,0x07,0x1E,0x0F,0x26,0x1F,0x2E,0x3F,0x80,0x81,0x82,0x83,0x84,0x85,0x87,
0xFE,0xF0,0xC4,0x89,0x06,0x90,0x91,0x92,0x93,0x94,0x95,0xFE,0x78,0xC4,0x89,0x06,
0x97,0xC4,0x89,0x06,0x3E,0x80,0x87,0x06,0x01,0x0E,0x02,0x16,0x03,0x1E,0x04,0x26,
0x05,0x2E,0x06,0x88,0x06,0x80,0x80,0x80,0x89,0x80,0x80,0x8A,0x80,0x80,0x8B,0x80,
0x80,0x8C,0x80,0x80,0x8D,0x80,0x80,0x8F,0xFE,0x37,0xC4,0x89,0x06,0x3E,0x80,0x87,
0x06,0x01,0x98,0x06,0xFF,0x80,0x99,0x80,0x9A,0x80,0x9B,0x80,0x9C,0x80,0x9D,0xFE,
0xE0,0xC4,0x89,0x06,0x3E,0x80,0x87,0x9F,0xFE,0xFF,0xC4,0x89,0x06,0x3E,0xFF,0x06,
0xFE,0x0E,0xFC,0x16,0xEF,0x1E,0x7F,0x26,0xF4,0x2E,0xBF,0xA7,0xA1,0xA2,0xA3,0xA4,
0xA5,0xA7,0xFE,0x24,0xC4,0x89,0x06,0xAF,0x06,0x01,0x0E,0x02,0x16,0x04,0x1E,0x08,
0x26,0x10,0x2E,0x20,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB7,0xFE,0x3F,0xC4,0x89,0x06,
0x3E,0x00,0x26,0x8F,0x2E,0x4F,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xFE,0xCF,0xC4,0x89,
0x06,0xAF,0xC4,0x89,0x06,0x06,0x44,0x0E,0x45,0x16,0x46,0x1E,0x47,0x26,0x06,0x2E,
0xA6,0x70,0x06,0x00,0x46,0x3E,0x44,0xB8,0xC4,0x89,0x06,0x72,0x16,0x00,0x56,0x3E,
0x46,0xBA,0xC4,0x89,0x06,0x73,0x1E,0x00,0x5E,0x3E,0x47,0xBB,0xC4,0x89,0x06,0x74,
0x26,0x06,0x2E,0xA6,0x66,0x3E,0x06,0xBC,0xC4,0x89,0x06,0x75,0x26,0x06,0x2E,0xA6,
0x6E,0x3E,0xA6,0xBD,0xC4,0x89,0x06,0x26,0x06,0x2E,0xA6,0x3E,0x32,0x77,0xBE,0xC4,
0x89,0x06,0x86,0xFE,0x64,0xC4,0x89,0x06,0xAF,0x7E,0xFE,0x32,0xC4,0x89,0x06,0x26,
0x06,0x2E,0xA6,0x7E,0x96,0xC4,0x89,0x06,0x3E,0x80,0x87,0x8E,0xFE,0x33,0xC4,0x89,
0x06,0x3E,0x80,0x87,0x9E,0xFE,0xCD,0xC4,0x89,0x06,0xA6,0xC4,0x89,0x06,0x3E,0x25,
0xB6,0xFE,0x37,0xC4,0x89,0x06,0xAE,0xFE,0x05,0xC4,0x89,0x06,0x36,0x55,0x34,0x35,
0x86,0xFE,0x5A,0xC4,0x89,0x06,0x01,0xFF,0x12,0x11,0xFF,0x12,0x21,0xFF,0x12,0x03,
0x13,0x23,0x3E,0x13,0xB8,0xC4,0x89,0x06,0xBA,0xC4,0x89,0x06,0xBC,0xC4,0x89,0x06,
0x3E,0x00,0xB9,0xC4,0x89,0x06,0xBB,0xC4,0x89,0x06,0xBD,0xC4,0x89,0x06,0x0B,0x1B,
0x2B,0x3E,0x12,0xB8,0xC4,0x89,0x06,0xBA,0xC4,0x89,0x06,0xBC,0xC4,0x89,0x06,0x3E,
0xFF,0xB9,0xC4,0x89,0x06,0xBB,0xC4,0x89,0x06,0xBD,0xC4,0x89,0x06,0x32,0xA6,0x06,
0xAF,0x3A,0xA6,0x06,0xFE,0xFF,0xC4,0x89,0x06,0x2A,0xA4,0x06,0x22,0xA6,0x06,0x3A,
0xA4,0x06,0x47,0x3A,0xA6,0x06,0xB8,0xC4,0x89,0x06,0x3A,0xA5,0x06,0x47,0x3A,0xA7,
0x06,0xB8,0xC4,0x89,0x06,0x3E,0xAA,0x32,0xA6,0x06,0x44,0x4D,0xAF,0x0A,0xFE,0xAA,
0xC4,0x89,0x06,0x3C,0x02,0x3A,0xA6,0x06,0xFE,0xAB,0xC4,0x89,0x06,0x3E,0x77,0x32,
0xA6,0x06,0x2A,0xA4,0x06,0x11,0x00,0x00,0xEB,0xAF,0x1A,0xFE,0x77,0xC4,0x89,0x06,
0xAF,0x84,0x85,0xC4,0x89,0x06,0x3E,0xCC,0x12,0x3A,0xA6,0x06,0xFE,0xCC,0x12,0x3A,
0xA6,0x06,0xFE,0xCC,0xC4,0x89,0x06,0x21,0x77,0x77,0x29,0x3E,0xEE,0xBC,0xC4,0x89,
0x06,0xBD,0xC4,0x89,0x06,0x21,0x55,0x55,0x01,0xFF,0xFF,0x09,0x3E,0x55,0xD4,0x89,
0x06,0xBC,0xC4,0x89,0x06,0x3E,0x54,0xBD,0xC4,0x89,0x06,0x21,0xAA,0xAA,0x11,0x33,
0x33,0x19,0x3E,0xDD,0xBC,0xC4,0x89,0x06,0xBD,0xC4,0x89,0x06,0x37,0xD4,0x89,0x06,
0x3F,0xDC,0x89,0x06,0x3E,0xAA,0x2F,0xFE,0x55,0xC4,0x89,0x06,0xB7,0x27,0xFE,0x55,
0xC4,0x89,0x06,0x3E,0x88,0x87,0x27,0xFE,0x76,0xC4,0x89,0x06,0xAF,0x3E,0xAA,0x27,
0xD4,0x89,0x06,0xFE,0x10,0xC4,0x89,0x06,0xAF,0x3E,0x9A,0x27,0xD4,0x89,0x06,0xC4,
0x89,0x06,0x37,0x3E,0x42,0x07,0xDC,0x89,0x06,0x07,0xD4,0x89,0x06,0xFE,0x09,0xC4,
0x89,0x06,0x0F,0xD4,0x89,0x06,0x0F,0xFE,0x42,0xC4,0x89,0x06,0x17,0x17,0xD4,0x89,
0x06,0xFE,0x08,0xC4,0x89,0x06,0x1F,0x1F,0xDC,0x89,0x06,0xFE,0x02,0xC4,0x89,0x06,
0x01,0x34,0x12,0x11,0xAA,0xAA,0x21,0x55,0x55,0xAF,0xC5,0xD5,0xE5,0xF5,0x01,0x00,
0x00,0x11,0x00,0x00,0x21,0x00,0x00,0x3E,0xC0,0xC6,0xF0,0xF1,0xE1,0xD1,0xC1,0xDC,
0x89,0x06,0xC4,0x89,0x06,0xE4,0x89,0x06,0xFC,0x89,0x06,0x3E,0x12,0xB8,0xC4,0x89,
0x06,0x3E,0x34,0xB9,0xC4,0x89,0x06,0x3E,0xAA,0xBA,0xC4,0x89,0x06,0xBB,0xC4,0x89,
0x06,0x3E,0x55,0xBC,0xC4,0x89,0x06,0xBD,0xC4,0x89,0x06,0x21,0x00,0x00,0x39,0x22,
0xAB,0x06,0x31,0xAA,0x06,0x3B,0x3B,0x33,0x3B,0x3E,0x55,0x32,0xA8,0x06,0x2F,0x32,
0xA9,0x06,0xC1,0xB8,0xC4,0x89,0x06,0x2F,0xB9,0xC4,0x89,0x06,0x21,0xAA,0x06,0xF9,
0x21,0x33,0x77,0x3B,0x3B,0xE3,0x3A,0xA9,0x06,0xFE,0x77,0xC4,0x89,0x06,0x3A,0xA8,
0x06,0xFE,0x33,0xC4,0x89,0x06,0x3E,0x55,0xBD,0xC4,0x89,0x06,0x2F,0xBC,0xC4,0x89,
0x06,0x2A,0xAB,0x06,0xF9,0x21,0x9B,0x06,0xE9,0x21,0x8B,0x01,0xCD,0x45,0x01,0xE3,
0x7C,0xCD,0x54,0x01,0x7D,0xCD,0x54,0x01,0xC3,0x00,0x00,0x21,0x74,0x01,0xCD,0x45,
0x01,0xC3,0x00,0x00,0xA6,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
const byte PROGMEM i8080_exerciser[288*16] = {
0xc3,0x13,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,/*0x2a,0x00,0x06,*/ 0x21,0xFF,0x00,0xf9,0x11,0x01,0x0e,0x0e,0x09,0xcd,0xf5,0x0d,0x21,
/*0x3a*/0x3a,0x01,0x7e,0x23,0xb6,0xca,0x2f,0x01,0x2b,0xcd,0xce,0x0a,0xc3,0x22,0x01,0x11,
0x1e,0x0e,0x0e,0x09,0xcd,0xf5,0x0d,0xc3,0x00,0x00,0x6e,0x01,0xce,0x01,/*0x2e,0x02,*/0x6e,0x0a,
0x8e,0x02,0xee,0x02,0x4e,0x03,0xae,0x03,0x0e,0x04,0x6e,0x04,0xce,0x04,0x2e,0x05,
0x8e,0x05,0xee,0x05,0x4e,0x06,0xae,0x06,0x0e,0x07,0x6e,0x07,0xce,0x07,0x2e,0x08,
0x8e,0x08,0xee,0x08,0x4e,0x09,0xae,0x09,0x0e,0x0a,/*0x6e,0x0a,*/0x2e,0x02,0x00,0x00,0xff,0x09,
0x00,0x00,0x00,0xa5,0xc4,0xc7,0xc4,0x26,0xd2,0x50,0xa0,0xea,0x58,0x66,0x85,0xc6,
0xde,0xc9,0x9b,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0xf8,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xd7,0x00,0xff,0xff,0x14,0x47,0x4b,0xa6,0x64,
0x61,0x64,0x20,0x3c,0x62,0x2c,0x64,0x2c,0x68,0x2c,0x73,0x70,0x3e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0xc6,
0x00,0x00,0x00,0x40,0x91,0x3c,0x7e,0x67,0x7a,0x6d,0xdf,0x61,0x5b,0x29,0x0b,0x10,
0x66,0xb2,0x85,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0x9e,0x92,0x2f,0x9e,0x61,
0x6c,0x75,0x6f,0x70,0x20,0x6e,0x6e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x80,
0x00,0x00,0x00,0x3e,0xc5,0x3a,0x57,0x4d,0x4c,0x03,0x01,0x09,0xe3,0x66,0xa6,0xd0,
0x3b,0xbb,0xad,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xff,0xff,0xff,0xff,0xd7,0x00,0x00,0x00,0xcf,0x76,0x2c,0x86,0x61,
0x6c,0x75,0x6f,0x70,0x20,0x3c,0x62,0x2c,0x63,0x2c,0x64,0x2c,0x65,0x2c,0x68,0x2c,
0x6c,0x2c,0x6d,0x2c,0x61,0x3e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x27,
0x00,0x00,0x00,0x41,0x21,0xfa,0x09,0x60,0x1d,0x59,0xa5,0x5b,0x8d,0x79,0x90,0x04,
0x8e,0x9d,0x29,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xd7,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xbb,0x3f,0x03,0x0c,0x3c,
0x64,0x61,0x61,0x2c,0x63,0x6d,0x61,0x2c,0x73,0x74,0x63,0x2c,0x63,0x6d,0x63,0x3e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x3c,
0x00,0x00,0x00,0xdf,0x4a,0xd8,0xd5,0x98,0xe5,0x2b,0x8a,0xb0,0xa7,0x1b,0x43,0x44,
0x5a,0x30,0xd0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0xad,0xb6,0x46,0x0e,0x3c,
0x69,0x6e,0x72,0x2c,0x64,0x63,0x72,0x3e,0x20,0x61,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x04,
0x00,0x00,0x00,0x23,0xd6,0x2d,0x43,0x61,0x7a,0x80,0x81,0x86,0x5a,0x85,0x1e,0x86,
0x58,0xbb,0x9b,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0x83,0xed,0x13,0x45,0x3c,
0x69,0x6e,0x72,0x2c,0x64,0x63,0x72,0x3e,0x20,0x62,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x03,
0x00,0x00,0x00,0x97,0xcd,0xab,0x44,0xc9,0x8d,0xe3,0xe3,0xcc,0x11,0xa4,0xe8,0x02,
0x49,0x4d,0x2a,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x21,0xf8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0xf7,0x92,0x87,0xcd,0x3c,
0x69,0x6e,0x78,0x2c,0x64,0x63,0x78,0x3e,0x20,0x62,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x0c,
0x00,0x00,0x00,0x89,0xd7,0x35,0x09,0x5b,0x05,0x85,0x9f,0x27,0x8b,0x08,0xd2,0x95,
0x05,0x60,0x06,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0xe5,0xf6,0x72,0x1b,0x3c,
0x69,0x6e,0x72,0x2c,0x64,0x63,0x72,0x3e,0x20,0x63,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x14,
0x00,0x00,0x00,0xea,0xa0,0xba,0x5f,0xfb,0x65,0x1c,0x98,0xcc,0x38,0xbc,0xde,0x43,
0x5c,0xbd,0x03,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0x15,0xb5,0x57,0x9a,0x3c,
0x69,0x6e,0x72,0x2c,0x64,0x63,0x72,0x3e,0x20,0x64,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x13,
0x00,0x00,0x00,0x2e,0x34,0x1d,0x13,0xc9,0x28,0xca,0x0a,0x67,0x99,0x2e,0x3a,0x92,
0xf6,0x54,0x9d,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,
0xf8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0x7f,0x4e,0x25,0x01,0x3c,
0x69,0x6e,0x78,0x2c,0x64,0x63,0x78,0x3e,0x20,0x64,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x1c,
0x00,0x00,0x00,0x2f,0x60,0x0d,0x4c,0x02,0x24,0xf5,0xe2,0xf4,0xa0,0x0a,0xa1,0x13,
0x32,0x25,0x59,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0xcf,0x2a,0xb3,0x96,0x3c,
0x69,0x6e,0x72,0x2c,0x64,0x63,0x72,0x3e,0x20,0x65,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x24,
0x00,0x00,0x00,0x06,0x15,0xeb,0xf2,0xdd,0xe8,0x2b,0x26,0xa6,0x11,0x1a,0xbc,0x17,
0x06,0x18,0x28,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0x12,0xb2,0x95,0x2c,0x3c,
0x69,0x6e,0x72,0x2c,0x64,0x63,0x72,0x3e,0x20,0x68,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x23,
0x00,0x00,0x00,0xf4,0xc3,0xa5,0x07,0x6d,0x1b,0x04,0x4f,0xc2,0xe2,0x2a,0x82,0x57,
0xe0,0xe1,0xc3,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0xf8,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0x9f,0x2b,0x23,0xc0,0x3c,
0x69,0x6e,0x78,0x2c,0x64,0x63,0x78,0x3e,0x20,0x68,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x2c,
0x00,0x00,0x00,0x31,0x80,0x20,0xa5,0x56,0x43,0x09,0xb4,0xc1,0xf4,0xa2,0xdf,0xd1,
0x3c,0xa2,0x3e,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0xff,0x57,0xd3,0x56,0x3c,
0x69,0x6e,0x72,0x2c,0x64,0x63,0x72,0x3e,0x20,0x6c,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x34,
0x00,0x00,0x00,0x56,0xb8,0x7c,0x0c,0x3e,0xe5,0x03,0x01,0x7e,0x87,0x58,0xda,0x15,
0x5c,0x37,0x1f,0x01,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0x92,0xe9,0x63,0xbd,0x3c,
0x69,0x6e,0x72,0x2c,0x64,0x63,0x72,0x3e,0x20,0x6d,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x33,
0x00,0x00,0x00,0x6f,0x34,0x82,0xd4,0x69,0xd1,0xb6,0xde,0x94,0xa4,0x76,0xf4,0x53,
0x02,0x5b,0x85,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x21,0xf8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0xd5,0x70,0x2f,0xab,0x3c,
0x69,0x6e,0x78,0x2c,0x64,0x63,0x78,0x3e,0x20,0x73,0x70,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x2a,
0x03,0x01,0x00,0x63,0x98,0x30,0x78,0x77,0x20,0xfe,0xb1,0xfa,0xb9,0xb8,0xab,0x04,
0x06,0x15,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xa9,0xc3,0xd5,0xcb,0x6c,
0x68,0x6c,0x64,0x20,0x6e,0x6e,0x6e,0x6e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x22,
0x03,0x01,0x00,0x03,0xd0,0x72,0x77,0x53,0x7f,0x72,0x3f,0xea,0x64,0x80,0xe1,0x10,
0x2d,0xe9,0x35,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xe8,0x86,0x4f,0x26,0x73,
0x68,0x6c,0x64,0x20,0x6e,0x6e,0x6e,0x6e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x01,
0x00,0x00,0x00,0x1c,0x5c,0x46,0x2d,0xb9,0x8e,0x78,0x60,0xb1,0x74,0x0e,0xb3,0x46,
0xd1,0xcc,0x30,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xfc,0xf4,0x6e,0x12,0x6c,
0x78,0x69,0x20,0x3c,0x62,0x2c,0x64,0x2c,0x68,0x2c,0x73,0x70,0x3e,0x2c,0x6e,0x6e,
0x6e,0x6e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x0a,
0x00,0x00,0x00,0xa8,0xb3,0x2a,0x1d,0x8e,0x7f,0xac,0x42,0x03,0x01,0x03,0x01,0xc6,
0xb1,0x8e,0xef,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0xff,0x00,0x00,0x2b,0x82,0x1d,0x5f,0x6c,
0x64,0x61,0x78,0x20,0x3c,0x62,0x2c,0x64,0x3e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x06,
0x00,0x00,0x00,0x07,0xc4,0x9d,0xf4,0x3d,0xd1,0x39,0x03,0x89,0xde,0x55,0x74,0x53,
0xc0,0x09,0x55,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0xea,0xa7,0x20,0x44,0x6d,
0x76,0x69,0x20,0x3c,0x62,0x2c,0x63,0x2c,0x64,0x2c,0x65,0x2c,0x68,0x2c,0x6c,0x2c,
0x6d,0x2c,0x61,0x3e,0x2c,0x6e,0x6e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x40,
0x00,0x00,0x00,0xa4,0x72,0x24,0xa0,0xac,0x61,0x03,0x01,0xc7,0x82,0x8f,0x71,0x97,
0x8f,0x8e,0xef,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0xff,0xff,0xff,0xff,0xd7,0xff,0x00,0x00,0x10,0xb5,0x8c,0xee,0x6d,
0x6f,0x76,0x20,0x3c,0x62,0x63,0x64,0x65,0x68,0x6c,0x61,0x3e,0x2c,0x3c,0x62,0x63,
0x64,0x65,0x68,0x6c,0x61,0x3e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x32,
0x03,0x01,0x00,0x68,0xfd,0xec,0xf4,0xa0,0x44,0x43,0xb5,0x53,0x06,0xba,0xcd,0xd2,
0x4f,0xd8,0x1f,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0xff,0x00,0x00,0xed,0x57,0xaf,0x72,0x73,
0x74,0x61,0x20,0x6e,0x6e,0x6e,0x6e,0x20,0x2f,0x20,0x6c,0x64,0x61,0x20,0x6e,0x6e,
0x6e,0x6e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x07,
0x00,0x00,0x00,0x92,0xcb,0x43,0x6d,0x90,0x0a,0x84,0xc2,0x53,0x0c,0x0e,0xf5,0x91,
0xeb,0xfc,0x40,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xd7,0x00,0x00,0x00,0xe0,0xd8,0x92,0x35,0x3c,
0x72,0x6c,0x63,0x2c,0x72,0x72,0x63,0x2c,0x72,0x61,0x6c,0x2c,0x72,0x61,0x72,0x3e,
0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x2e,0x24,0xff,0x02,
0x00,0x00,0x00,0x3b,0x0c,0x92,0xb5,0xff,0x6c,0x9e,0x95,0x03,0x01,0x04,0x01,0xc1,
0x21,0xe7,0xbd,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00,0x00,0x2b,0x04,0x71,0xe9,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x16,0x00,0x5e,0x7b,0xa1,0xca,0x6e,0x0c,0x14,0x79,0x07,
0x4f,0xfe,0x01,0xc2,0x68,0x0c,0x23,0x05,0xc2,0x67,0x0c,0x7a,0xe6,0xf8,0x0f,0x0f,
0x0f,0x6f,0x26,0x00,0x7a,0xe6,0x07,0x3c,0x47,0x3e,0x80,0x07,0x05,0xc2,0x8b,0x0c,
0xd1,0x19,0x11,0x14,0x00,0x19,0x77,0xc9,0xc5,0xd5,0xe5,0x21,0xe9,0x0c,0x11,0x14,
0x00,0xeb,0x19,0xeb,0x34,0x7e,0xfe,0x00,0xca,0xb7,0x0c,0x47,0x1a,0xa0,0xca,0xb3,
0x0c,0x36,0x00,0xc1,0xd1,0xe1,0xc9,0x23,0x13,0xc3,0xa4,0x0c,0xc5,0xd5,0xe5,0x21,
0x11,0x0d,0x11,0x14,0x00,0xeb,0x19,0xeb,0x7e,0xb7,0xca,0xe4,0x0c,0x47,0x1a,0xa0,
0xc2,0xe0,0x0c,0x78,0x07,0xfe,0x01,0xc2,0xde,0x0c,0x36,0x00,0x23,0x13,0x77,0xaf,
0xe1,0xd1,0xc1,0xc9,0x23,0x13,0xc3,0xc8,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xf5,0xc5,0xd5,0xe5,0xf3,0x21,0x00,
0x00,0x39,0x22,0xb4,0x0d,0x31,0x05,0x01,0xe1,0xe1,0xe1,0xd1,0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x65,0x74,0x65,0x24,0x20,0x20,0x50,
0x41,0x53,0x53,0x21,0x20,0x63,0x72,0x63,0x20,0x69,0x73,0x3a,0x24,0x20,0x20,0x45,
0x52,0x52,0x4f,0x52,0x20,0x2a,0x2a,0x2a,0x2a,0x20,0x63,0x72,0x63,0x20,0x65,0x78,
0x70,0x65,0x63,0x74,0x65,0x64,0x3a,0x24,0x20,0x66,0x6f,0x75,0x6e,0x64,0x3a,0x24,
0x0a,0x0d,0x24,0xc5,0xd5,0xe5,0x11,0xb6,0x0e,0x06,0x04,0x1a,0xbe,0xc2,0x76,0x0e,
0x23,0x13,0x05,0xc2,0x6b,0x0e,0xe1,0xd1,0xc1,0xc9,0xf5,0xc5,0xd5,0xe5,0xe5,0x11,
0x03,0x00,0x19,0xae,0x6f,0x26,0x00,0x29,0x29,0xeb,0x21,0xba,0x0e,0x19,0xeb,0xe1,
0x01,0x04,0x00,0x1a,0xa8,0x46,0x77,0x13,0x23,0x0d,0xc2,0x93,0x0e,0xe1,0xd1,0xc1,
0xf1,0xc9,0xf5,0xc5,0xe5,0x21,0xb6,0x0e,0x3e,0xff,0x06,0x04,0x77,0x23,0x05,0xc2,
0xac,0x0e,0xe1,0xc1,0xf1,0xc9,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x77,0x07,
0x30,0x96,0xee,0x0e,0x61,0x2c,0x99,0x09,0x51,0xba,0x07,0x6d,0xc4,0x19,0x70,0x6a,
0xf4,0x8f,0xe9,0x63,0xa5,0x35,0x9e,0x64,0x95,0xa3,0x0e,0xdb,0x88,0x32,0x79,0xdc,
0xb8,0xa4,0xe0,0xd5,0xe9,0x1e,0x97,0xd2,0xd9,0x88,0x09,0xb6,0x4c,0x2b,0x7e,0xb1,
0x7c,0xbd,0xe7,0xb8,0x2d,0x07,0x90,0xbf,0x1d,0x91,0x1d,0xb7,0x10,0x64,0x6a,0xb0,
0x20,0xf2,0xf3,0xb9,0x71,0x48,0x84,0xbe,0x41,0xde,0x1a,0xda,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d,0xf2,0x1c,0xca,0xba,
0xc2,0x8a,0x53,0xb3,0x93,0x30,0x24,0xb4,0xa3,0xa6,0xba,0xd0,0x36,0x05,0xcd,0xd7,
0x06,0x93,0x54,0xde,0x57,0x29,0x23,0xd9,0x67,0xbf,0xb3,0x66,0x7a,0x2e,0xc4,0x61,
0x4a,0xb8,0x5d,0x68,0x1b,0x02,0x2a,0x6f,0x2b,0x94,0xb4,0x0b,0xbe,0x37,0xc3,0x0c,
0x8e,0xa1,0x5a,0x05,0xdf,0x1b,0x2d,0x02,0xef,0x8d,0xa0,0x0a,0xe2,0x78,0xd7,0x0d,
0xd2,0xee,0x4e,0x04,0x83,0x54,0x39,0x03,0xb3,0xc2,0xa7,0x67,0x26,0x61,0xd0,0x60,
0x16,0xf7,0x49,0x69,0x47,0x4d,0x3e,0x6e,0x77,0xdb,0xae,0xd1,0x6a,0x4a,0xd9,0xd6,
0x5a,0xdc,0x40,0xdf,0x0b,0x66,0x37,0xd8,0x3b,0xf0,0xa9,0xbc,0xae,0x53,0xde,0xbb,
0x9e,0xc5,0x47,0xb2,0xcf,0x7f,0x30,0xb5,0xff,0xe9,0xbd,0xbd,0xf2,0x1c,0xca,0xba};
static const byte PROGMEM statustest[] =
{0072, 0040, 0000, 0062, 0041, 0000, 0061, 0040, 0000,
0365, 0361, 0333, 0020, 0323, 0020, 0373, 0363, 0166};
static const byte PROGMEM serialirqtest[] =
{0061, 0000, 0001, 0076, 0003, 0323, 0020, 0076,
0225, 0323, 0020, 0373, 0000, 0166 /*0000*/, 0303, 0014,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0365, 0333, 0021, 0323, 0021, 0361, 0373, 0311 };
static const byte PROGMEM calc[] = {
B00000001, B00000000, B00000000, // 0x0000 LXI BC,0x0000 // clear B (sum) and C
B11011011, B11111111, // 0x0003 disp: IN 0xff // read sense switches
B11100110, B10000000, // 0x0005 ANI 0x80 // isolate highest bit
B01010111, // 0x0007 MOV D, A // remember in D
B00001010, // 0x0008 loop: LDAX BC // show content of B on A8-A15 leds
B00001010, // 0x0009 LDAX BC // (C shows on A0-A7 but is always 0)
B00001010, // 0x000A LDAX BC
B00001010, // 0x000B LDAX BC
B00001010, // 0x000C LDAX BC
B00001010, // 0x000D LDAX BC
B11011011, B11111111, // 0x000E IN 0xff // read sense switches
B10101010, // 0x0010 XRA D // has highest bit changed?
B11110010, B00001000, B00000000, // 0x0011 JP loop [0x0008] // loop if no change
B01011111, // 0x0014 MOV E, A // save full input in E
B11100110, B00011111, // 0x0015 ANI 0x2f // isolate lower 5 bits
B01010111, // 0x0017 MOV D, A // save input value in D
B01111011, // 0x0018 MOV A, E // get full input back
B11100110, B01100000, // 0x001A ANI 0x60 // isolate bits 5+6
B11111110, B00000000, // 0x001C CPI 0x00 // bits 5/6 = 00?
B11001010, B01010001, B00000000, // 0x001D JZ add [0x0051] // => addition
B11111110, B00100000, // 0x0020 CPI 0x20 // bits 5/6 = 01?
B11001010, B01001100, B00000000, // 0x0022 JZ sub [0x004C] // => subtraction
B11111110, B01000000, // 0x0025 CPI 0x40 // bits 5/6 = 10?
B11001010, B01010110, B00000000, // 0x0027 JZ mlt [0x0056] // => multiplication
B00010100, // 0x002A INC D
B00010101, // 0x002B DCR D
B11000010, B00110100, B00000000, // 0x002C JNZ div [0x0034] // divisor = 0?
B00000110, B11111111, // 0x002F MVI B, 0xFF // yes => result is 0xff
B11000011, B00000011, B00000000, // 0x0031 JMP disp [0x0003] // start over
B01111000, // 0x0034 div: MOV A, B // move divident to A
B00011110, B00000000, // 0x0035 MVI E, 0x00 // result := 0
B00011100, // 0x0037 divl: INR E // increment result
B10010010, // 0x0038 SUB D // subtract divisor
B11001010, B01001000, B00000000, // 0x0039 JZ divd [0x0048] // if =0 then we're done
B11010010, B00110110, B00000000, // 0x003C JNC divl [0x0037] // if >0 (no underflow) then subtract again
B10000010, // 0x003F ADD D // add back divisor to get remainder
B00011101, // 0x0040 DCR E // decrement result (since we overshot)
B00111111, // 0x0041 CMC // clear carry (is set at this point)
B00000111, // 0x0042 RLC // multiply remainder by 2
B10111010, // 0x0043 CMP D // compare remainder to divisor
B11111010, B01001000, B00000000, // 0x0044 JM divd [0x0048] // if 2*remainder < divisor then we're done (rounded down)
B00011100, // 0x0047 INC E // otherwise we round up
B01000011, // 0x0048 divd: MOV B, E // move result to B
B11000011, B00000011, B00000000, // 0x0049 JMP disp [0x0003] // start over
B01111000, // 0x004C sub: MOV A, B // move minuend to A
B10010010, // 0x004D SUB D // subtract (subtrahend is in D)
B11000011, B01100001, B00000000, // 0x004E JMP done [0x0061] // finish up
B01111000, // 0x0051 add: MOV A, B // move addend 1 to A
B10000010, // 0x0052 ADD D // add (addend 2 is in D)
B11000011, B01100001, B00000000, // 0x0053 JMP done [0x0061] // finish up
B00111110, B00000000, // 0x0056 mlt: MVI A, 0x00 // result is 0
B10111010, // 0x0058 CMP D // if multiplicator is 0
B11001010, B01100001, B00000000, // 0x0059 JZ done [0x0061] // then we're done
B10000000, // 0x005C mltl: ADD B // add multiplicant
B00010101, // 0x005D DCR D // decrement multiplicator
B11000010, B01011100, B00000000, // 0x005E JNZ mltl [0x005C] // repeat if multiplicator>0
B01000111, // 0x0061 done: MOV B, A // move result to B
B11000011, B00000011, B00000000 // 0x0062 JMP disp [0x0003] // start over
};
#if !defined(__AVR_ATmega2560__)
// turnkey monitor MUST be located at 0xFD00 AND be in RAM
// => not possible when running on MEGA
static const byte prog_turnmon[] = {
0x3E,0x03,0xD3,0x10,0x3E,0x11,0xD3,0x10,0x31,0x00,0xFC,0xCD,0x96,0xFD,0xCD,0x96,
0xFD,0x3E,0x2E,0xCD,0xF2,0xFD,0xCD,0xE8,0xFD,0xFE,0x4D,0xCA,0x2C,0xFD,0xFE,0x44,
0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xDB,0x10,0x0F,0x0F,0xD2,0xF5,0xFD,0xF1,0xD3,0x11,0xC9
};
// disk boot ROM not needed on MEGA because we don't have the necessary SPI pins
// available to add an SD card
static const byte prog_diskboot[] = {
0x21,0x13,0xFF,0x11,0x00,0x2C,0x0E,0xEB,0x7E,0x12,0x23,0x13,0x0D,0xC2,0x08,0xFF,
0xC3,0x00,0x2C,0xF3,0xAF,0xD3,0x22,0x2F,0xD3,0x23,0x3E,0x2C,0xD3,0x22,0x3E,0x03,
0xD3,0x10,0xDB,0xFF,0xE6,0x10,0x0F,0x0F,0xC6,0x10,0xD3,0x10,0x31,0x79,0x2D,0xAF,
0xD3,0x08,0xDB,0x08,0xE6,0x08,0xC2,0x1C,0x2C,0x3E,0x04,0xD3,0x09,0xC3,0x38,0x2C,
0xDB,0x08,0xE6,0x02,0xC2,0x2D,0x2C,0x3E,0x02,0xD3,0x09,0xDB,0x08,0xE6,0x40,0xC2,
0x2D,0x2C,0x11,0x00,0x00,0x06,0x00,0x3E,0x10,0xF5,0xD5,0xC5,0xD5,0x11,0x86,0x80,
0x21,0xEB,0x2C,0xDB,0x09,0x1F,0xDA,0x50,0x2C,0xE6,0x1F,0xB8,0xC2,0x50,0x2C,0xDB,
0x08,0xB7,0xFA,0x5C,0x2C,0xDB,0x0A,0x77,0x23,0x1D,0xCA,0x72,0x2C,0x1D,0xDB,0x0A,
0x77,0x23,0xC2,0x5C,0x2C,0xE1,0x11,0xEE,0x2C,0x01,0x80,0x00,0x1A,0x77,0xBE,0xC2,
0xCB,0x2C,0x80,0x47,0x13,0x23,0x0D,0xC2,0x79,0x2C,0x1A,0xFE,0xFF,0xC2,0x90,0x2C,
0x13,0x1A,0xB8,0xC1,0xEB,0xC2,0xC2,0x2C,0xF1,0xF1,0x2A,0xEC,0x2C,0xCD,0xE5,0x2C,
0xD2,0xBB,0x2C,0x04,0x04,0x78,0xFE,0x20,0xDA,0x44,0x2C,0x06,0x01,0xCA,0x44,0x2C,
0xDB,0x08,0xE6,0x02,0xC2,0xAD,0x2C,0x3E,0x01,0xD3,0x09,0xC3,0x42,0x2C,0x3E,0x80,
0xD3,0x08,0xC3,0x00,0x00,0xD1,0xF1,0x3D,0xC2,0x46,0x2C,0x3E,0x43,0x01,0x3E,0x4D,
0xFB,0x32,0x00,0x00,0x22,0x01,0x00,0x47,0x3E,0x80,0xD3,0x08,0x78,0xD3,0x01,0xD3,
0x11,0xD3,0x05,0xD3,0x23,0xC3,0xDA,0x2C,0x7A,0xBC,0xC0,0x7B,0xBD,0xC9,0x00,0x00};
uint16_t prog_tools_copy_turnmon(byte *dst)
{
host_copy_flash_to_ram(dst+0xFD00, prog_turnmon, sizeof(prog_turnmon));
return 0xFD00;
}
uint16_t prog_tools_copy_diskboot(byte *dst)
{
host_copy_flash_to_ram(dst+0xFF00, prog_diskboot, sizeof(prog_diskboot));
return 0xFF00;
}
#endif
uint16_t prog_tools_copy_diag(byte *dst)
{
int i=0;
host_copy_flash_to_ram(dst, BDOS, 28);
host_copy_flash_to_ram(dst+0x100, i8080_cpudiag, sizeof(i8080_cpudiag));
return 0x100;
}
uint16_t prog_tools_copy_exerciser(byte *dst)
{
int i=0;
host_copy_flash_to_ram(dst, BDOS, 28);
host_copy_flash_to_ram(dst+0x100, i8080_exerciser, sizeof(i8080_exerciser));
return 0x100;
}
uint16_t prog_tools_copy_calc(byte *dst)
{
host_copy_flash_to_ram(dst, calc, sizeof(calc));
return 0x0;
}
uint16_t prog_tools_copy_statustest(byte *dst)
{
host_copy_flash_to_ram(dst, statustest, sizeof(statustest));
return 0x0;
}
uint16_t prog_tools_copy_serialirqtest(byte *dst)
{
host_copy_flash_to_ram(dst, serialirqtest, sizeof(serialirqtest));
return 0x0;
}