OpenCores
URL https://opencores.org/ocsvn/395_vgs/395_vgs/trunk

Subversion Repositories 395_vgs

[/] [395_vgs/] [trunk/] [src/] [PIC18/] [intro.asm] - Blame information for rev 32

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 zuofu
;/////////////////////////////////////////////////////////////////////////////////
2
;// Code Generator: BoostC Compiler and Linker - http://www.picant.com/c2c/c.html
3 31 zuofu
;// License Type  : Full License
4
;// Limitations   : PIC18 max code size:Unlimited, max RAM banks:Unlimited, Non commercial use only
5 27 zuofu
;/////////////////////////////////////////////////////////////////////////////////
6
 
7 31 zuofu
        include "P18F4620.inc"
8
__HEAPSTART                      EQU    0x00000041 ; Start address of heap
9
__HEAPEND                        EQU    0x00000F7F ; End address of heap
10 27 zuofu
gbl_porta                        EQU    0x00000F80 ; bytes:1
11
gbl_portb                        EQU    0x00000F81 ; bytes:1
12
gbl_portc                        EQU    0x00000F82 ; bytes:1
13
gbl_portd                        EQU    0x00000F83 ; bytes:1
14
gbl_porte                        EQU    0x00000F84 ; bytes:1
15
gbl_lata                         EQU    0x00000F89 ; bytes:1
16
gbl_latb                         EQU    0x00000F8A ; bytes:1
17
gbl_latc                         EQU    0x00000F8B ; bytes:1
18
gbl_latd                         EQU    0x00000F8C ; bytes:1
19
gbl_late                         EQU    0x00000F8D ; bytes:1
20 31 zuofu
gbl_ddra                         EQU    0x00000F92 ; bytes:1
21 27 zuofu
gbl_trisa                        EQU    0x00000F92 ; bytes:1
22 31 zuofu
gbl_ddrb                         EQU    0x00000F93 ; bytes:1
23 27 zuofu
gbl_trisb                        EQU    0x00000F93 ; bytes:1
24 31 zuofu
gbl_ddrc                         EQU    0x00000F94 ; bytes:1
25 27 zuofu
gbl_trisc                        EQU    0x00000F94 ; bytes:1
26 31 zuofu
gbl_ddrd                         EQU    0x00000F95 ; bytes:1
27 27 zuofu
gbl_trisd                        EQU    0x00000F95 ; bytes:1
28 31 zuofu
gbl_ddre                         EQU    0x00000F96 ; bytes:1
29 27 zuofu
gbl_trise                        EQU    0x00000F96 ; bytes:1
30 31 zuofu
gbl_osctune                      EQU    0x00000F9B ; bytes:1
31 27 zuofu
gbl_pie1                         EQU    0x00000F9D ; bytes:1
32
gbl_pir1                         EQU    0x00000F9E ; bytes:1
33
gbl_ipr1                         EQU    0x00000F9F ; bytes:1
34
gbl_pie2                         EQU    0x00000FA0 ; bytes:1
35
gbl_pir2                         EQU    0x00000FA1 ; bytes:1
36
gbl_ipr2                         EQU    0x00000FA2 ; bytes:1
37
gbl_eecon1                       EQU    0x00000FA6 ; bytes:1
38
gbl_eecon2                       EQU    0x00000FA7 ; bytes:1
39
gbl_eedata                       EQU    0x00000FA8 ; bytes:1
40
gbl_eeadr                        EQU    0x00000FA9 ; bytes:1
41 31 zuofu
gbl_eeadrh                       EQU    0x00000FAA ; bytes:1
42 27 zuofu
gbl_rcsta                        EQU    0x00000FAB ; bytes:1
43
gbl_txsta                        EQU    0x00000FAC ; bytes:1
44
gbl_txreg                        EQU    0x00000FAD ; bytes:1
45
gbl_rcreg                        EQU    0x00000FAE ; bytes:1
46
gbl_spbrg                        EQU    0x00000FAF ; bytes:1
47 31 zuofu
gbl_spbrgh                       EQU    0x00000FB0 ; bytes:1
48 27 zuofu
gbl_t3con                        EQU    0x00000FB1 ; bytes:1
49
gbl_tmr3l                        EQU    0x00000FB2 ; bytes:1
50
gbl_tmr3h                        EQU    0x00000FB3 ; bytes:1
51 31 zuofu
gbl_cmcon                        EQU    0x00000FB4 ; bytes:1
52
gbl_cvrcon                       EQU    0x00000FB5 ; bytes:1
53
gbl_eccp1as                      EQU    0x00000FB6 ; bytes:1
54
gbl_pwm1con                      EQU    0x00000FB7 ; bytes:1
55
gbl_baudcon                      EQU    0x00000FB8 ; bytes:1
56 27 zuofu
gbl_ccp2con                      EQU    0x00000FBA ; bytes:1
57 31 zuofu
gbl_ccpr2                        EQU    0x00000FBB ; bytes:1
58 27 zuofu
gbl_ccpr2h                       EQU    0x00000FBC ; bytes:1
59
gbl_ccp1con                      EQU    0x00000FBD ; bytes:1
60 31 zuofu
gbl_ccpr1                        EQU    0x00000FBE ; bytes:1
61 27 zuofu
gbl_ccpr1h                       EQU    0x00000FBF ; bytes:1
62 31 zuofu
gbl_adcon2                       EQU    0x00000FC0 ; bytes:1
63 27 zuofu
gbl_adcon1                       EQU    0x00000FC1 ; bytes:1
64
gbl_adcon0                       EQU    0x00000FC2 ; bytes:1
65 31 zuofu
gbl_adres                        EQU    0x00000FC3 ; bytes:1
66 27 zuofu
gbl_adresh                       EQU    0x00000FC4 ; bytes:1
67
gbl_sspcon2                      EQU    0x00000FC5 ; bytes:1
68
gbl_sspcon1                      EQU    0x00000FC6 ; bytes:1
69
gbl_sspstat                      EQU    0x00000FC7 ; bytes:1
70
gbl_sspadd                       EQU    0x00000FC8 ; bytes:1
71
gbl_sspbuf                       EQU    0x00000FC9 ; bytes:1
72
gbl_t2con                        EQU    0x00000FCA ; bytes:1
73
gbl_pr2                          EQU    0x00000FCB ; bytes:1
74
gbl_tmr2                         EQU    0x00000FCC ; bytes:1
75
gbl_t1con                        EQU    0x00000FCD ; bytes:1
76
gbl_tmr1l                        EQU    0x00000FCE ; bytes:1
77
gbl_tmr1h                        EQU    0x00000FCF ; bytes:1
78
gbl_rcon                         EQU    0x00000FD0 ; bytes:1
79
gbl_wdtcon                       EQU    0x00000FD1 ; bytes:1
80 31 zuofu
gbl_hlvdcon                      EQU    0x00000FD2 ; bytes:1
81 27 zuofu
gbl_osccon                       EQU    0x00000FD3 ; bytes:1
82 31 zuofu
gbl_debug                        EQU    0x00000FD4 ; bytes:1
83 27 zuofu
gbl_t0con                        EQU    0x00000FD5 ; bytes:1
84
gbl_tmr0l                        EQU    0x00000FD6 ; bytes:1
85
gbl_tmr0h                        EQU    0x00000FD7 ; bytes:1
86
gbl_status                       EQU    0x00000FD8 ; bytes:1
87
gbl_fsr2l                        EQU    0x00000FD9 ; bytes:1
88
gbl_fsr2h                        EQU    0x00000FDA ; bytes:1
89
gbl_plusw2                       EQU    0x00000FDB ; bytes:1
90
gbl_preinc2                      EQU    0x00000FDC ; bytes:1
91
gbl_postdec2                     EQU    0x00000FDD ; bytes:1
92
gbl_postinc2                     EQU    0x00000FDE ; bytes:1
93
gbl_indf2                        EQU    0x00000FDF ; bytes:1
94
gbl_bsr                          EQU    0x00000FE0 ; bytes:1
95
gbl_fsr1l                        EQU    0x00000FE1 ; bytes:1
96
gbl_fsr1h                        EQU    0x00000FE2 ; bytes:1
97
gbl_plusw1                       EQU    0x00000FE3 ; bytes:1
98
gbl_preinc1                      EQU    0x00000FE4 ; bytes:1
99
gbl_postdec1                     EQU    0x00000FE5 ; bytes:1
100
gbl_postinc1                     EQU    0x00000FE6 ; bytes:1
101
gbl_indf1                        EQU    0x00000FE7 ; bytes:1
102
gbl_wreg                         EQU    0x00000FE8 ; bytes:1
103
gbl_fsr0l                        EQU    0x00000FE9 ; bytes:1
104
gbl_fsr0h                        EQU    0x00000FEA ; bytes:1
105
gbl_plusw0                       EQU    0x00000FEB ; bytes:1
106
gbl_preinc0                      EQU    0x00000FEC ; bytes:1
107
gbl_postdec0                     EQU    0x00000FED ; bytes:1
108
gbl_postinc0                     EQU    0x00000FEE ; bytes:1
109
gbl_indf0                        EQU    0x00000FEF ; bytes:1
110
gbl_intcon3                      EQU    0x00000FF0 ; bytes:1
111
gbl_intcon2                      EQU    0x00000FF1 ; bytes:1
112
gbl_intcon                       EQU    0x00000FF2 ; bytes:1
113 31 zuofu
gbl_prod                         EQU    0x00000FF3 ; bytes:1
114 27 zuofu
gbl_prodh                        EQU    0x00000FF4 ; bytes:1
115
gbl_tablat                       EQU    0x00000FF5 ; bytes:1
116 31 zuofu
gbl_tblptr                       EQU    0x00000FF6 ; bytes:1
117 27 zuofu
gbl_tblptrh                      EQU    0x00000FF7 ; bytes:1
118
gbl_tblptru                      EQU    0x00000FF8 ; bytes:1
119 31 zuofu
gbl_pc                           EQU    0x00000FF9 ; bytes:1
120 27 zuofu
gbl_pclath                       EQU    0x00000FFA ; bytes:1
121
gbl_pclatu                       EQU    0x00000FFB ; bytes:1
122
gbl_stkptr                       EQU    0x00000FFC ; bytes:1
123 31 zuofu
gbl_tos                          EQU    0x00000FFD ; bytes:1
124 27 zuofu
gbl_tosh                         EQU    0x00000FFE ; bytes:1
125
gbl_tosu                         EQU    0x00000FFF ; bytes:1
126 31 zuofu
drawtoback_00007_arg_source      EQU    0x00000020 ; bytes:8
127
drawsprite_00000_arg_sprite      EQU    0x00000020 ; bytes:17
128
drawsprite_00000_1_destina_0000D EQU    0x00000031 ; bytes:4
129
load_alpha_00008_arg_alphaOp     EQU    0x0000003D ; bit:0
130
load_l_siz_00009_arg_size        EQU    0x0000003D ; bytes:2
131
load_s_lin_0000A_arg_lines       EQU    0x0000003D ; bytes:2
132
load_t_add_0000B_arg_address     EQU    0x0000003D ; bytes:4
133
load_s_add_0000C_arg_address     EQU    0x0000003D ; bytes:4
134
bootup_00000_1_i                 EQU    0x00000005 ; bytes:1
135
bootup_00000_1_j                 EQU    0x00000006 ; bytes:1
136
bootup_00000_1_black             EQU    0x00000007 ; bytes:8
137
bootup_00000_1_frame             EQU    0x0000000F ; bytes:17
138
main_1_temp                      EQU    0x00000004 ; bytes:1
139
gbl_prodl                        EQU    0x00000FF3 ; bytes:1
140
__mul_32_3_00006_arg_a           EQU    0x00000035 ; bytes:4
141
__mul_32_3_00006_arg_b           EQU    0x00000039 ; bytes:4
142
delay_us_00000_arg_del           EQU    0x00000005 ; bytes:1
143
delay_ms_00000_arg_del           EQU    0x00000020 ; bytes:1
144 27 zuofu
CompTempVarRet0                  EQU    0x00000000 ; bytes:4
145
        ORG 0x00000000
146
        GOTO    _startup
147
        ORG 0x00000004
148
delay_ms_00000
149
; { delay_ms ; function begin
150
        MOVF delay_ms_00000_arg_del, F
151
        BTFSS STATUS,Z
152
        GOTO    label4026531859
153
        RETURN
154
label4026531859
155
        MOVLW 0xFF
156
label4026531860
157
        NOP
158
        NOP
159
        NOP
160
        NOP
161
        NOP
162
        NOP
163
        NOP
164
        NOP
165
        NOP
166
        NOP
167
        NOP
168
        NOP
169
        NOP
170
        NOP
171
        NOP
172
        NOP
173
        NOP
174
        NOP
175
        NOP
176
        NOP
177
        NOP
178
        NOP
179
        NOP
180
        NOP
181
        NOP
182
        NOP
183
        NOP
184
        NOP
185
        NOP
186
        NOP
187
        NOP
188
        NOP
189
        NOP
190
        NOP
191
        NOP
192
        NOP
193
        NOP
194
        NOP
195
        NOP
196
        NOP
197
        NOP
198
        NOP
199
        NOP
200
        NOP
201
        NOP
202
        ADDLW 0xFF
203
        BTFSS STATUS,Z
204
        GOTO    label4026531860
205
        NOP
206
        DECFSZ delay_ms_00000_arg_del, F
207
        GOTO    label4026531859
208
        RETURN
209
; } delay_ms function end
210
 
211
        ORG 0x0000007C
212 31 zuofu
delay_us_00000
213
; { delay_us ; function begin
214
        MOVF delay_us_00000_arg_del, F
215
        BTFSS STATUS,Z
216
        GOTO    label4026531844
217 27 zuofu
        RETURN
218 31 zuofu
label4026531844
219
        MOVLW 0x02
220
label4026531845
221
        ADDLW 0xFF
222
        BTFSS STATUS,Z
223
        GOTO    label4026531845
224
        DECFSZ delay_us_00000_arg_del, F
225
        GOTO    label4026531844
226
        RETURN
227
; } delay_us function end
228 27 zuofu
 
229 31 zuofu
        ORG 0x00000098
230 27 zuofu
__mul_32_3_00006
231
; { __mul_32_32 ; function begin
232
        CLRF CompTempVarRet0
233
        CLRF CompTempVarRet0+D'1'
234
        CLRF CompTempVarRet0+D'2'
235
        CLRF CompTempVarRet0+D'3'
236
        CLRF CompTempVarRet0+D'2'
237
        CLRF CompTempVarRet0+D'3'
238 31 zuofu
        MOVF __mul_32_3_00006_arg_a, W
239
        MULWF __mul_32_3_00006_arg_b
240 27 zuofu
        MOVF gbl_prodl, W
241
        MOVWF CompTempVarRet0
242
        MOVF gbl_prodh, W
243
        MOVWF CompTempVarRet0+D'1'
244 31 zuofu
        MOVF __mul_32_3_00006_arg_a+D'1', W
245
        MULWF __mul_32_3_00006_arg_b
246 27 zuofu
        MOVF gbl_prodl, W
247
        ADDWF CompTempVarRet0+D'1', F
248
        MOVF gbl_prodh, W
249
        ADDWFC CompTempVarRet0+D'2', F
250
        BTFSC gbl_status,0
251
        INCF CompTempVarRet0+D'3', F
252 31 zuofu
        MOVF __mul_32_3_00006_arg_a+D'2', W
253
        MULWF __mul_32_3_00006_arg_b
254 27 zuofu
        MOVF gbl_prodl, W
255
        ADDWF CompTempVarRet0+D'2', F
256
        MOVF gbl_prodh, W
257
        ADDWFC CompTempVarRet0+D'3', F
258 31 zuofu
        MOVF __mul_32_3_00006_arg_a+D'3', W
259
        MULWF __mul_32_3_00006_arg_b
260 27 zuofu
        MOVF gbl_prodl, W
261
        ADDWF CompTempVarRet0+D'3', F
262 31 zuofu
        MOVF __mul_32_3_00006_arg_a, W
263
        MULWF __mul_32_3_00006_arg_b+D'1'
264 27 zuofu
        MOVF gbl_prodl, W
265
        ADDWF CompTempVarRet0+D'1', F
266
        MOVF gbl_prodh, W
267
        ADDWFC CompTempVarRet0+D'2', F
268
        BTFSC gbl_status,0
269
        INCF CompTempVarRet0+D'3', F
270 31 zuofu
        MOVF __mul_32_3_00006_arg_a+D'1', W
271
        MULWF __mul_32_3_00006_arg_b+D'1'
272 27 zuofu
        MOVF gbl_prodl, W
273
        ADDWF CompTempVarRet0+D'2', F
274
        MOVF gbl_prodh, W
275
        ADDWFC CompTempVarRet0+D'3', F
276 31 zuofu
        MOVF __mul_32_3_00006_arg_a+D'2', W
277
        MULWF __mul_32_3_00006_arg_b+D'1'
278 27 zuofu
        MOVF gbl_prodl, W
279
        ADDWF CompTempVarRet0+D'3', F
280 31 zuofu
        MOVF __mul_32_3_00006_arg_a, W
281
        MULWF __mul_32_3_00006_arg_b+D'2'
282 27 zuofu
        MOVF gbl_prodl, W
283
        ADDWF CompTempVarRet0+D'2', F
284
        MOVF gbl_prodh, W
285
        ADDWFC CompTempVarRet0+D'3', F
286 31 zuofu
        MOVF __mul_32_3_00006_arg_a+D'1', W
287
        MULWF __mul_32_3_00006_arg_b+D'2'
288 27 zuofu
        MOVF gbl_prodl, W
289
        ADDWF CompTempVarRet0+D'3', F
290 31 zuofu
        MOVF __mul_32_3_00006_arg_a, W
291
        MULWF __mul_32_3_00006_arg_b+D'3'
292 27 zuofu
        MOVF gbl_prodl, W
293
        ADDWF CompTempVarRet0+D'3', F
294
        RETURN
295
; } __mul_32_32 function end
296
 
297 31 zuofu
        ORG 0x00000116
298 27 zuofu
draw_00000
299
; { draw ; function begin
300
        MOVLW 0x02
301
        MOVWF gbl_porta
302
        CLRF gbl_porta
303 31 zuofu
label268435830
304
        BTFSS gbl_portd,7
305
        BRA     label268435830
306 27 zuofu
        RETURN
307
; } draw function end
308
 
309 31 zuofu
        ORG 0x00000122
310 27 zuofu
load_s_add_0000C
311
; { load_s_addr ; function begin
312
        MOVLW 0x02
313
        MOVWF gbl_portc
314 31 zuofu
        MOVF load_s_add_0000C_arg_address, W
315 27 zuofu
        ANDLW 0xFF
316
        MOVWF gbl_portb
317
        MOVLW 0x01
318
        MOVWF gbl_porta
319
        CLRF gbl_porta
320 31 zuofu
        MOVF load_s_add_0000C_arg_address+D'1', W
321
        MOVWF load_s_add_0000C_arg_address
322
        MOVF load_s_add_0000C_arg_address+D'2', W
323
        MOVWF load_s_add_0000C_arg_address+D'1'
324
        MOVF load_s_add_0000C_arg_address+D'3', W
325
        MOVWF load_s_add_0000C_arg_address+D'2'
326
        CLRF load_s_add_0000C_arg_address+D'3'
327 27 zuofu
        MOVLW 0x01
328
        MOVWF gbl_portc
329 31 zuofu
        MOVF load_s_add_0000C_arg_address, W
330 27 zuofu
        ANDLW 0xFF
331
        MOVWF gbl_portb
332
        MOVLW 0x01
333
        MOVWF gbl_porta
334
        CLRF gbl_porta
335 31 zuofu
        MOVF load_s_add_0000C_arg_address+D'1', W
336
        MOVWF load_s_add_0000C_arg_address
337
        MOVF load_s_add_0000C_arg_address+D'2', W
338
        MOVWF load_s_add_0000C_arg_address+D'1'
339
        MOVF load_s_add_0000C_arg_address+D'3', W
340
        MOVWF load_s_add_0000C_arg_address+D'2'
341
        CLRF load_s_add_0000C_arg_address+D'3'
342 27 zuofu
        CLRF gbl_portc
343 31 zuofu
        MOVF load_s_add_0000C_arg_address, W
344 27 zuofu
        ANDLW 0xFF
345
        MOVWF gbl_portb
346
        MOVLW 0x01
347
        MOVWF gbl_porta
348
        CLRF gbl_porta
349
        RETURN
350
; } load_s_addr function end
351
 
352 31 zuofu
        ORG 0x0000016E
353 27 zuofu
load_t_add_0000B
354
; { load_t_addr ; function begin
355
        MOVLW 0x05
356
        MOVWF gbl_portc
357 31 zuofu
        MOVF load_t_add_0000B_arg_address, W
358 27 zuofu
        ANDLW 0xFF
359
        MOVWF gbl_portb
360
        MOVLW 0x01
361
        MOVWF gbl_porta
362
        CLRF gbl_porta
363 31 zuofu
        MOVF load_t_add_0000B_arg_address+D'1', W
364
        MOVWF load_t_add_0000B_arg_address
365
        MOVF load_t_add_0000B_arg_address+D'2', W
366
        MOVWF load_t_add_0000B_arg_address+D'1'
367
        MOVF load_t_add_0000B_arg_address+D'3', W
368
        MOVWF load_t_add_0000B_arg_address+D'2'
369
        CLRF load_t_add_0000B_arg_address+D'3'
370 27 zuofu
        MOVLW 0x04
371
        MOVWF gbl_portc
372 31 zuofu
        MOVF load_t_add_0000B_arg_address, W
373 27 zuofu
        ANDLW 0xFF
374
        MOVWF gbl_portb
375
        MOVLW 0x01
376
        MOVWF gbl_porta
377
        CLRF gbl_porta
378 31 zuofu
        MOVF load_t_add_0000B_arg_address+D'1', W
379
        MOVWF load_t_add_0000B_arg_address
380
        MOVF load_t_add_0000B_arg_address+D'2', W
381
        MOVWF load_t_add_0000B_arg_address+D'1'
382
        MOVF load_t_add_0000B_arg_address+D'3', W
383
        MOVWF load_t_add_0000B_arg_address+D'2'
384
        CLRF load_t_add_0000B_arg_address+D'3'
385 27 zuofu
        MOVLW 0x03
386
        MOVWF gbl_portc
387 31 zuofu
        MOVF load_t_add_0000B_arg_address, W
388 27 zuofu
        ANDLW 0xFF
389
        MOVWF gbl_portb
390
        MOVLW 0x01
391
        MOVWF gbl_porta
392
        CLRF gbl_porta
393
        RETURN
394
; } load_t_addr function end
395
 
396 31 zuofu
        ORG 0x000001BC
397 27 zuofu
load_s_lin_0000A
398
; { load_s_lines ; function begin
399
        MOVLW 0x07
400
        MOVWF gbl_portc
401 31 zuofu
        MOVF load_s_lin_0000A_arg_lines, W
402 27 zuofu
        ANDLW 0xFF
403
        MOVWF gbl_portb
404
        MOVLW 0x01
405
        MOVWF gbl_porta
406
        CLRF gbl_porta
407 31 zuofu
        MOVF load_s_lin_0000A_arg_lines+D'1', W
408
        MOVWF load_s_lin_0000A_arg_lines
409
        CLRF load_s_lin_0000A_arg_lines+D'1'
410 27 zuofu
        MOVLW 0x06
411
        MOVWF gbl_portc
412 31 zuofu
        MOVF load_s_lin_0000A_arg_lines, W
413 27 zuofu
        ANDLW 0xFF
414
        MOVWF gbl_portb
415
        MOVLW 0x01
416
        MOVWF gbl_porta
417
        CLRF gbl_porta
418
        RETURN
419
; } load_s_lines function end
420
 
421 31 zuofu
        ORG 0x000001E4
422 27 zuofu
load_l_siz_00009
423
; { load_l_size ; function begin
424
        MOVLW 0x09
425
        MOVWF gbl_portc
426 31 zuofu
        MOVF load_l_siz_00009_arg_size, W
427 27 zuofu
        ANDLW 0xFF
428
        MOVWF gbl_portb
429
        MOVLW 0x01
430
        MOVWF gbl_porta
431
        CLRF gbl_porta
432 31 zuofu
        MOVF load_l_siz_00009_arg_size+D'1', W
433
        MOVWF load_l_siz_00009_arg_size
434
        CLRF load_l_siz_00009_arg_size+D'1'
435 27 zuofu
        MOVLW 0x08
436
        MOVWF gbl_portc
437 31 zuofu
        MOVF load_l_siz_00009_arg_size, W
438 27 zuofu
        ANDLW 0x0F
439
        MOVWF gbl_portb
440
        MOVLW 0x01
441
        MOVWF gbl_porta
442
        CLRF gbl_porta
443
        RETURN
444
; } load_l_size function end
445
 
446 31 zuofu
        ORG 0x0000020C
447 27 zuofu
load_alpha_00008
448
; { load_alphaOp ; function begin
449
        MOVLW 0x0A
450
        MOVWF gbl_portc
451 31 zuofu
        BTFSS load_alpha_00008_arg_alphaOp,0
452
        BRA     label268435770
453 27 zuofu
        MOVLW 0x01
454
        MOVWF gbl_portb
455 31 zuofu
        BRA     label268435773
456
label268435770
457 27 zuofu
        CLRF gbl_portb
458 31 zuofu
label268435773
459 27 zuofu
        MOVLW 0x01
460
        MOVWF gbl_porta
461
        CLRF gbl_porta
462
        RETURN
463
; } load_alphaOp function end
464
 
465 31 zuofu
        ORG 0x00000224
466 27 zuofu
drawsprite_00000
467
; { drawsprite ; function begin
468 31 zuofu
        MOVF drawsprite_00000_arg_sprite+D'12', W
469
        MOVWF __mul_32_3_00006_arg_a
470
        MOVF drawsprite_00000_arg_sprite+D'13', W
471
        MOVWF __mul_32_3_00006_arg_a+D'1'
472
        MOVF drawsprite_00000_arg_sprite+D'14', W
473
        MOVWF __mul_32_3_00006_arg_a+D'2'
474
        MOVF drawsprite_00000_arg_sprite+D'15', W
475
        MOVWF __mul_32_3_00006_arg_a+D'3'
476 27 zuofu
        MOVLW 0xA0
477 31 zuofu
        MOVWF __mul_32_3_00006_arg_b
478
        CLRF __mul_32_3_00006_arg_b+D'1'
479
        CLRF __mul_32_3_00006_arg_b+D'2'
480
        CLRF __mul_32_3_00006_arg_b+D'3'
481 27 zuofu
        CALL __mul_32_3_00006
482
        MOVF CompTempVarRet0, W
483
        MOVWF drawsprite_00000_1_destina_0000D
484
        MOVF CompTempVarRet0+D'1', W
485
        MOVWF drawsprite_00000_1_destina_0000D+D'1'
486
        MOVF CompTempVarRet0+D'2', W
487
        MOVWF drawsprite_00000_1_destina_0000D+D'2'
488
        MOVF CompTempVarRet0+D'3', W
489
        MOVWF drawsprite_00000_1_destina_0000D+D'3'
490 31 zuofu
        MOVF drawsprite_00000_arg_sprite+D'8', W
491 27 zuofu
        ADDWF drawsprite_00000_1_destina_0000D, F
492 31 zuofu
        MOVF drawsprite_00000_arg_sprite+D'9', W
493 27 zuofu
        ADDWFC drawsprite_00000_1_destina_0000D+D'1', F
494 31 zuofu
        MOVF drawsprite_00000_arg_sprite+D'10', W
495 27 zuofu
        ADDWFC drawsprite_00000_1_destina_0000D+D'2', F
496 31 zuofu
        MOVF drawsprite_00000_arg_sprite+D'11', W
497 27 zuofu
        ADDWFC drawsprite_00000_1_destina_0000D+D'3', F
498
        MOVF drawsprite_00000_1_destina_0000D, W
499 31 zuofu
        MOVWF load_t_add_0000B_arg_address
500 27 zuofu
        MOVF drawsprite_00000_1_destina_0000D+D'1', W
501 31 zuofu
        MOVWF load_t_add_0000B_arg_address+D'1'
502 27 zuofu
        MOVF drawsprite_00000_1_destina_0000D+D'2', W
503 31 zuofu
        MOVWF load_t_add_0000B_arg_address+D'2'
504 27 zuofu
        MOVF drawsprite_00000_1_destina_0000D+D'3', W
505 31 zuofu
        MOVWF load_t_add_0000B_arg_address+D'3'
506 27 zuofu
        CALL load_t_add_0000B
507 31 zuofu
        MOVF drawsprite_00000_arg_sprite, W
508
        MOVWF load_s_add_0000C_arg_address
509
        MOVF drawsprite_00000_arg_sprite+D'1', W
510
        MOVWF load_s_add_0000C_arg_address+D'1'
511
        MOVF drawsprite_00000_arg_sprite+D'2', W
512
        MOVWF load_s_add_0000C_arg_address+D'2'
513
        MOVF drawsprite_00000_arg_sprite+D'3', W
514
        MOVWF load_s_add_0000C_arg_address+D'3'
515 27 zuofu
        CALL load_s_add_0000C
516 31 zuofu
        MOVF drawsprite_00000_arg_sprite+D'6', W
517
        MOVWF load_s_lin_0000A_arg_lines
518
        MOVF drawsprite_00000_arg_sprite+D'7', W
519
        MOVWF load_s_lin_0000A_arg_lines+D'1'
520 27 zuofu
        CALL load_s_lin_0000A
521 31 zuofu
        MOVF drawsprite_00000_arg_sprite+D'4', W
522
        MOVWF load_l_siz_00009_arg_size
523
        MOVF drawsprite_00000_arg_sprite+D'5', W
524
        MOVWF load_l_siz_00009_arg_size+D'1'
525 27 zuofu
        CALL load_l_siz_00009
526 31 zuofu
        MOVF drawsprite_00000_arg_sprite+D'16', F
527
        BZ      label268435755
528
        BSF load_alpha_00008_arg_alphaOp,0
529 27 zuofu
        CALL load_alpha_00008
530 31 zuofu
        BRA     label268435761
531
label268435755
532
        BCF load_alpha_00008_arg_alphaOp,0
533 27 zuofu
        CALL load_alpha_00008
534 31 zuofu
label268435761
535 27 zuofu
        CALL draw_00000
536
        RETURN
537
; } drawsprite function end
538
 
539 31 zuofu
        ORG 0x000002BA
540 27 zuofu
drawtoback_00007
541
; { drawtobackground ; function begin
542 31 zuofu
        CLRF load_t_add_0000B_arg_address
543
        CLRF load_t_add_0000B_arg_address+D'1'
544
        CLRF load_t_add_0000B_arg_address+D'2'
545
        CLRF load_t_add_0000B_arg_address+D'3'
546 27 zuofu
        CALL load_t_add_0000B
547 31 zuofu
        MOVF drawtoback_00007_arg_source, W
548
        MOVWF load_s_add_0000C_arg_address
549
        MOVF drawtoback_00007_arg_source+D'1', W
550
        MOVWF load_s_add_0000C_arg_address+D'1'
551
        MOVF drawtoback_00007_arg_source+D'2', W
552
        MOVWF load_s_add_0000C_arg_address+D'2'
553
        MOVF drawtoback_00007_arg_source+D'3', W
554
        MOVWF load_s_add_0000C_arg_address+D'3'
555 27 zuofu
        CALL load_s_add_0000C
556 31 zuofu
        MOVF drawtoback_00007_arg_source+D'6', W
557
        MOVWF load_s_lin_0000A_arg_lines
558
        MOVF drawtoback_00007_arg_source+D'7', W
559
        MOVWF load_s_lin_0000A_arg_lines+D'1'
560 27 zuofu
        CALL load_s_lin_0000A
561 31 zuofu
        MOVF drawtoback_00007_arg_source+D'4', W
562
        MOVWF load_l_siz_00009_arg_size
563
        MOVF drawtoback_00007_arg_source+D'5', W
564
        MOVWF load_l_siz_00009_arg_size+D'1'
565 27 zuofu
        CALL load_l_siz_00009
566 31 zuofu
        BCF load_alpha_00008_arg_alphaOp,0
567 27 zuofu
        CALL load_alpha_00008
568
        CALL draw_00000
569
        RETURN
570
; } drawtobackground function end
571
 
572 31 zuofu
        ORG 0x000002FE
573
setupinput_00000
574
; { setupinput ; function begin
575
        BCF gbl_trisc,6
576
        BSF gbl_trisc,7
577
        BSF gbl_trisc,5
578
        SETF gbl_spbrg
579
        BSF gbl_txsta,4
580
        BSF gbl_rcsta,7
581
        BSF gbl_txsta,7
582
        BCF gbl_rcsta,5
583
        BCF gbl_rcsta,4
584
        BCF gbl_portd,5
585
        RETURN
586
; } setupinput function end
587
 
588
        ORG 0x00000314
589
getinput_00000
590
; { getinput ; function begin
591
        BSF gbl_portd,5
592
        MOVLW 0x0C
593
        MOVWF delay_us_00000_arg_del
594
        CALL delay_us_00000
595
        BCF gbl_portd,5
596
        MOVLW 0x06
597
        MOVWF delay_us_00000_arg_del
598
        CALL delay_us_00000
599
        BSF gbl_rcsta,5
600
        BTFSS gbl_pir1,5
601
        BRA     label268437510
602
        MOVF gbl_rcreg, W
603
        MOVWF CompTempVarRet0
604
label268437510
605
        RETURN
606
; } getinput function end
607
 
608
        ORG 0x00000334
609
bootup_00000
610
; { bootup ; function begin
611
        CLRF bootup_00000_1_i
612
        CLRF bootup_00000_1_j
613
        CLRF bootup_00000_1_black
614 27 zuofu
        MOVLW 0xC2
615 31 zuofu
        MOVWF bootup_00000_1_black+D'1'
616 27 zuofu
        MOVLW 0x01
617 31 zuofu
        MOVWF bootup_00000_1_black+D'2'
618
        CLRF bootup_00000_1_black+D'3'
619 27 zuofu
        MOVLW 0xF0
620 31 zuofu
        MOVWF bootup_00000_1_black+D'6'
621
        CLRF bootup_00000_1_black+D'7'
622 27 zuofu
        MOVLW 0xA0
623 31 zuofu
        MOVWF bootup_00000_1_black+D'4'
624
        CLRF bootup_00000_1_black+D'5'
625
        CLRF bootup_00000_1_frame
626
        MOVLW 0x68
627
        MOVWF bootup_00000_1_frame+D'1'
628
        MOVLW 0x37
629
        MOVWF bootup_00000_1_frame+D'2'
630
        CLRF bootup_00000_1_frame+D'3'
631 27 zuofu
        MOVLW 0xA0
632 31 zuofu
        MOVWF bootup_00000_1_frame+D'6'
633
        CLRF bootup_00000_1_frame+D'7'
634 27 zuofu
        MOVLW 0x4F
635 31 zuofu
        MOVWF bootup_00000_1_frame+D'4'
636
        CLRF bootup_00000_1_frame+D'5'
637
        CLRF bootup_00000_1_frame+D'8'
638
        CLRF bootup_00000_1_frame+D'9'
639
        CLRF bootup_00000_1_frame+D'10'
640
        CLRF bootup_00000_1_frame+D'11'
641
        CLRF bootup_00000_1_frame+D'12'
642
        CLRF bootup_00000_1_frame+D'13'
643
        CLRF bootup_00000_1_frame+D'14'
644
        CLRF bootup_00000_1_frame+D'15'
645
        CLRF bootup_00000_1_frame+D'16'
646
        MOVLW 0x28
647
        MOVWF bootup_00000_1_frame+D'8'
648
        CLRF bootup_00000_1_frame+D'9'
649
        CLRF bootup_00000_1_frame+D'10'
650
        CLRF bootup_00000_1_frame+D'11'
651
        MOVLW 0x28
652
        MOVWF bootup_00000_1_frame+D'12'
653
        CLRF bootup_00000_1_frame+D'13'
654
        CLRF bootup_00000_1_frame+D'14'
655
        CLRF bootup_00000_1_frame+D'15'
656
        MOVF bootup_00000_1_black+D'7', W
657
        MOVWF drawtoback_00007_arg_source+D'7'
658
        MOVF bootup_00000_1_black+D'6', W
659
        MOVWF drawtoback_00007_arg_source+D'6'
660
        MOVF bootup_00000_1_black+D'5', W
661
        MOVWF drawtoback_00007_arg_source+D'5'
662
        MOVF bootup_00000_1_black+D'4', W
663
        MOVWF drawtoback_00007_arg_source+D'4'
664
        MOVF bootup_00000_1_black+D'3', W
665
        MOVWF drawtoback_00007_arg_source+D'3'
666
        MOVF bootup_00000_1_black+D'2', W
667
        MOVWF drawtoback_00007_arg_source+D'2'
668
        MOVF bootup_00000_1_black+D'1', W
669
        MOVWF drawtoback_00007_arg_source+D'1'
670
        MOVF bootup_00000_1_black, W
671
        MOVWF drawtoback_00007_arg_source
672 27 zuofu
        CALL drawtoback_00007
673 31 zuofu
        MOVLW 0xC8
674 27 zuofu
        MOVWF delay_ms_00000_arg_del
675
        CALL delay_ms_00000
676 31 zuofu
        CLRF bootup_00000_1_i
677
label268437212
678
        MOVLW 0x15
679
        CPFSLT bootup_00000_1_i
680
        BRA     label268437213
681
        MOVF bootup_00000_1_frame+D'16', W
682
        MOVWF drawsprite_00000_arg_sprite+D'16'
683
        MOVF bootup_00000_1_frame+D'15', W
684
        MOVWF drawsprite_00000_arg_sprite+D'15'
685
        MOVF bootup_00000_1_frame+D'14', W
686
        MOVWF drawsprite_00000_arg_sprite+D'14'
687
        MOVF bootup_00000_1_frame+D'13', W
688
        MOVWF drawsprite_00000_arg_sprite+D'13'
689
        MOVF bootup_00000_1_frame+D'12', W
690
        MOVWF drawsprite_00000_arg_sprite+D'12'
691
        MOVF bootup_00000_1_frame+D'11', W
692
        MOVWF drawsprite_00000_arg_sprite+D'11'
693
        MOVF bootup_00000_1_frame+D'10', W
694
        MOVWF drawsprite_00000_arg_sprite+D'10'
695
        MOVF bootup_00000_1_frame+D'9', W
696
        MOVWF drawsprite_00000_arg_sprite+D'9'
697
        MOVF bootup_00000_1_frame+D'8', W
698
        MOVWF drawsprite_00000_arg_sprite+D'8'
699
        MOVF bootup_00000_1_frame+D'7', W
700
        MOVWF drawsprite_00000_arg_sprite+D'7'
701
        MOVF bootup_00000_1_frame+D'6', W
702
        MOVWF drawsprite_00000_arg_sprite+D'6'
703
        MOVF bootup_00000_1_frame+D'5', W
704
        MOVWF drawsprite_00000_arg_sprite+D'5'
705
        MOVF bootup_00000_1_frame+D'4', W
706
        MOVWF drawsprite_00000_arg_sprite+D'4'
707
        MOVF bootup_00000_1_frame+D'3', W
708
        MOVWF drawsprite_00000_arg_sprite+D'3'
709
        MOVF bootup_00000_1_frame+D'2', W
710
        MOVWF drawsprite_00000_arg_sprite+D'2'
711
        MOVF bootup_00000_1_frame+D'1', W
712
        MOVWF drawsprite_00000_arg_sprite+D'1'
713
        MOVF bootup_00000_1_frame, W
714
        MOVWF drawsprite_00000_arg_sprite
715 27 zuofu
        CALL drawsprite_00000
716 31 zuofu
        MOVLW 0x12
717
        CPFSGT bootup_00000_1_i
718
        BRA     label268437220
719 27 zuofu
        MOVLW 0x64
720
        MOVWF delay_ms_00000_arg_del
721
        CALL delay_ms_00000
722 31 zuofu
        BRA     label268437226
723
label268437220
724 27 zuofu
        MOVLW 0x3C
725
        MOVWF delay_ms_00000_arg_del
726
        CALL delay_ms_00000
727 31 zuofu
label268437226
728 27 zuofu
        MOVLW 0x50
729 31 zuofu
        ADDWF bootup_00000_1_frame, F
730 27 zuofu
        MOVLW 0x00
731 31 zuofu
        ADDWFC bootup_00000_1_frame+D'1', F
732 27 zuofu
        MOVLW 0x00
733 31 zuofu
        ADDWFC bootup_00000_1_frame+D'2', F
734 27 zuofu
        MOVLW 0x00
735 31 zuofu
        ADDWFC bootup_00000_1_frame+D'3', F
736
        MOVF bootup_00000_1_frame+D'16', W
737
        MOVWF drawsprite_00000_arg_sprite+D'16'
738
        MOVF bootup_00000_1_frame+D'15', W
739
        MOVWF drawsprite_00000_arg_sprite+D'15'
740
        MOVF bootup_00000_1_frame+D'14', W
741
        MOVWF drawsprite_00000_arg_sprite+D'14'
742
        MOVF bootup_00000_1_frame+D'13', W
743
        MOVWF drawsprite_00000_arg_sprite+D'13'
744
        MOVF bootup_00000_1_frame+D'12', W
745
        MOVWF drawsprite_00000_arg_sprite+D'12'
746
        MOVF bootup_00000_1_frame+D'11', W
747
        MOVWF drawsprite_00000_arg_sprite+D'11'
748
        MOVF bootup_00000_1_frame+D'10', W
749
        MOVWF drawsprite_00000_arg_sprite+D'10'
750
        MOVF bootup_00000_1_frame+D'9', W
751
        MOVWF drawsprite_00000_arg_sprite+D'9'
752
        MOVF bootup_00000_1_frame+D'8', W
753
        MOVWF drawsprite_00000_arg_sprite+D'8'
754
        MOVF bootup_00000_1_frame+D'7', W
755
        MOVWF drawsprite_00000_arg_sprite+D'7'
756
        MOVF bootup_00000_1_frame+D'6', W
757
        MOVWF drawsprite_00000_arg_sprite+D'6'
758
        MOVF bootup_00000_1_frame+D'5', W
759
        MOVWF drawsprite_00000_arg_sprite+D'5'
760
        MOVF bootup_00000_1_frame+D'4', W
761
        MOVWF drawsprite_00000_arg_sprite+D'4'
762
        MOVF bootup_00000_1_frame+D'3', W
763
        MOVWF drawsprite_00000_arg_sprite+D'3'
764
        MOVF bootup_00000_1_frame+D'2', W
765
        MOVWF drawsprite_00000_arg_sprite+D'2'
766
        MOVF bootup_00000_1_frame+D'1', W
767
        MOVWF drawsprite_00000_arg_sprite+D'1'
768
        MOVF bootup_00000_1_frame, W
769
        MOVWF drawsprite_00000_arg_sprite
770 27 zuofu
        CALL drawsprite_00000
771 31 zuofu
        MOVLW 0x12
772
        CPFSGT bootup_00000_1_i
773
        BRA     label268437236
774
        MOVLW 0x64
775 27 zuofu
        MOVWF delay_ms_00000_arg_del
776
        CALL delay_ms_00000
777 31 zuofu
        BRA     label268437242
778
label268437236
779
        MOVLW 0x3C
780 27 zuofu
        MOVWF delay_ms_00000_arg_del
781
        CALL delay_ms_00000
782 31 zuofu
label268437242
783
        MOVLW 0xB0
784
        ADDWF bootup_00000_1_frame, F
785
        MOVLW 0x63
786
        ADDWFC bootup_00000_1_frame+D'1', F
787 27 zuofu
        MOVLW 0x00
788 31 zuofu
        ADDWFC bootup_00000_1_frame+D'2', F
789 27 zuofu
        MOVLW 0x00
790 31 zuofu
        ADDWFC bootup_00000_1_frame+D'3', F
791
        INCF bootup_00000_1_i, F
792
        BRA     label268437212
793
label268437213
794
        RETURN
795
; } bootup function end
796
 
797
        ORG 0x000004A8
798
main
799
; { main ; function begin
800
        MOVLW 0x07
801
        MOVWF gbl_adcon1
802
        CLRF gbl_trisa
803
        CLRF gbl_trisb
804 27 zuofu
        MOVLW 0x80
805 31 zuofu
        MOVWF gbl_trisc
806
        MOVWF gbl_trisd
807
        CLRF gbl_porta
808
        CLRF gbl_portb
809
        CLRF gbl_portc
810
        CLRF gbl_portc
811
        CALL bootup_00000
812
        CALL setupinput_00000
813
label268437264
814
        CALL getinput_00000
815
        MOVF CompTempVarRet0, W
816
        MOVWF main_1_temp
817
        MOVLW 0xF7
818
        ANDWF main_1_temp, W
819
        BTFSS STATUS,Z
820
        BSF gbl_portd,0
821
        MOVLW 0xFB
822
        ANDWF main_1_temp, W
823
        BTFSS STATUS,Z
824
        BCF gbl_portd,0
825
        BRA     label268437264
826 27 zuofu
; } main function end
827
 
828 31 zuofu
        ORG 0x000004E0
829 27 zuofu
_startup
830
        GOTO    main
831
        END

powered by: WebSVN 2.1.0

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