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

Subversion Repositories y80e

[/] [y80e/] [trunk/] [asm/] [io_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 i/o and block instructions                                          *
4
;*                                                                                *
5
;**********************************************************************************
6
        aseg
7
 
8
        org     00h
9
        jp      01000h
10
 
11
        org     0c0h            ;pattern finish location
12
        nop
13
        jr      0c0h
14
 
15
        org     0e0h
16
        db      010h
17
 
18
        org     01e1h
19
        db      013h
20
        db      088h
21
 
22
        org     02e1h
23
        db      012h
24
        db      017h
25
 
26
        org     03e1h
27
        db      011h
28
        db      016h
29
 
30
        org     04e2h
31
        db      015h
32
 
33
        org     05e2h
34
        db      014h
35
 
36
        org     01000h
37
        ld      sp, 0000h
38
        xor     a
39
        ld      b, a
40
        ld      c, 0ffh
41
        ld      d, a
42
        ld      e, 021h
43
        ld      h, a
44
        ld      l, 0aah
45
        ld      a, 0cch
46
        in      a, (0f0h)       ;  5ah @ ccf0h
47
        push    af              ;5a44h @ fffeh
48
        out     (3ch), a        ;  5ah @ 5a3ch
49
        ld      a, 0ffh
50
 
51
        ld      sp, 0ffd2h
52
        ld      bc, 0e123h
53
        in      b, (c)          ;  c6h @ e123h
54
        push    af              ;ff84h @ ffd0h
55
        push    bc              ;c623h @ ffceh
56
        in      c, (c)          ;  10h @ c623h
57
        push    af              ;ff00h @ ffcch
58
        push    bc              ;c610h @ ffcah
59
        in      d, (c)          ;  a0h @ c610h
60
        push    af              ;ff84h @ ffc8h
61
        push    bc              ;c610h @ ffc6h
62
        push    de              ;a021h @ ffc4h
63
        inc     bc
64
        in      e, (c)          ;  eah @ c611h
65
        push    af              ;ff80h @ ffc2h
66
        push    bc              ;c611h @ ffc0h
67
        push    de              ;a0eah @ ffbeh
68
        inc     bc
69
        in      h, (c)          ;  66h @ c612h
70
        push    af              ;ff04h @ ffbch
71
        push    bc              ;c612h @ ffbah
72
        push    de              ;a0eah @ ffb8h
73
        push    hl              ;66aah @ ffb6h
74
        inc     bc
75
        in      l, (c)          ;  00h @ c613h
76
        push    af              ;ff44h @ ffb4h
77
        push    bc              ;c613h @ ffb2h
78
        push    de              ;a0eah @ ffb0h
79
        push    hl              ;6600h @ ffaeh
80
        inc     bc
81
        in      a, (c)          ;  43h 2 c614h
82
        push    af              ;4300h @ ffach
83
        push    bc              ;c614h @ ffaah
84
        push    de              ;a0eah @ ffa8h
85
        push    hl              ;6600h @ ffa6h
86
 
87
        inc     bc
88
        out     (c), b          ;  c6h @ c615h
89
        inc     bc
90
        out     (c), c          ;  16h @ c616h
91
        inc     bc
92
        out     (c), d          ;  a0h @ c617h
93
        inc     bc
94
        out     (c), e          ;  eah @ c618h
95
        inc     bc
96
        out     (c), h          ;  66h @ c619h
97
        inc     bc
98
        out     (c), l          ;  00h @ c61ah
99
        inc     bc
100
        out     (c), a          ;  43h @ c61bh
101
 
102
        or      b
103
        ld      a, 043h
104
 
105
        ld      sp, 0ff8eh
106
        ld      bc, 08000h
107
        ld      de, 0a000h
108
        ld      hl, 05000h
109
        ldd                     ;  55h @ 5000h read
110
                                ;  55h @ a000h write
111
        push    af              ;4384h @ ff8ch
112
        push    bc              ;7fffh @ ff8ah
113
        push    de              ;9fffh @ ff88h
114
        push    hl              ;4fffh @ ff86h
115
        ldi                     ;  aah @ 4fffh read
116
                                ;  aah @ 9fffh write
117
        push    af              ;4384h @ ff84h
118
        push    bc              ;7ffeh @ ff82h
119
        push    de              ;a000h @ ff80h
120
        push    hl              ;5000h @ ff7eh
121
        ld      bc, 0003h
122
        ld      de, 0a001h
123
        ld      hl, 05002h
124
        ldir                    ;  01h @ 5002h read
125
                                ;  01h @ a001h  write
126
                                ;  02h @ 5003h read
127
                                ;  02h @ a002h write
128
                                ;  03h @ 5004h read
129
                                ;  03h @ a003h write
130
        push    af              ;4380h @ ff7ch
131
        push    bc              ;0000h @ ff7ah
132
        push    de              ;a004h @ ff78h
133
        push    hl              ;5005h @ ff76h
134
        ld      bc, 0004h
135
        ld      de, 09ffeh
136
        ld      hl, 04ffdh
137
        lddr                    ;  04h @ 4ffdh read
138
                                ;  04h @ 9ffeh write
139
                                ;  05h @ 4ffch read
140
                                ;  05h @ 9ffdh write
141
                                ;  06h @ 4ffbh read
142
                                ;  06h @ 9ffch write
143
                                ;  07h @ 4ffah read
144
                                ;  07h @ 9ffbh write
145
        push    af              ;4380h @ ff74h
146
        push    bc              ;0000h @ ff72h
147
        push    de              ;9ffah @ ff70h
148
        push    hl              ;4ff9h @ ff6eh
149
        cpd                     ;  08h @ 4ff9h read
150
        push    af              ;4316h @ ff6ch
151
        push    bc              ;ffffh @ ff6ah
152
        push    de              ;9ffah @ ff68h
153
        push    hl              ;4ff8h @ ff66h
154
        ld      bc, 0007h
155
        cpdr                    ;  09h @ 4ff8h read
156
                                ;  0ah @ 4ff7h read
157
                                ;  43h @ 4ff6h read
158
        push    af              ;4346h @ ff64h
159
        push    bc              ;0004h @ ff62h
160
        push    de              ;9ffah @ ff60h
161
        push    hl              ;4ff5h @ ff5eh
162
        ld      bc, 8000h
163
        ld      hl, 5005h
164
        cpi                     ;  0bh @ 5005h read
165
        push    af              ;4316h @ ff5ch
166
        push    bc              ;7fffh @ ff5ah
167
        push    de              ;9ffah @ ff58h
168
        push    hl              ;5006h @ ff56h
169
        ld      bc, 0004h
170
        cpir                    ;  0ch @ 5006h read
171
                                ;  0dh @ 5007h read
172
                                ;  0eh @ 5008h read
173
                                ;  0fh @ 5009h read
174
        push    af              ;4312h @ ff54h
175
        push    bc              ;0000h @ ff52h
176
        push    de              ;9ffah @ ff50h
177
        push    hl              ;500ah @ ff4eh
178
        ld      bc, 00e0h
179
        ini                     ;  10h @ 00e0h read
180
                                ;  10h @ 500ah write
181
        push    af              ;4310h @ ff4ch
182
        push    bc              ;ffe0h @ ff4ah
183
        push    de              ;9ffah @ ff48h
184
        push    hl              ;500bh @ ff46h
185
        ld      bc, 03e1h
186
        inir                    ;  11h @ 03e1h read
187
                                ;  11h @ 500bh write
188
                                ;  12h @ 02e1h read
189
                                ;  12h @ 500ch write
190
                                ;  13h @ 01e1h read
191
                                ;  13h @ 500dh write
192
        push    af              ;4350h @ ff44h
193
        push    bc              ;00e1h @ ff42h
194
        push    de              ;9ffah @ ff40h
195
        push    hl              ;500eh @ ff3eh
196
        ld      bc, 05e2h
197
        ld      hl, 4ff5h
198
        ind                     ;  14h @ 05e2h read
199
                                ;  14h @ 4ff5h write
200
        push    af              ;4310h @ ff3ch
201
        push    bc              ;04e2h @ ff3ah
202
        push    de              ;9ffah @ ff38h
203
        push    hl              ;4ff4h @ ff36h
204
        indr                    ;  15h @ 04e2h read
205
                                ;  15h @ 4ff4h write
206
                                ;  16h @ 03e2h read
207
                                ;  16h @ 4ff3h write
208
                                ;  17h @ 02e2h read
209
                                ;  17h @ 4ff2h write
210
                                ;  88h @ 01e2h read
211
                                ;  88h @ 4ff1h write
212
        push    af              ;4352h @ ff34h
213
        push    bc              ;00e2h @ ff32h
214
        push    de              ;9ffah @ ff30h
215
        push    hl              ;4ff0h @ ff2eh
216
        ld      bc, 04e3h
217
        outd                    ;  19h @ 4ff0h read
218
                                ;  19h @ 04e3h write
219
        push    af              ;4310h @ ff2ch
220
        push    bc              ;00e3h @ ff2ah
221
        push    de              ;9ffah @ ff28h
222
        push    hl              ;4fefh @ ff26h
223
        otdr                    ;  1ah @ 4fefh read
224
                                ;  1ah @ 03e3h write
225
                                ;  1bh @ 4feeh read
226
                                ;  1bh @ 02e3h write
227
                                ;  1ch @ 4fedh read
228
                                ;  1ch @ 01e3h write
229
        push    af              ;4350h @ ff24h
230
        push    bc              ;00e3h @ ff22h
231
        push    de              ;9ffah @ ff20h
232
        push    hl              ;4fech @ ff1eh
233
        ld      bc, 05e4h
234
        ld      hl, 500eh
235
        outi                    ;  1dh @ 500eh read
236
                                ;  1dh @ 05e4h write
237
        push    af              ;4310h @ ff1ch
238
        push    bc              ;04e4h @ ff1ah
239
        push    de              ;9ffah @ ff18h
240
        push    hl              ;500fh @ ff16h
241
        otir                    ;  1eh @ 500fh read
242
                                ;  1eh @ 04e4h write
243
                                ;  1fh @ 5010h read
244
                                ;  1fh @ 03e4h write
245
                                ;  20h @ 5011h read
246
                                ;  20h @ 02e4h write
247
                                ;  a1h @ 5012h read
248
                                ;  a1h @ 01e4h write
249
        push    af              ;4352h @ ff14h
250
        push    bc              ;00e4h @ ff12h
251
        push    de              ;9ffah @ ff10h
252
        push    hl              ;5013h @ ff0eh
253
 
254
        ld      hl, 0100h
255
        jp      0c0h
256
 
257
        org     04fe8h
258
        db      0ffh, 0ffh, 0a8h, 027h, 026h, 01ch, 01bh, 01ah
259
        db      019h, 0ffh, 0ffh, 0ffh, 0ffh, 0ffh, 043h, 00ah
260
        db      009h, 008h, 007h, 006h, 005h, 004h, 0ffh, 0aah
261
        db      055h, 0ffh, 001h, 002h, 003h, 00bh, 00ch, 00dh
262
        db      00eh, 00fh, 0ffh, 0ffh, 0ffh, 0ffh, 01dh, 01eh
263
        db      01fh, 020h, 0a1h, 022h, 023h, 022h, 025h, 0ffh
264
 
265
        org     06600h
266
        db      0bch
267
 
268
        org     0c610h
269
        db      0a0h, 0eah, 066h, 000h, 043h
270
 
271
        org     0c61bh
272
        db      08fh
273
 
274
        org     0c623h
275
        db      10h
276
 
277
        org     0ccf0h
278
        db      05ah
279
 
280
        org     0e123h
281
        db      0c6h
282
 
283
 
284
 
285
 
286
 
287
 

powered by: WebSVN 2.1.0

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