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

Subversion Repositories c16

[/] [c16/] [trunk/] [loader.lst] - Blame information for rev 26

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 jsauermann
IN_RX_DATA      = 0
2
IN_STATUS       = 1
3
MEMTOP  = 8192
4
OUT_TX_DATA     = 0
5
RELOC_SRC       = 488
6
 
7
   0000: F8 0018    MOVE #reloc_rr, RR
8
   0003: 4F         MOVE RR, SP
9
   0004: FC 2000    MOVE #MEMTOP, LL
10
reloc:
11
   0007: 08         MOVE (SP)+, RR
12
   0008: 6E         MOVE -(RR), -(LL)
13
   0009: 0E         MOVE RR, -(SP)
14
   000A: 24 001A    SHI RR, #start
15
   000D: 03 0007    JMP RRNZ, reloc
16
   0010: F8 1E32    MOVE #stack, RR
17
   0013: 4F         MOVE RR, SP
18
   0014: 05 1EF0    CALL Cmain
19
halt:
20
   0017: 00         HALT
21
reloc_rr:
22
   0018: 01E8       .WORD RELOC_SRC
23
start:
24
stack:
25
Cgetchr:
26
L2_loop_1:
27
L2_cont_1:
28
   1E32: 2E 01      IN (IN_STATUS), RU
29
   1E34: 11 01      AND RR, #1
30
   1E36: 3D         LNOT RR
31
   1E37: 03 1E32    JMP RRNZ, L2_loop_1
32
L2_brk_2:
33
   1E3A: 2E 00      IN (IN_RX_DATA), RU
34
   1E3C: 07         RET
35
Cputchr:
36
L3_loop_3:
37
L3_cont_3:
38
   1E3D: 2E 01      IN (IN_STATUS), RU
39
   1E3F: 11 02      AND RR, #2
40
   1E41: 03 1E3D    JMP RRNZ, L3_loop_3
41
L3_brk_4:
42
   1E44: 65 02      MOVE 2(SP), RU
43
   1E46: 2F 00      OUT R, (OUT_TX_DATA)
44
   1E48: 07         RET
45
Cprint_string:
46
   1E49: 02 1E59    JMP L4_cont_5
47
L4_loop_5:
48
   1E4C: 61 02      MOVE 2(SP), RR
49
   1E4E: A1         ADD RR, #1
50
   1E4F: 5D 02      MOVE RR, 2(SP)
51
   1E51: B1         SUB RR, #1
52
   1E52: 47         MOVE (RR), RS
53
   1E53: 0F         MOVE R, -(SP)
54
   1E54: 05 1E3D    CALL Cputchr
55
   1E57: 2B 01      ADD SP, #1
56
L4_cont_5:
57
   1E59: 61 02      MOVE 2(SP), RR
58
   1E5B: 47         MOVE (RR), RS
59
   1E5C: 03 1E4C    JMP RRNZ, L4_loop_5
60
L4_brk_6:
61
   1E5F: 07         RET
62
Cget_nibble:
63
   1E60: 05 1E32    CALL Cgetchr
64
   1E63: 0F         MOVE R, -(SP)
65
   1E64: 65 00      MOVE 0(SP), RU
66
   1E66: 29 30      SLO RR, #48
67
   1E68: 04 1E71    JMP RRZ, L5_endif_7
68
   1E6B: F8 00FF    MOVE #255, RR
69 7 jsauermann
   1E6E: 2B 01      ADD SP, #1
70
   1E70: 07         RET
71 2 jsauermann
L5_endif_7:
72
   1E71: 65 00      MOVE 0(SP), RU
73
   1E73: 27 39      SLS RR, #57
74
   1E75: 04 1E7F    JMP RRZ, L5_endif_8
75
   1E78: 65 00      MOVE 0(SP), RU
76
   1E7A: F7 30      SUB RR, #48
77 7 jsauermann
   1E7C: 2B 01      ADD SP, #1
78
   1E7E: 07         RET
79 2 jsauermann
L5_endif_8:
80
   1E7F: 65 00      MOVE 0(SP), RU
81
   1E81: 29 41      SLO RR, #65
82
   1E83: 04 1E8C    JMP RRZ, L5_endif_9
83
   1E86: F8 00FF    MOVE #255, RR
84 7 jsauermann
   1E89: 2B 01      ADD SP, #1
85
   1E8B: 07         RET
86 2 jsauermann
L5_endif_9:
87
   1E8C: 65 00      MOVE 0(SP), RU
88
   1E8E: 27 46      SLS RR, #70
89
   1E90: 04 1E9A    JMP RRZ, L5_endif_10
90
   1E93: 65 00      MOVE 0(SP), RU
91
   1E95: F7 37      SUB RR, #55
92 7 jsauermann
   1E97: 2B 01      ADD SP, #1
93
   1E99: 07         RET
94 2 jsauermann
L5_endif_10:
95
   1E9A: 65 00      MOVE 0(SP), RU
96
   1E9C: 29 61      SLO RR, #97
97
   1E9E: 04 1EA7    JMP RRZ, L5_endif_11
98
   1EA1: F8 00FF    MOVE #255, RR
99 7 jsauermann
   1EA4: 2B 01      ADD SP, #1
100
   1EA6: 07         RET
101 2 jsauermann
L5_endif_11:
102
   1EA7: 65 00      MOVE 0(SP), RU
103
   1EA9: 27 66      SLS RR, #102
104
   1EAB: 04 1EB5    JMP RRZ, L5_endif_12
105
   1EAE: 65 00      MOVE 0(SP), RU
106
   1EB0: F7 57      SUB RR, #87
107 7 jsauermann
   1EB2: 2B 01      ADD SP, #1
108
   1EB4: 07         RET
109 2 jsauermann
L5_endif_12:
110
   1EB5: F8 00FF    MOVE #255, RR
111 7 jsauermann
   1EB8: 2B 01      ADD SP, #1
112
   1EBA: 07         RET
113 2 jsauermann
   1EBB: 2B 01      ADD SP, #1
114
   1EBD: 07         RET
115
Cget_byte:
116
   1EBE: 05 1E60    CALL Cget_nibble
117
   1EC1: 0F         MOVE R, -(SP)
118
   1EC2: 2D         CLRB -(SP)
119
   1EC3: 65 01      MOVE 1(SP), RU
120
   1EC5: 18 00FF    SNE RR, #255
121
   1EC8: 04 1EE3    JMP RRZ, L6_endif_13
122
   1ECB: 05 1E60    CALL Cget_nibble
123
   1ECE: 5F 00      MOVE R, 0(SP)
124
   1ED0: 65 00      MOVE 0(SP), RU
125
   1ED2: 18 00FF    SNE RR, #255
126
   1ED5: 04 1EE3    JMP RRZ, L6_endif_14
127
   1ED8: 65 01      MOVE 1(SP), RU
128
   1EDA: 52 04      LSL RR, #4
129
   1EDC: 43         MOVE RR, LL
130
   1EDD: 65 00      MOVE 0(SP), RU
131
   1EDF: 31         OR LL, RR
132 7 jsauermann
   1EE0: 2B 02      ADD SP, #2
133
   1EE2: 07         RET
134 2 jsauermann
L6_endif_14:
135
L6_endif_13:
136
   1EE3: F8 1FC7    MOVE #Cstr_5, RR
137
   1EE6: 0E         MOVE RR, -(SP)
138
   1EE7: 05 1E49    CALL Cprint_string
139
   1EEA: 2B 02      ADD SP, #2
140
   1EEC: 00         HALT
141
   1EED: 2B 02      ADD SP, #2
142
   1EEF: 07         RET
143
Cmain:
144
   1EF0: 2D         CLRB -(SP)
145
   1EF1: 2C         CLRW -(SP)
146
   1EF2: 2D         CLRB -(SP)
147
   1EF3: 2D         CLRB -(SP)
148
   1EF4: 2D         CLRB -(SP)
149
   1EF5: 2D         CLRB -(SP)
150
L7_loop_15:
151
   1EF6: F8 1FDA    MOVE #Cstr_7, RR
152
   1EF9: 0E         MOVE RR, -(SP)
153
   1EFA: 05 1E49    CALL Cprint_string
154
   1EFD: 2B 02      ADD SP, #2
155
L7_loop_17:
156
L7_loop_19:
157
L7_cont_19:
158
   1EFF: 05 1E32    CALL Cgetchr
159
   1F02: 5F 00      MOVE R, 0(SP)
160
   1F04: 19 3A      SNE RR, #58
161
   1F06: 03 1EFF    JMP RRNZ, L7_loop_19
162
L7_brk_20:
163
   1F09: C0         MOVE #0, RR
164
   1F0A: 5F 02      MOVE R, 2(SP)
165
   1F0C: 05 1EBE    CALL Cget_byte
166
   1F0F: 5F 00      MOVE R, 0(SP)
167
   1F11: 65 02      MOVE 2(SP), RU
168
   1F13: 43         MOVE RR, LL
169
   1F14: 65 00      MOVE 0(SP), RU
170
   1F16: 58         ADD LL, RR
171
   1F17: 5F 02      MOVE R, 2(SP)
172
   1F19: 65 00      MOVE 0(SP), RU
173
   1F1B: 5F 06      MOVE R, 6(SP)
174
   1F1D: 05 1EBE    CALL Cget_byte
175
   1F20: 5F 00      MOVE R, 0(SP)
176
   1F22: 65 02      MOVE 2(SP), RU
177
   1F24: 43         MOVE RR, LL
178
   1F25: 65 00      MOVE 0(SP), RU
179
   1F27: 58         ADD LL, RR
180
   1F28: 5F 02      MOVE R, 2(SP)
181
   1F2A: 65 00      MOVE 0(SP), RU
182
   1F2C: 52 08      LSL RR, #8
183
   1F2E: 5D 04      MOVE RR, 4(SP)
184
   1F30: 05 1EBE    CALL Cget_byte
185
   1F33: 5F 00      MOVE R, 0(SP)
186
   1F35: 65 02      MOVE 2(SP), RU
187
   1F37: 43         MOVE RR, LL
188
   1F38: 65 00      MOVE 0(SP), RU
189
   1F3A: 58         ADD LL, RR
190
   1F3B: 5F 02      MOVE R, 2(SP)
191
   1F3D: 61 04      MOVE 4(SP), RR
192
   1F3F: 43         MOVE RR, LL
193
   1F40: 65 00      MOVE 0(SP), RU
194
   1F42: 31         OR LL, RR
195
   1F43: 5D 04      MOVE RR, 4(SP)
196
   1F45: 05 1EBE    CALL Cget_byte
197
   1F48: 5F 00      MOVE R, 0(SP)
198
   1F4A: 65 02      MOVE 2(SP), RU
199
   1F4C: 43         MOVE RR, LL
200
   1F4D: 65 00      MOVE 0(SP), RU
201
   1F4F: 58         ADD LL, RR
202
   1F50: 5F 02      MOVE R, 2(SP)
203
   1F52: 65 00      MOVE 0(SP), RU
204
   1F54: 5F 03      MOVE R, 3(SP)
205
   1F56: C0         MOVE #0, RR
206
   1F57: 5F 01      MOVE R, 1(SP)
207
   1F59: 02 1F7C    JMP L7_tst_21
208
L7_loop_21:
209
   1F5C: 05 1EBE    CALL Cget_byte
210
   1F5F: 5F 00      MOVE R, 0(SP)
211
   1F61: 65 00      MOVE 0(SP), RU
212
   1F63: 0F         MOVE R, -(SP)
213
   1F64: 65 02      MOVE 2(SP), RU
214
   1F66: 0E         MOVE RR, -(SP)
215
   1F67: 61 07      MOVE 7(SP), RR
216
   1F69: 0B         MOVE (SP)+, LL
217
   1F6A: 58         ADD LL, RR
218
   1F6B: 43         MOVE RR, LL
219
   1F6C: 09         MOVE (SP)+, RS
220
   1F6D: 45         MOVE R, (LL)
221
   1F6E: 65 02      MOVE 2(SP), RU
222
   1F70: 43         MOVE RR, LL
223
   1F71: 65 00      MOVE 0(SP), RU
224
   1F73: 58         ADD LL, RR
225
   1F74: 5F 02      MOVE R, 2(SP)
226
L7_cont_21:
227
   1F76: 65 01      MOVE 1(SP), RU
228
   1F78: A1         ADD RR, #1
229
   1F79: 5F 01      MOVE R, 1(SP)
230
   1F7B: B1         SUB RR, #1
231
L7_tst_21:
232
   1F7C: 65 01      MOVE 1(SP), RU
233
   1F7E: 43         MOVE RR, LL
234
   1F7F: 65 06      MOVE 6(SP), RU
235
   1F81: 3C         SLO LL, RR
236
   1F82: 03 1F5C    JMP RRNZ, L7_loop_21
237
L7_brk_22:
238
   1F85: 05 1EBE    CALL Cget_byte
239
   1F88: 5F 00      MOVE R, 0(SP)
240
   1F8A: 65 02      MOVE 2(SP), RU
241
   1F8C: 43         MOVE RR, LL
242
   1F8D: 65 00      MOVE 0(SP), RU
243
   1F8F: 58         ADD LL, RR
244
   1F90: 5F 02      MOVE R, 2(SP)
245
   1F92: 65 02      MOVE 2(SP), RU
246
   1F94: 04 1F9A    JMP RRZ, L7_endif_23
247
   1F97: 02 1FB8    JMP L7_brk_18
248
L7_endif_23:
249
   1F9A: F9 2E      MOVE #46, RR
250
   1F9C: 0F         MOVE R, -(SP)
251
   1F9D: 05 1E3D    CALL Cputchr
252
   1FA0: 2B 01      ADD SP, #1
253
   1FA2: 65 03      MOVE 3(SP), RU
254
   1FA4: 17 01      SEQ RR, #1
255
   1FA6: 04 1FB5    JMP RRZ, L7_endif_24
256
   1FA9: F8 1FE4    MOVE #Cstr_8, RR
257
   1FAC: 0E         MOVE RR, -(SP)
258
   1FAD: 05 1E49    CALL Cprint_string
259
   1FB0: 2B 02      ADD SP, #2
260
   1FB2: 61 04      MOVE 4(SP), RR
261
   1FB4: 06         CALL RR
262
L7_endif_24:
263
L7_cont_17:
264
   1FB5: 02 1EFF    JMP L7_loop_17
265
L7_brk_18:
266
   1FB8: F8 1FEE    MOVE #Cstr_9, RR
267
   1FBB: 0E         MOVE RR, -(SP)
268
   1FBC: 05 1E49    CALL Cprint_string
269
   1FBF: 2B 02      ADD SP, #2
270
L7_cont_15:
271
   1FC1: 02 1EF6    JMP L7_loop_15
272
L7_brk_16:
273
   1FC4: 2B 07      ADD SP, #7
274
   1FC6: 07         RET
275
Cstr_5:
276
   1FC7: 0D         .BYTE 13
277
   1FC8: 0A         .BYTE 10
278
   1FC9: 45         .BYTE 69
279
   1FCA: 52         .BYTE 82
280
   1FCB: 52         .BYTE 82
281
   1FCC: 4F         .BYTE 79
282
   1FCD: 52         .BYTE 82
283
   1FCE: 3A         .BYTE 58
284
   1FCF: 20         .BYTE 32
285
   1FD0: 6E         .BYTE 110
286
   1FD1: 6F         .BYTE 111
287
   1FD2: 74         .BYTE 116
288
   1FD3: 20         .BYTE 32
289
   1FD4: 68         .BYTE 104
290
   1FD5: 65         .BYTE 101
291
   1FD6: 78         .BYTE 120
292
   1FD7: 0D         .BYTE 13
293
   1FD8: 0A         .BYTE 10
294
   1FD9: 00         .BYTE 0
295
Cstr_7:
296
   1FDA: 0D         .BYTE 13
297
   1FDB: 0A         .BYTE 10
298
   1FDC: 4C         .BYTE 76
299
   1FDD: 4F         .BYTE 79
300
   1FDE: 41         .BYTE 65
301
   1FDF: 44         .BYTE 68
302
   1FE0: 20         .BYTE 32
303
   1FE1: 3E         .BYTE 62
304
   1FE2: 20         .BYTE 32
305
   1FE3: 00         .BYTE 0
306
Cstr_8:
307
   1FE4: 0D         .BYTE 13
308
   1FE5: 0A         .BYTE 10
309
   1FE6: 44         .BYTE 68
310
   1FE7: 4F         .BYTE 79
311
   1FE8: 4E         .BYTE 78
312
   1FE9: 45         .BYTE 69
313
   1FEA: 2E         .BYTE 46
314
   1FEB: 0D         .BYTE 13
315
   1FEC: 0A         .BYTE 10
316
   1FED: 00         .BYTE 0
317
Cstr_9:
318
   1FEE: 0D         .BYTE 13
319
   1FEF: 0A         .BYTE 10
320
   1FF0: 43         .BYTE 67
321
   1FF1: 48         .BYTE 72
322
   1FF2: 45         .BYTE 69
323
   1FF3: 43         .BYTE 67
324
   1FF4: 4B         .BYTE 75
325
   1FF5: 53         .BYTE 83
326
   1FF6: 55         .BYTE 85
327
   1FF7: 4D         .BYTE 77
328
   1FF8: 20         .BYTE 32
329
   1FF9: 45         .BYTE 69
330
   1FFA: 52         .BYTE 82
331
   1FFB: 52         .BYTE 82
332
   1FFC: 4F         .BYTE 79
333
   1FFD: 52         .BYTE 82
334
   1FFE: 2E         .BYTE 46
335
   1FFF: 00         .BYTE 0
336
Cend_text:

powered by: WebSVN 2.1.0

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