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

Subversion Repositories y80e

[/] [y80e/] [trunk/] [asm/] [180_ops.s] - Blame information for rev 6

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 bsa
;**********************************************************************************
2
;*                                                                                *
3
;* checks all z180 instructions                                                   *
4
;*                                                                                *
5
;**********************************************************************************
6
        aseg
7
 
8
        org     00h
9
        jp      100h
10
 
11
        org     038h
12
        jp      (hl)
13
 
14
        org     066h
15
        jp      (ix)
16
 
17
        org     80h
18
        db      00h, 01h, 2dh, 03h, 04h, 05h, 06h, 07h
19
        db      0fh, 1eh, 02h, 3ch, 4bh, 5ah, 69h, 78h
20
 
21
        org     0c0h            ;pattern finish location
22
        nop
23
        jr      0c0h
24
 
25
        org     0100h
26
        di
27
        ld      sp, 0fffeh      ;point sp at result table
28
        xor     a
29
        ld      hl, 01234h
30
        ld      de, 05678h
31
        ld      bc, 09abch
32
        mlt     sp
33
        push    af              ;0044h @ fd00h
34
        mlt     hl
35
        push    hl              ;03a8h @ fcfeh
36
        mlt     de
37
        push    de              ;2850h @ fcfch
38
        mlt     bc
39
        push    bc              ;7118h @ fcfah
40
        push    af              ;0044h @ fcf8h
41
;
42
        add     a,1
43
        in0     a,(080h)        ;read 00h @ 0080h
44
        push    af              ;0044h @ fcf6h
45
        out0    (030h),b        ;071 @ 0030h
46
        push    af              ;0044h @ fcf4h
47
        in0     a,(08ah)        ;read 02h @ 008ah
48
        push    af              ;0200h @ fcf2h
49
        out0    (031h),c        ;018 @ 0031h
50
        push    af              ;0200h @ fcf0h
51
        in0     b,(81h)
52
        in0     c,(82h)
53
        in0     d,(83h)
54
        in0     e,(84h)
55
        in0     h,(85h)
56
        in0     l,(86h)         ;read 06h @ 0086h
57
        push    af              ;0204h @ fceeh
58
        push    bc              ;012dh @ fcech
59
        push    de              ;0304h @ fceah
60
        push    hl              ;0506h @ fce8h
61
;
62
        out0    (032h),l        ;06h @ 0032h
63
        out0    (033h),h        ;05h @ 0033h
64
        out0    (034h),a        ;02h @ 0034h
65
        out0    (035h),d        ;03h @ 0035h
66
        out0    (036h),e        ;04h @ 0036h
67
        push    af              ;0204h @ fce6h
68
;
69
        ld      a, 0a9h
70
        tst     b       ;a9h & 01h = 01h
71
        push    af              ;a910h @ fce4h
72
        tst     c       ;a9h & 2dh = 29h
73
        push    af              ;a910h @ fce2h
74
        tst     d       ;a9h & 03h = 01h
75
        push    af              ;a910h @ fce0h
76
        scf
77
        tst     e       ;a9h & 04h = 00h
78
        push    af              ;a954h @ fcdeh
79
        tst     h       ;a9h & 05h = 01h
80
        push    af              ;a910h @ fcdch
81
        ld      l, 0f7h
82
        tst     l       ;a9h & f7h = a1h
83
        push    af              ;a990h @ fcdah
84
        tst     a       ;a9h & a9h = a9h
85
        push    af              ;a994h @ fcd8h
86
        scf
87
        ld      hl, 01000h
88
        tst     (hl)    ;a9h & b7h = a1h
89
        push    af              ;a990h @ fcd6h
90
        tst     056h    ;a9h & 56h = 00h
91
        push    af              ;a954h @ fcd4h
92
        ld      c, 08ch
93
        scf
94
        tstio   0aah    ;a9h & 4bh = 09h
95
        push    af              ;a914h @ fcd2h
96
;
97
        xor     a
98
        ld      hl, 02000h
99
        ld      bc, 00630h
100
        otim                    ;read  71h @ 2000h
101
                                ;write 71h @ 0030h 
102
        push    af              ;0006h @ fcd0h
103
        push    bc              ;0531h @ fcceh
104
        push    hl              ;2001h @ fccch
105
        otimr                   ;read  18h @ 2001h
106
                                ;write 18h @ 0031h
107
                                ;read  06h @ 2002h
108
                                ;write 06h @ 0032h
109
                                ;read  05h @ 2003h
110
                                ;write 05h @ 0033h
111
                                ;read  02h @ 2004h
112
                                ;write 02h @ 0034h
113
                                ;read  03h @ 2005h
114
                                ;write 03h @ 0035h
115
        push    af              ;0046h @ fccah
116
        push    bc              ;0036h @ fcc8h
117
        push    hl              ;2006h @ fcc6h
118
        ld      b,1
119
        otimr                   ;read  04h @ 2006h
120
                                ;write 04h @ 0036h
121
        push    af              ;0046h @ fcc4h
122
        push    bc              ;0037h @ fcc2h
123
        push    hl              ;2007h @ fcc0h
124
        inc     b
125
        otim                    ;read  aah @ 2007h
126
                                ;write aah @ 0037h
127
        push    af              ;0042h @ fcbeh
128
        push    bc              ;0038h @ fcbch
129
        push    hl              ;2008h @ fcbah
130
        ld      hl, 02007h
131
        ld      bc, 00637h
132
        otdm                    ;read  aah @ 2007h
133
                                ;write aah @ 0037h
134
        push    af              ;0002h @ fcb8h
135
        push    bc              ;0536h @ fcb6h
136
        push    hl              ;2006h @ fcb4h
137
        otdmr                   ;read  04h @ 2006h
138
                                ;write 04h @ 0036h
139
                                ;read  03h @ 2005h
140
                                ;write 03h @ 0035h
141
                                ;read  02h @ 2004h
142
                                ;write 02h @ 0034h
143
                                ;read  05h @ 2003h
144
                                ;write 05h @ 0033h
145
                                ;read  06h @ 2002h
146
                                ;write 06h @ 0032h
147
        push    af              ;0042h @ fcb2h
148
        push    bc              ;0031h @ fcb0h
149
        push    hl              ;2001h @ fcaeh
150
        inc     b
151
        xor     0aah
152
        otdmr                   ;read  18h @ 2001h
153
                                ;write 18h @ 0031h
154
        push    af              ;aac6h @ fcach
155
        push    bc              ;0030h @ fcaah
156
        push    hl              ;2000h @ fca8h
157
        inc     b
158
        otdm                    ;read  71h @ 2000h
159
                                ;write 71h @ 0030h
160
        push    af              ;aa42h @ fca6h
161
        push    bc              ;002fh @ fca4h
162
        push    de              ;0304h @ fca2h
163
        push    hl              ;1fffh @ fca0h
164
;
165
        ld      hl, 00100h
166
        jp      0c0h
167
 
168
        org     01000h
169
        db      0b7h
170
 
171
        org     02000h
172
        db      071h, 018h, 006h, 005h, 002h, 003h, 004h, 0aah
173
 
174
        end

powered by: WebSVN 2.1.0

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