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

Subversion Repositories y80e

[/] [y80e/] [trunk/] [asm/] [jmp_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 jump, call, etc. instructions                                       *
4
;*                                                                                *
5
;**********************************************************************************
6
        aseg
7
 
8
        org     00h
9
        jp      (hl)
10
 
11
        org     08h
12
        push    bc              ;0004h @ fff4h
13
        inc     bc
14
        jp      (hl)
15
 
16
        org     10h
17
        push    bc              ;0006h @ ffeeh
18
        inc     bc
19
        jp      (hl)
20
 
21
        org     18h
22
        push    bc              ;0008h @ ffe8h
23
        inc     bc
24
        jp      (hl)
25
 
26
        org     20h
27
        push    bc              ;000ah @ ffe2h
28
        inc     bc
29
        jp      (hl)
30
 
31
        org     28h
32
        push    bc              ;000ch @ ffdch
33
        inc     bc
34
        jp      (hl)
35
 
36
        org     30h
37
        push    bc              ;000eh @ ffd6h
38
        inc     bc
39
        jp      (hl)
40
 
41
        org     38h
42
        push    bc              ;0010h @ ffd0h
43
        inc     bc
44
        jp      (hl)
45
 
46
        org     0c0h            ;pattern finish location
47
        nop
48
        jr      0c0h
49
 
50
        org     0100h
51
        ld      sp, 0000h
52
        xor     a
53
        ld      bc, 0000h
54
        ld      de, 0010h
55
        ld      hl, 2010h
56
        ld      ix, 1000h
57
        ld      iy, 2000h
58
        inc     bc
59
        jp      (ix)
60
 
61
        org     300h
62
        dw      0001h           ;c flag
63
        dw      00feh           ;not c flag
64
        dw      0004h           ;p/v flag
65
        dw      00fbh           ;not p/v flag
66
        dw      0040h           ;z flag
67
        dw      00bfh           ;not z flag
68
        dw      0080h           ;s flag
69
        dw      007fh           ;not s flag
70
        dw      0000h           ;pattern exit value
71
 
72
        org     0400h
73
        dw      7160h
74
        dw      7170h
75
        dw      7180h
76
        dw      7190h
77
        dw      71a0h
78
        dw      71b0h
79
        dw      71c0h
80
        dw      71d0h
81
        dw      71e0h
82
        dw      71f0h
83
 
84
        org     1000h
85
        push    bc              ;0001h @ fffeh
86
        inc     bc
87
        jp      (iy)
88
 
89
        org     2000h
90
        push    bc              ;0002h @ fffch
91
        inc     bc
92
        rst     00h             ;2003h @ fffah
93
 
94
        org     2010h
95
        push    bc              ;0003h @ fff8h
96
        add     hl, de
97
        inc     bc
98
        rst     08h             ;2014h @ fff6h
99
 
100
        org     2020h
101
        push    bc              ;0005h @ fff2h
102
        add     hl, de
103
        inc     bc
104
        rst     10h             ;2024h @ fff0h
105
 
106
        org     2030h
107
        push    bc              ;0007h @ ffech
108
        add     hl, de
109
        inc     bc
110
        rst     18h             ;2034h @ ffeah
111
 
112
        org     2040h
113
        push    bc              ;0009h @ ffe6h
114
        add     hl, de
115
        inc     bc
116
        rst     20h             ;2044h @ ffe4h
117
 
118
        org     2050h
119
        push    bc              ;000bh @ ffe0h
120
        add     hl, de
121
        inc     bc
122
        rst     28h             ;2054h @ ffdeh
123
 
124
        org     2060h
125
        push    bc              ;000dh @ ffdah
126
        add     hl, de
127
        inc     bc
128
        rst     30h             ;2064h @ ffd8h
129
 
130
        org     2070h
131
        push    bc              ;000fh @ ffd4h
132
        add     hl, de
133
        inc     bc
134
        rst     38h             ;2074h @ ffd2h
135
 
136
        org     2080h
137
        jp      0ccffh
138
 
139
        org     7000h
140
        push    bc              ;0018h @ ffbeh
141
        inc     bc
142
        ld      sp, 0300h
143
        pop     af              ;0001h @ 0300h
144
        ld      sp, 0ffbeh
145
        call    c, 7010h        ;700ch @ ffbch
146
        halt
147
 
148
        org     7010h
149
        push    bc              ;0019h @ ffbah
150
        inc     bc
151
        jp      c, 7020h
152
        halt
153
 
154
        org     7020h
155
        push    bc              ;001ah @ ffb8h
156
        inc     bc
157
        jr      c, 7030h
158
        halt
159
 
160
        org     7030h
161
        push    bc              ;001bh @ ffb6h
162
        inc     bc
163
        ld      sp, 0302h
164
        pop     af              ;00feh @ 0302h
165
        ld      sp, 0ffb6h
166
        call    nc, 7040h       ;703ch @ ffb4h
167
        halt
168
 
169
        org     7040h
170
        push    bc              ;001ch @ ffb2h
171
        inc     bc
172
        jp      nc, 7050h
173
        halt
174
 
175
        org     7050h
176
        push    bc              ;001dh @ ffb0h
177
        inc     bc
178
        jr      nc, 7060h
179
        halt
180
 
181
        org     7060h
182
        push    bc              ;001eh @ ffaeh
183
        inc     bc
184
        ld      sp, 0304h
185
        pop     af              ;0004h @ 0304h
186
        ld      sp, 0ffaeh
187
        call    pe, 7070h       ;706ch @ ffach
188
        halt
189
 
190
        org     7070h
191
        push    bc              ;001fh @ ffaah
192
        inc     bc
193
        jp      pe, 7080h
194
        halt
195
 
196
        org     7080h
197
        push    bc              ;0020h @ ffa8h
198
        inc     bc
199
        ld      sp, 0306h
200
        pop     af              ;00fbh @ 0306h
201
        ld      sp, 0ffa8h
202
        call    po, 7090h       ;708ch @ ffa6h
203
        halt
204
 
205
        org     7090h
206
        push    bc              ;0021h @ ffa4h
207
        inc     bc
208
        jp      po, 70a0h
209
        halt
210
 
211
        org     70a0h
212
        push    bc              ;0022h @ ffa2h
213
        inc     bc
214
        ld      sp, 0308h
215
        pop     af              ;0040h @ 0308h
216
        ld      sp, 0ffa2h
217
        call    z, 70b0h        ;70ach @ ffa0h
218
        halt
219
 
220
        org     70b0h
221
        push    bc              ;0023h @ ff9eh
222
        inc     bc
223
        jp      z, 70c0h
224
        halt
225
 
226
        org     70c0h
227
        push    bc              ;0024h @ ff9ch
228
        inc     bc
229
        jr      z, 70d0h
230
        halt
231
 
232
        org     70d0h
233
        push    bc              ;0025h @ ff9ah
234
        inc     bc
235
        ld      sp, 030ah
236
        pop     af              ;00bfh @ 030ah
237
        ld      sp, 0ff9ah
238
        call    nz, 70e0h       ;70dch @ ff98h
239
        halt
240
 
241
        org     70e0h
242
        push    bc              ;0026h @ ff96h
243
        inc     bc
244
        jp      nz, 70f0h
245
        halt
246
 
247
        org     70f0h
248
        push    bc              ;0027h @ ff94h
249
        inc     bc
250
        jr      nz, 7100h
251
        halt
252
 
253
        org     7100h
254
        push    bc              ;0028h @ ff92h
255
        inc     bc
256
        ld      sp, 030ch
257
        pop     af              ;0080h @ 030ch
258
        ld      sp, 0ff92h
259
        call    m, 7110h        ;710ch @ ff90h
260
        halt
261
 
262
        org     7110h
263
        push    bc              ;0029h @ ff8eh
264
        inc     bc
265
        jp      m, 7120h
266
        halt
267
 
268
        org     7120h
269
        push    bc              ;002ah @ ff8ch
270
        inc     bc
271
        ld      sp, 030eh
272
        pop     af              ;007fh @ 030eh
273
        ld      sp, 0ff8ch
274
        call    p, 7130h        ;712ch @ ff8ah
275
        halt
276
 
277
        org     7130h
278
        push    bc              ;002bh @ ff88h
279
        inc     bc
280
        jp      p, 7140h
281
        halt
282
 
283
        org     7140h
284
        push    bc              ;002ch @ ff86h
285
        inc     bc
286
        ld      sp, 0300h
287
        pop     af              ;0001h @ 0300h
288
        ccf
289
        ld      hl, 0fe00h
290
        ld      sp, 0400h
291
        ret                     ;7160h @ 0400h
292
 
293
        org     7160h
294
        ld      (hl), c         ;  2dh @ fe00h
295
        inc     bc
296
        inc     hl
297
        ld      sp, 0302h
298
        pop     af              ;00feh @ 0302h
299
        ccf
300
        ld      sp, 0402h
301
        ret                     ;7170h @ 0402h
302
 
303
        org     7170h
304
        ld      (hl), c         ;  2eh @ fe01h
305
        inc     bc
306
        inc     hl
307
        ld      sp, 0300h
308
        pop     af              ;0001h @ 0300h
309
        ld      sp, 0404h
310
        ret     c               ;7180h @ 0404h
311
 
312
        org     7180h
313
        ld      (hl), c         ;  2fh @ fe02h
314
        inc     bc
315
        inc     hl
316
        ld      sp, 0302h
317
        pop     af              ;00feh @ 0302h
318
        ld      sp, 0406h
319
        ret     nc              ;7190h @ 0406h
320
 
321
        org     7190h
322
        ld      (hl), c         ;  30h @ fe03h
323
        inc     bc
324
        inc     hl
325
        ld      sp, 0304h
326
        pop     af              ;0004h @ 0304h
327
        ld      sp, 0408h
328
        ret     pe              ;71a0h @ 0408h
329
 
330
        org     71a0h
331
        ld      (hl), c         ;  31h @ fe04h
332
        inc     bc
333
        inc     hl
334
        ld      sp, 0306h
335
        pop     af              ;00fbh @ 0306h
336
        ld      sp, 040ah
337
        ret     po              ;71b0h @ 040ah
338
 
339
        org     71b0h
340
        ld      (hl), c         ;  32h @ fe05h
341
        inc     bc
342
        inc     hl
343
        ld      sp, 0308h
344
        pop     af              ;0040h @ 0308h
345
        ld      sp, 040ch
346
        ret     z               ;71c0h @ 040ch
347
 
348
        org     71c0h
349
        ld      (hl), c         ;  33h @ fe06h
350
        inc     bc
351
        inc     hl
352
        ld      sp, 030ah
353
        pop     af              ;00bfh @ 030ah
354
        ld      sp, 040eh
355
        ret     nz              ;71d0h @ 040eh
356
 
357
        org     71d0h
358
        ld      (hl), c         ;  34h @ fe07h
359
        inc     bc
360
        inc     hl
361
        ld      sp, 030ch
362
        pop     af              ;0080h @ 030ch
363
        ld      sp, 0410h
364
        ret     m               ;71e0h @ 0410h
365
 
366
        org     71e0h
367
        ld      (hl), c         ;  35h @ fe08h
368
        inc     bc
369
        inc     hl
370
        ld      sp, 030eh
371
        pop     af              ;007fh @ 030eh
372
        ld      sp, 0412h
373
        ret     p               ;71f0h @ 0412h
374
 
375
        org     71f0h
376
        ld      (hl), c         ;  36h @ fe09h
377
        inc     bc
378
        ld      sp, 0ff86h
379
        ld      b, 81h
380
        djnz    dlp1
381
 
382
        org     7200h
383
dlp1:   push    bc              ;8037h @ ff84h
384
        inc     bc
385
        ld      b, 41h
386
        djnz    dlp2
387
 
388
        org     7210h
389
dlp2:   push    bc              ;4038h @ ff82h
390
        inc     bc
391
        ld      b, 21h
392
        djnz    dlp3
393
 
394
        org     7220h
395
dlp3:   push    bc              ;2039h @ ff80h
396
        inc     bc
397
        ld      b, 11h
398
        djnz    dlp4
399
 
400
        org     7230h
401
dlp4:   push    bc              ;103ah @ ff7eh
402
        inc     bc
403
        ld      b, 09h
404
        djnz    dlp5
405
 
406
        org     7240h
407
dlp5:   push    bc              ;083bh @ ff7ch
408
        inc     bc
409
        ld      b, 05h
410
        djnz    dlp6
411
 
412
        org     7250h
413
dlp6:   push    bc              ;043ch @ ff7ah
414
        inc     bc
415
        ld      b, 03h
416
        djnz    dlp7
417
 
418
        org     7260h
419
dlp7:   push    bc              ;023dh @ ff78h
420
        inc     bc
421
        ld      b, 01h
422
        djnz    dlp8
423
        push    bc              ;003eh @ ff76h
424
        inc     bc
425
        jr      dlp9
426
 
427
        org     7270h
428
dlp8:   halt
429
 
430
        org     7280h
431
dlp9:   push    bc              ;003fh @ ff74h
432
        inc     bc
433
        inc     b
434
        inc     b
435
        djnz    dlpb
436
        halt
437
 
438
        org     728bh
439
dlpa:   push    bc              ;0241h @ ff70h
440
        ld      sp, 0310h
441
        pop     af              ;0000h @ 0310h
442
        ld      hl, 0100h
443
        jp      0c0h
444
 
445
        org     7305h
446
dlpb:   push    bc              ;0140h @ ff72h
447
        inc     bc
448
        inc     b
449
        inc     b
450
        djnz    dlpa
451
        halt
452
 
453
        org     0ccffh
454
        push    bc              ;0011h @ ffceh
455
        inc     bc
456
        ld      sp, 0300h
457
        pop     af              ;0001h @ 0300h
458
        jp      nc, fail        ;none taken
459
        jr      nc, fail
460
        call    nc, fail
461
        ret     nc
462
        pop     af              ;00feh @ 0302h
463
        jp      c, fail         ;none taken
464
        jr      c, fail
465
        call    c, fail
466
        ret     c
467
        pop     af              ;0004h @ 0304h
468
        jp      po, fail        ;none taken
469
        call    po, fail
470
        ret     po
471
        pop     af              ;00fbh @ 0306h
472
        jp      pe, fail        ;none taken
473
        call    pe, fail
474
        ret     pe
475
        pop     af              ;0040h @ 0308h
476
        jp      nz, fail        ;none taken
477
        jr      nz, fail
478
        call    nz, fail
479
        ret     nz
480
        pop     af              ;00bfh @ 030ah
481
        jp      z, fail         ;none taken
482
        jr      z, fail
483
        call    z, fail
484
        ret     z
485
        pop     af              ;0080h @ 030ch
486
        jp      p, fail         ;none taken
487
        call    p, fail
488
        ret     p
489
        pop     af              ;007fh @ 030eh
490
        jp      m, fail         ;none taken
491
        call    m, fail
492
        ret     m
493
        jr      rel2
494
rel1:   push    bc              ;0013h @ ffcah
495
        inc     bc
496
        jr      rel3
497
fail:   halt
498
rel2:   ld      sp, 0300h
499
        pop     af              ;0001h @ 0300h
500
        ccf
501
        ld      sp, 0ffceh
502
        push    bc              ;0012h @ ffcch
503
        inc     bc
504
        jr      rel1
505
rel3:   push    bc              ;0014h @ ffc8h
506
        inc     bc
507
        jp      0cefbh
508
 
509
        org     0cefbh
510
        push    bc              ;0015h @ ffc6h
511
        inc     bc
512
        jr      rel5
513
 
514
        org     0cf02h
515
rel4:   push    bc              ;0017h @ ffc2h
516
        inc     bc
517
        call    07000h          ;cf07h @ ffc0h
518
 
519
        org     0cf7eh
520
rel5:   push    bc              ;0016h @ ffc4h
521
        inc     bc
522
        jr      rel4
523
 
524
 
525
 
526
 
527
 
528
 

powered by: WebSVN 2.1.0

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