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

Subversion Repositories y80e

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

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 8 bsa
        jp      001feh
101
        org     001feh
102 6 bsa
        otim                    ;read  71h @ 2000h
103
                                ;write 71h @ 0030h 
104
        push    af              ;0006h @ fcd0h
105
        push    bc              ;0531h @ fcceh
106
        push    hl              ;2001h @ fccch
107 8 bsa
        jp      002feh
108
        org     002feh
109 6 bsa
        otimr                   ;read  18h @ 2001h
110
                                ;write 18h @ 0031h
111
                                ;read  06h @ 2002h
112
                                ;write 06h @ 0032h
113
                                ;read  05h @ 2003h
114
                                ;write 05h @ 0033h
115
                                ;read  02h @ 2004h
116
                                ;write 02h @ 0034h
117
                                ;read  03h @ 2005h
118
                                ;write 03h @ 0035h
119
        push    af              ;0046h @ fccah
120
        push    bc              ;0036h @ fcc8h
121
        push    hl              ;2006h @ fcc6h
122
        ld      b,1
123 8 bsa
        jp      003ffh
124
        org     003ffh
125 6 bsa
        otimr                   ;read  04h @ 2006h
126
                                ;write 04h @ 0036h
127
        push    af              ;0046h @ fcc4h
128
        push    bc              ;0037h @ fcc2h
129
        push    hl              ;2007h @ fcc0h
130
        inc     b
131 8 bsa
        jp      004ffh
132
        org     004ffh
133 6 bsa
        otim                    ;read  aah @ 2007h
134
                                ;write aah @ 0037h
135
        push    af              ;0042h @ fcbeh
136
        push    bc              ;0038h @ fcbch
137
        push    hl              ;2008h @ fcbah
138
        ld      hl, 02007h
139
        ld      bc, 00637h
140 8 bsa
        jp      005feh
141
        org     005feh
142 6 bsa
        otdm                    ;read  aah @ 2007h
143
                                ;write aah @ 0037h
144
        push    af              ;0002h @ fcb8h
145
        push    bc              ;0536h @ fcb6h
146
        push    hl              ;2006h @ fcb4h
147 8 bsa
        jp      006feh
148
        org     006feh
149 6 bsa
        otdmr                   ;read  04h @ 2006h
150
                                ;write 04h @ 0036h
151
                                ;read  03h @ 2005h
152
                                ;write 03h @ 0035h
153
                                ;read  02h @ 2004h
154
                                ;write 02h @ 0034h
155
                                ;read  05h @ 2003h
156
                                ;write 05h @ 0033h
157
                                ;read  06h @ 2002h
158
                                ;write 06h @ 0032h
159
        push    af              ;0042h @ fcb2h
160
        push    bc              ;0031h @ fcb0h
161
        push    hl              ;2001h @ fcaeh
162
        inc     b
163
        xor     0aah
164 8 bsa
        jp      007ffh
165
        org     007ffh
166 6 bsa
        otdmr                   ;read  18h @ 2001h
167
                                ;write 18h @ 0031h
168
        push    af              ;aac6h @ fcach
169
        push    bc              ;0030h @ fcaah
170
        push    hl              ;2000h @ fca8h
171
        inc     b
172 8 bsa
        jp      008ffh
173
        org     008ffh
174 6 bsa
        otdm                    ;read  71h @ 2000h
175
                                ;write 71h @ 0030h
176
        push    af              ;aa42h @ fca6h
177
        push    bc              ;002fh @ fca4h
178
        push    de              ;0304h @ fca2h
179
        push    hl              ;1fffh @ fca0h
180
;
181
        ld      hl, 00100h
182
        jp      0c0h
183
 
184
        org     01000h
185
        db      0b7h
186
 
187
        org     02000h
188
        db      071h, 018h, 006h, 005h, 002h, 003h, 004h, 0aah
189
 
190
        end

powered by: WebSVN 2.1.0

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