OpenCores
URL https://opencores.org/ocsvn/y80e/y80e/trunk

Subversion Repositories y80e

[/] [y80e/] [trunk/] [asm/] [bit_ops.s] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 bsa
;**********************************************************************************
2
;*                                                                                *
3
;* checks all bit manipulation instructions                                       *
4
;*                                                                                *
5
;**********************************************************************************
6
        aseg
7
 
8
        org     00h
9
        jp      100h
10
 
11
        org     0c0h            ;pattern finish location
12
        nop
13
        jr      0c0h
14
 
15
        org     0100h
16
        ld      sp, 0000h       ;point sp at result table
17
        ld      a, 0ffh         ;initialize the main registers
18
        xor     a               ;initialize flags
19
        ld      b, a
20
        ld      c, a
21
        ld      d, a
22
        ld      e, a
23
        ld      h, a
24
        ld      l, a
25
        ld      ix, 07ffeh
26
        ld      iy, 07201h
27
        push    af              ;0044h @ fffeh
28
        push    bc              ;0000h @ fffch
29
        push    de              ;0000h @ fffah
30
        push    hl              ;0000h @ fff8h
31
        push    ix              ;7ffeh @ fff6h
32
        push    iy              ;7201h @ fff4h
33
        set     0, a
34
        set     1, b
35
        set     2, c
36
        set     3, d
37
        set     4, e
38
        set     5, h
39
        set     6, l
40
        push    af              ;0144h @ fff2h
41
        push    bc              ;0204h @ fff0h
42
        push    de              ;0810h @ ffeeh
43
        push    hl              ;2040h @ ffech
44
        xor     a
45
        ld      b, a
46
        ld      c, a
47
        ld      d, a
48
        ld      e, a
49
        ld      h, a
50
        ld      l, a
51
        set     0, b
52
        set     1, c
53
        set     2, d
54
        set     3, e
55
        set     4, h
56
        set     5, l
57
        set     6, a
58
        push    af              ;4044h @ ffeah
59
        push    bc              ;0102h @ ffe8h
60
        push    de              ;0408h @ ffe6h
61
        push    hl              ;1020h @ ffe4h
62
        xor     a
63
        ld      b, a
64
        ld      c, a
65
        ld      d, a
66
        ld      e, a
67
        ld      h, a
68
        ld      l, a
69
        set     0, c
70
        set     1, d
71
        set     2, e
72
        set     3, h
73
        set     4, l
74
        set     5, a
75
        set     6, b
76
        push    af              ;2044h @ ffe2h
77
        push    bc              ;4001h @ ffe0h
78
        push    de              ;0204h @ ffdeh
79
        push    hl              ;0810h @ ffdch
80
        xor     a
81
        ld      b, a
82
        ld      c, a
83
        ld      d, a
84
        ld      e, a
85
        ld      h, a
86
        ld      l, a
87
        set     0, d
88
        set     1, e
89
        set     2, h
90
        set     3, l
91
        set     4, a
92
        set     5, b
93
        set     6, c
94
        push    af              ;1044h @ ffdah
95
        push    bc              ;2040h @ ffd8h
96
        push    de              ;0102h @ ffd6h
97
        push    hl              ;0408h @ ffd4h
98
        xor     a
99
        ld      b, a
100
        ld      c, a
101
        ld      d, a
102
        ld      e, a
103
        ld      h, a
104
        ld      l, a
105
        set     0, e
106
        set     1, h
107
        set     2, l
108
        set     3, a
109
        set     4, b
110
        set     5, c
111
        set     6, d
112
        push    af              ;0844h @ ffd2h
113
        push    bc              ;1020h @ ffd0h
114
        push    de              ;4001h @ ffceh
115
        push    hl              ;0204h @ ffcch
116
        xor     a
117
        ld      b, a
118
        ld      c, a
119
        ld      d, a
120
        ld      e, a
121
        ld      h, a
122
        ld      l, a
123
        set     0, h
124
        set     1, l
125
        set     2, a
126
        set     3, b
127
        set     4, c
128
        set     5, d
129
        set     6, e
130
        push    af              ;0444h @ ffcah
131
        push    bc              ;0810h @ ffc8h
132
        push    de              ;2040h @ ffc6h
133
        push    hl              ;0102h @ ffc4h
134
        xor     a
135
        ld      b, a
136
        ld      c, a
137
        ld      d, a
138
        ld      e, a
139
        ld      h, a
140
        ld      l, a
141
        set     0, l
142
        set     1, a
143
        set     2, b
144
        set     3, c
145
        set     4, d
146
        set     5, e
147
        set     6, h
148
        push    af              ;0244h @ ffc2h
149
        push    bc              ;0408h @ ffc0h
150
        push    de              ;1020h @ ffbeh
151
        push    hl              ;4001h @ ffbch
152
        xor     a
153
        ld      b, a
154
        ld      c, a
155
        ld      d, a
156
        ld      e, a
157
        ld      hl, 7000h
158
        set     0, (hl)          ;  00h @ 7000h read
159
                                ;  01h @ 7000h write
160
        set     7, a
161
        push    af              ;8044h @ ffbah
162
        push    bc              ;0000h @ ffb8h
163
        push    de              ;0000h @ ffb6h
164
        push    hl              ;7000h @ ffb4h
165
        ld      a, b
166
        inc     hl
167
        set     1, (hl)         ;  00h @ 7001h read
168
                                ;  02h @ 7001h write
169
        set     7, b
170
        push    af              ;0044h @ ffb2h
171
        push    bc              ;8000h @ ffb0h
172
        push    de              ;0000h @ ffaeh
173
        push    hl              ;7001h @ ffach
174
        ld      b, a
175
        inc     hl
176
        set     2, (hl)         ;  00h @ 7002h read
177
                                ;  04h @ 7002h write
178
        set     7, c
179
        push    af              ;0044h @ ffaah
180
        push    bc              ;0080h @ ffa8h
181
        push    de              ;0000h @ ffa6h
182
        push    hl              ;7002h @ ffa4h
183
        ld      c, a
184
        inc     hl
185
        set     3, (hl)         ;  00h @ 7003h read
186
                                ;  08h @ 7003h write
187
        set     7, d
188
        push    af              ;0044h @ ffa2h
189
        push    bc              ;0000h @ ffa0h
190
        push    de              ;8000h @ ff9eh
191
        push    hl              ;7003h @ ff9ch
192
        ld      d, a
193
        inc     hl
194
        set     4, (hl)         ;  00h @ 7004h read
195
                                ;  10h @ 7004h write
196
        set     7, e
197
        push    af              ;0044h @ ff9ah
198
        push    bc              ;0000h @ ff98h
199
        push    de              ;0080h @ ff96h
200
        push    hl              ;7004h @ ff94h
201
        ld      e, a
202
        inc     hl
203
        set     5, (hl)         ;  00h @ 7005h read
204
                                ;  20h @ 7005h write
205
        set     7, h
206
        push    af              ;0044h @ ff92h
207
        push    bc              ;0000h @ ff90h
208
        push    de              ;0000h @ ff8eh
209
        push    hl              ;f005h @ ff8ch
210
        ld      hl, 7006h
211
        set     6, (hl)         ;  00h @ 7006h read
212
                                ;  40h @ 7006h write
213
        set     7, l
214
        push    af              ;0044h @ ff8ah
215
        push    bc              ;0000h @ ff88h
216
        push    de              ;0000h @ ff86h
217
        push    hl              ;7086h @ ff84h
218
        ld      hl, 7007h
219
        set     7, (hl)         ;  00h @ 7007h read
220
                                ;  80h @ 7007h write
221
        push    af              ;0044h @ ff82h
222
        push    bc              ;0000h @ ff80h
223
        push    de              ;0000h @ ff7eh
224
        push    hl              ;7007h @ ff7ch
225
        set     0, (ix+7h)       ;  00h @ 8005h read
226
                                ;  01h @ 8005h write
227
        set     1, (ix+6h)      ;  00h @ 8004h read
228
                                ;  02h @ 8004h write
229
        set     2, (ix+5h)      ;  00h @ 8003h read
230
                                ;  04h @ 8003h write
231
        set     3, (ix+4h)      ;  00h @ 8002h read
232
                                ;  08h @ 8002h write
233
        set     4, (ix+3h)      ;  00h @ 8001h read
234
                                ;  10h @ 8001h write
235
        set     5, (ix+2h)      ;  00h @ 8000h read
236
                                ;  20h @ 8000h write
237
        set     6, (ix+1h)      ;  00h @ 7fffh read
238
                                ;  40h @ 7fffh write
239
        set     7, (ix+0h)      ;  00h @ 7ffeh read
240
                                ;  80h @ 7ffeh write
241
        set     0, (iy+0ffh)     ;  00h @ 7200h read
242
                                ;  01h @ 7200h write
243
        set     1, (iy+0feh)    ;  00h @ 71ffh read
244
                                ;  02h @ 71ffh write
245
        set     2, (iy+0fdh)    ;  00h @ 71feh read
246
                                ;  04h @ 71feh write
247
        set     3, (iy+0fch)    ;  00h @ 71fdh read
248
                                ;  08h @ 71fdh write
249
        set     4, (iy+0fbh)    ;  00h @ 71fch read
250
                                ;  10h @ 71fch write
251
        set     5, (iy+0fah)    ;  00h @ 71fbh read
252
                                ;  20h @ 71fbh write
253
        set     6, (iy+0f9h)    ;  00h @ 71fah read
254
                                ;  40h @ 71fah write
255
        set     7, (iy+0f8h)    ;  00h @ 71f9h read
256
                                ;  80h @ 71f9h write
257
        ld      a, 0ffh         ;initialize the main registers
258
        or      a               ;initialize flags
259
        ld      b, a
260
        ld      c, a
261
        ld      d, a
262
        ld      e, a
263
        ld      h, a
264
        ld      l, a
265
        ld      ix, 7401h
266
        ld      iy, 70feh
267
        push    af              ;ff84h @ ff7ah
268
        push    bc              ;ffffh @ ff78h
269
        push    de              ;ffffh @ ff76h
270
        push    hl              ;ffffh @ ff74h
271
        push    ix              ;7401h @ ff72h
272
        push    iy              ;70feh @ ff70h
273
        res     0, a
274
        res     1, b
275
        res     2, c
276
        res     3, d
277
        res     4, e
278
        res     5, h
279
        res     6, l
280
        push    af              ;fe84h @ ff6eh
281
        push    bc              ;fdfbh @ ff6ch
282
        push    de              ;f7efh @ ff6ah
283
        push    hl              ;dfbfh @ ff68h
284
        ld      a, 0ffh
285
        ld      b, a
286
        ld      c, a
287
        ld      d, a
288
        ld      e, a
289
        ld      h, a
290
        ld      l, a
291
        res     0, b
292
        res     1, c
293
        res     2, d
294
        res     3, e
295
        res     4, h
296
        res     5, l
297
        res     6, a
298
        push    af              ;bf84h @ ff66h
299
        push    bc              ;fefdh @ ff64h
300
        push    de              ;fbf7h @ ff62h
301
        push    hl              ;efdfh @ ff60h
302
        ld      a, 0ffh
303
        ld      b, a
304
        ld      c, a
305
        ld      d, a
306
        ld      e, a
307
        ld      h, a
308
        ld      l, a
309
        res     0, c
310
        res     1, d
311
        res     2, e
312
        res     3, h
313
        res     4, l
314
        res     5, a
315
        res     6, b
316
        push    af              ;df84h @ ff5eh
317
        push    bc              ;bffeh @ ff5ch
318
        push    de              ;fdfbh @ ff5ah
319
        push    hl              ;f7efh @ ff58h
320
        ld      a, 0ffh
321
        ld      b, a
322
        ld      c, a
323
        ld      d, a
324
        ld      e, a
325
        ld      h, a
326
        ld      l, a
327
        res     0, d
328
        res     1, e
329
        res     2, h
330
        res     3, l
331
        res     4, a
332
        res     5, b
333
        res     6, c
334
        push    af              ;ef84h @ ff56h
335
        push    bc              ;dfbfh @ ff54h
336
        push    de              ;fefdh @ ff52h
337
        push    hl              ;fbf7h @ ff50h
338
        ld      a, 0ffh
339
        ld      b, a
340
        ld      c, a
341
        ld      d, a
342
        ld      e, a
343
        ld      h, a
344
        ld      l, a
345
        res     0, e
346
        res     1, h
347
        res     2, l
348
        res     3, a
349
        res     4, b
350
        res     5, c
351
        res     6, d
352
        push    af              ;f784h @ ff4eh
353
        push    bc              ;efdfh @ ff4ch
354
        push    de              ;bffeh @ ff4ah
355
        push    hl              ;fdfbh @ ff48h
356
        ld      a, 0ffh
357
        ld      b, a
358
        ld      c, a
359
        ld      d, a
360
        ld      e, a
361
        ld      h, a
362
        ld      l, a
363
        res     0, h
364
        res     1, l
365
        res     2, a
366
        res     3, b
367
        res     4, c
368
        res     5, d
369
        res     6, e
370
        push    af              ;fb84h @ ff46h
371
        push    bc              ;f7efh @ ff44h
372
        push    de              ;dfbfh @ ff42h
373
        push    hl              ;fefdh @ ff40h
374
        ld      a, 0ffh
375
        ld      b, a
376
        ld      c, a
377
        ld      d, a
378
        ld      e, a
379
        ld      h, a
380
        ld      l, a
381
        res     0, l
382
        res     1, a
383
        res     2, b
384
        res     3, c
385
        res     4, d
386
        res     5, e
387
        res     6, h
388
        push    af              ;fd84h @ ff3eh
389
        push    bc              ;fbf7h @ ff3ch
390
        push    de              ;efdfh @ ff3ah
391
        push    hl              ;bffeh @ ff38h
392
        ld      a, 0ffh
393
        ld      b, a
394
        ld      c, a
395
        ld      d, a
396
        ld      e, a
397
        ld      hl, 08480h
398
        res     0, (hl)          ;  ffh @ 8480h read
399
                                ;  feh @ 8480h write
400
        res     7, a
401
        push    af              ;7f84h @ ff36h
402
        push    bc              ;ffffh @ ff34h
403
        push    de              ;ffffh @ ff32h
404
        push    hl              ;8480h @ ff30h
405
        ld      a, b
406
        inc     hl
407
        res     1, (hl)         ;  ffh @ 8481h read
408
                                ;  fdh @ 8481h write
409
        res     7, b
410
        push    af              ;ff84h @ ff2eh
411
        push    bc              ;7fffh @ ff2ch
412
        push    de              ;ffffh @ ff2ah
413
        push    hl              ;8481h @ ff28h
414
        ld      b, a
415
        inc     hl
416
        res     2, (hl)         ;  ffh @ 8482h read
417
                                ;  fbh @ 8482h write
418
        res     7, c
419
        push    af              ;ff84h @ ff26h
420
        push    bc              ;ff7fh @ ff24h
421
        push    de              ;ffffh @ ff22h
422
        push    hl              ;8482h @ ff20h
423
        ld      c, a
424
        inc     hl
425
        res     3, (hl)         ;  ffh @ 8483h read
426
                                ;  f7h @ 8483h write
427
        res     7, d
428
        push    af              ;ff84h @ ff1eh
429
        push    bc              ;ffffh @ ff1ch
430
        push    de              ;7fffh @ ff1ah
431
        push    hl              ;8483h @ ff18h
432
        ld      d, a
433
        inc     hl
434
        res     4, (hl)         ;  ffh @ 8484h read
435
                                ;  efh @ 8484h write
436
        res     7, e
437
        push    af              ;ff84h @ ff16h
438
        push    bc              ;ffffh @ ff14h
439
        push    de              ;ff7fh @ ff12h
440
        push    hl              ;8484h @ ff10h
441
        ld      e, a
442
        inc     hl
443
        res     5, (hl)         ;  ffh @ 8485h read
444
                                ;  dfh @ 8485h write
445
        res     7, h
446
        push    af              ;ff84h @ ff0eh
447
        push    bc              ;ffffh @ ff0ch
448
        push    de              ;ffffh @ ff0ah
449
        push    hl              ;0485h @ ff08h
450
        ld      hl, 8486h
451
        res     6, (hl)         ;  ffh @ 8486h read
452
                                ;  bfh @ 8486h write
453
        res     7, l
454
        push    af              ;ff84h @ ff06h
455
        push    bc              ;ffffh @ ff04h
456
        push    de              ;ffffh @ ff02h
457
        push    hl              ;8406h @ ff00h
458
        ld      hl, 8487h
459
        res     7, (hl)         ;  ffh @ 8487h read
460
                                ;  7fh @ 8487h write
461
        push    af              ;ff84h @ fefeh
462
        push    bc              ;ffffh @ fefch
463
        push    de              ;ffffh @ fefah
464
        push    hl              ;8487h @ fef8h
465
        res     0, (ix+00h)      ;  ffh @ 7401h read
466
                                ;  feh @ 7401h write
467
        res     1, (ix+0ffh)    ;  ffh @ 7400h read
468
                                ;  fdh @ 7400h write
469
        res     2, (ix+0feh)    ;  ffh @ 73ffh read
470
                                ;  fbh @ 73ffh write
471
        res     3, (ix+0fdh)    ;  ffh @ 73feh read
472
                                ;  f7h @ 73feh write
473
        res     4, (ix+0fch)    ;  ffh @ 73fdh read
474
                                ;  efh @ 73fdh write
475
        res     5, (ix+0fbh)    ;  ffh @ 73fch read
476
                                ;  dfh @ 73fch write
477
        res     6, (ix+0fah)    ;  ffh @ 73fbh read
478
                                ;  bfh @ 73fbh write
479
        res     7, (ix+0f9h)    ;  ffh @ 73fah read
480
                                ;  7fh @ 73fah write
481
        res     0, (iy+2h)       ;  ffh @ 7100h read
482
                                ;  feh @ 7100h write
483
        res     1, (iy+3h)      ;  ffh @ 7101h read
484
                                ;  fdh @ 7101h write
485
        res     2, (iy+4h)      ;  ffh @ 7102h read
486
                                ;  fbh @ 7102h write
487
        res     3, (iy+5h)      ;  ffh @ 7103h read
488
                                ;  f7h @ 7103h write
489
        res     4, (iy+6h)      ;  ffh @ 7104h read
490
                                ;  efh @ 7104h write
491
        res     5, (iy+7h)      ;  ffh @ 7105h read
492
                                ;  dfh @ 7105h write
493
        res     6, (iy+8h)      ;  ffh @ 7106h read
494
                                ;  bfh @ 7106h write
495
        res     7, (iy+9h)      ;  ffh @ 7107h read
496
                                ;  7fh @ 7107h write
497
        xor     a               ;clear accumulator
498
        ld      b, a            ;clear register file
499
        ld      c, a
500
        ld      d, a
501
        ld      e, a
502
        ld      h, a
503
        ld      l, a
504
        ld      ix, 0a000h
505
        ld      iy, 09000h
506
        ld      sp, 0c000h
507
        pop     af              ;7fffh @ c000h
508
        ld      sp, 0c000h
509
        bit     7, a
510
        push    af              ;7ffdh @ bffeh
511
        ld      sp, 0c002h
512
        pop     af              ;40ffh @ c002h
513
        ld      sp, 0bffeh
514
        bit     6, a
515
        push    af              ;40bdh @ bffch
516
        ld      sp, 0c004h
517
        pop     af              ;df00h @ c004h
518
        ld      sp, 0bffch
519
        bit     5, a
520
        push    af              ;df50h @ bffah
521
        ld      sp, 0c006h
522
        pop     af              ;1000h @ c006h
523
        ld      sp, 0bffah
524
        bit     4, a
525
        push    af              ;1010h @ bff8h
526
        ld      a, 0f7h
527
        bit     3, a
528
        push    af              ;f750f @ bff6h
529
        ld      a, 04h
530
        bit     2, a
531
        push    af              ;0410h @ bff4h
532
        ld      a, 0fdh
533
        bit     1, a
534
        push    af              ;fd50h @ bff2h
535
        ld      a, 01h
536
        bit     0, a
537
        push    af              ;0110h @ bff0h
538
        xor     a
539
        ld      bc, 0f0cch
540
        ld      de, 0aa0fh
541
        ld      hl, 3355h
542
        bit     7, b
543
        push    af              ;0014h @ bfeeh
544
        bit     6, b
545
        push    af              ;0014h @ bfech
546
        bit     5, b
547
        push    af              ;0014h @ bfeah
548
        bit     4, b
549
        push    af              ;0014h @ bfe8h
550
        bit     3, b
551
        push    af              ;0054h @ bfe6h
552
        bit     2, b
553
        push    af              ;0054h @ bfe4h
554
        bit     1, b
555
        push    af              ;0054h @ bfe2h
556
        bit     0, b
557
        push    af              ;0054h @ bfe0h
558
        bit     7, c
559
        push    af              ;0014h @ bfdeh
560
        bit     6, c
561
        push    af              ;0014h @ bfdch
562
        bit     5, c
563
        push    af              ;0054h @ bfdah
564
        bit     4, c
565
        push    af              ;0054h @ bfd8h
566
        bit     3, c
567
        push    af              ;0014h @ bfd6h
568
        bit     2, c
569
        push    af              ;0014h @ bfd4h
570
        bit     1, c
571
        push    af              ;0054h @ bfd2h
572
        bit     0, c
573
        push    af              ;0054h @ bfd0h
574
        bit     7, d
575
        push    af              ;0014h @ bfceh
576
        bit     6, d
577
        push    af              ;0054h @ bfcch
578
        bit     5, d
579
        push    af              ;0014h @ bfcah
580
        bit     4, d
581
        push    af              ;0054h @ bfc8h
582
        bit     3, d
583
        push    af              ;0014h @ bfc6h
584
        bit     2, d
585
        push    af              ;0054h @ bfc4h
586
        bit     1, d
587
        push    af              ;0014h @ bfc2h
588
        bit     0, d
589
        push    af              ;0054h @ bfc0h
590
        bit     7, e
591
        push    af              ;0054h @ bfbeh
592
        bit     6, e
593
        push    af              ;0054h @ bfbch
594
        bit     5, e
595
        push    af              ;0054h @ bfbah
596
        bit     4, e
597
        push    af              ;0054h @ bfb8h
598
        bit     3, e
599
        push    af              ;0014h @ bfb6h
600
        bit     2, e
601
        push    af              ;0014h @ bfb4h
602
        bit     1, e
603
        push    af              ;0014h @ bfb2h
604
        bit     0, e
605
        push    af              ;0014h @ bfb0h
606
        bit     7, h
607
        push    af              ;0054h @ bfaeh
608
        bit     6, h
609
        push    af              ;0054h @ bfach
610
        bit     5, h
611
        push    af              ;0014h @ bfaah
612
        bit     4, h
613
        push    af              ;0014h @ bfa8h
614
        bit     3, h
615
        push    af              ;0054h @ bfa6h
616
        bit     2, h
617
        push    af              ;0054h @ bfa4h
618
        bit     1, h
619
        push    af              ;0014h @ bfa2h
620
        bit     0, h
621
        push    af              ;0014h @ bfa0h
622
        bit     7, l
623
        push    af              ;0054h @ bf9eh
624
        bit     6, l
625
        push    af              ;0014h @ bf9ch
626
        bit     5, l
627
        push    af              ;0054h @ bf9ah
628
        bit     4, l
629
        push    af              ;0014h @ bf98h
630
        bit     3, l
631
        push    af              ;0054h @ bf96h
632
        bit     2, l
633
        push    af              ;0014h @ bf94h
634
        bit     1, l
635
        push    af              ;0054h @ bf92h
636
        bit     0, l
637
        push    af              ;0014h @ bf90h
638
        ld      hl, 8500h
639
        bit     7, (hl)         ;  80h @ 8500h
640
        push    af              ;0014h @ bf8eh
641
        inc     hl
642
        bit     6, (hl)         ;  bfh @ 8501h
643
        push    af              ;0054h @ bf8ch
644
        inc     hl
645
        bit     5, (hl)         ;  20h @ 8502h
646
        push    af              ;0014h @ bf8ah
647
        inc     hl
648
        bit     4, (hl)         ;  10h @ 8503h
649
        push    af              ;0014h @ bf88h
650
        inc     hl
651
        bit     3, (hl)         ;  f7h @ 8504h
652
        push    af              ;0054h @ bf86h
653
        inc     hl
654
        bit     2, (hl)         ;  40h @ 8505h
655
        push    af              ;0054h @ bf84h
656
        inc     hl
657
        bit     1, (hl)         ;  fdh @ 8506h
658
        push    af              ;0054h @ bf82h
659
        inc     hl
660
        bit     0, (hl)          ;  feh @ 8507h
661
        push    af              ;0054h @ bf80h
662
        ld      ix, 8502h
663
        ld      iy, 8564h
664
        bit     7, (ix+3eh)     ;  00h @ 8540h
665
        push    af              ;0054h @ bf7eh
666
        bit     6, (ix+3fh)     ;  00h @ 8541h
667
        push    af              ;0054h @ bf7ch
668
        bit     5, (ix+40h)     ;  ffh @ 8542h
669
        push    af              ;0014h @ bf7ah
670
        bit     4, (ix+41h)     ;  ffh @ 8543h
671
        push    af              ;0014h @ bf78h
672
        bit     3, (ix+42h)     ;  ffh @ 8544h
673
        push    af              ;0014h @ bf76h
674
        bit     2, (ix+43h)     ;  ffh @ 8545h
675
        push    af              ;0014h @ bf74h
676
        bit     1, (ix+44h)     ;  00h @ 8546h
677
        push    af              ;0054h @ bf72h
678
        bit     0, (ix+45h)      ;  00h @ 8547h
679
        push    af              ;0054h @ bf70h
680
        bit     7, (iy+1ch)     ;  00h @ 8580h
681
        push    af              ;0054h @ bf6eh
682
        bit     6, (iy+1dh)     ;  ffh @ 8581h
683
        push    af              ;0014h @ bf6ch
684
        bit     5, (iy+1eh)     ;  00h @ 8582h
685
        push    af              ;0054h @ bf6ah
686
        bit     4, (iy+1fh)     ;  ffh @ 8583h
687
        push    af              ;0014h @ bf68h
688
        bit     3, (iy+20h)     ;  ffh @ 8584h
689
        push    af              ;0014h @ bf66h
690
        bit     2, (iy+21h)     ;  00h @ 8585h
691
        push    af              ;0054h @ bf64h
692
        bit     1, (iy+22h)     ;  ffh @ 8586h
693
        push    af              ;0014h @ bf62h
694
        bit     0, (iy+23h)      ;  00h @ 8587h
695
        push    af              ;0054h @ bf60h
696
 
697
        ld      hl, 0100h       ;init hl for next pattern
698
        jp      0c0h
699
 
700
        org     07000h          ;data for set (hl)
701
        db      00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
702
 
703
        org     07100h          ;data for res (iy+d)
704
        db      0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh
705
 
706
        org     071f9h          ;data for set (iy+d)
707
        db      00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
708
 
709
        org     073fah          ;data for res (ix+d)
710
        db      0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh
711
 
712
        org     07ffeh          ;data for set (ix+d)
713
        db      00h, 00h, 00h, 00h, 00h, 00h, 00h, 00h
714
 
715
        org     08480h          ;data for res (hl)
716
        db      0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh
717
 
718
        org     08500h          ;data for bit (hl)
719
        db      80h, 0bfh, 20h, 10h, 0f7h, 40h, 0fdh, 0feh
720
 
721
        org     08540h          ;data for bit (ix+d)
722
        db      00h, 00h, 0ffh, 0ffh, 0ffh, 0ffh, 00h, 00h
723
 
724
        org     08580h          ;data for bit (iy+d)
725
        db      00h, 0ffh, 00h, 0ffh, 0ffh, 00h, 0ffh, 00h
726
 
727
        org     0c000h          ;af data for bit
728
        dw      07fffh
729
        dw      040ffh
730
        dw      0df00h
731
        dw      01000h

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.