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 |
|
|
ORG 0x00000000
|
8 |
31 |
zuofu |
0000 EF70F002 GOTO _startup
|
9 |
27 |
zuofu |
ORG 0x00000004
|
10 |
|
|
0004 delay_ms_00000
|
11 |
|
|
; { delay_ms ; function begin
|
12 |
31 |
zuofu |
0004 5220 MOVF delay_ms_00000_arg_del, F
|
13 |
27 |
zuofu |
0006 A4D8 BTFSS STATUS,Z
|
14 |
|
|
0008 EF07F000 GOTO label4026531859
|
15 |
|
|
000C 0012 RETURN
|
16 |
|
|
000E label4026531859
|
17 |
|
|
000E 0EFF MOVLW 0xFF
|
18 |
|
|
0010 label4026531860
|
19 |
|
|
0010 0000 NOP
|
20 |
|
|
0012 0000 NOP
|
21 |
|
|
0014 0000 NOP
|
22 |
|
|
0016 0000 NOP
|
23 |
|
|
0018 0000 NOP
|
24 |
|
|
001A 0000 NOP
|
25 |
|
|
001C 0000 NOP
|
26 |
|
|
001E 0000 NOP
|
27 |
|
|
0020 0000 NOP
|
28 |
|
|
0022 0000 NOP
|
29 |
|
|
0024 0000 NOP
|
30 |
|
|
0026 0000 NOP
|
31 |
|
|
0028 0000 NOP
|
32 |
|
|
002A 0000 NOP
|
33 |
|
|
002C 0000 NOP
|
34 |
|
|
002E 0000 NOP
|
35 |
|
|
0030 0000 NOP
|
36 |
|
|
0032 0000 NOP
|
37 |
|
|
0034 0000 NOP
|
38 |
|
|
0036 0000 NOP
|
39 |
|
|
0038 0000 NOP
|
40 |
|
|
003A 0000 NOP
|
41 |
|
|
003C 0000 NOP
|
42 |
|
|
003E 0000 NOP
|
43 |
|
|
0040 0000 NOP
|
44 |
|
|
0042 0000 NOP
|
45 |
|
|
0044 0000 NOP
|
46 |
|
|
0046 0000 NOP
|
47 |
|
|
0048 0000 NOP
|
48 |
|
|
004A 0000 NOP
|
49 |
|
|
004C 0000 NOP
|
50 |
|
|
004E 0000 NOP
|
51 |
|
|
0050 0000 NOP
|
52 |
|
|
0052 0000 NOP
|
53 |
|
|
0054 0000 NOP
|
54 |
|
|
0056 0000 NOP
|
55 |
|
|
0058 0000 NOP
|
56 |
|
|
005A 0000 NOP
|
57 |
|
|
005C 0000 NOP
|
58 |
|
|
005E 0000 NOP
|
59 |
|
|
0060 0000 NOP
|
60 |
|
|
0062 0000 NOP
|
61 |
|
|
0064 0000 NOP
|
62 |
|
|
0066 0000 NOP
|
63 |
|
|
0068 0000 NOP
|
64 |
|
|
006A 0FFF ADDLW 0xFF
|
65 |
|
|
006C A4D8 BTFSS STATUS,Z
|
66 |
|
|
006E EF08F000 GOTO label4026531860
|
67 |
|
|
0072 0000 NOP
|
68 |
31 |
zuofu |
0074 2E20 DECFSZ delay_ms_00000_arg_del, F
|
69 |
27 |
zuofu |
0076 EF07F000 GOTO label4026531859
|
70 |
|
|
007A 0012 RETURN
|
71 |
|
|
; } delay_ms function end
|
72 |
|
|
|
73 |
|
|
ORG 0x0000007C
|
74 |
31 |
zuofu |
007C delay_us_00000
|
75 |
|
|
; { delay_us ; function begin
|
76 |
|
|
007C 5205 MOVF delay_us_00000_arg_del, F
|
77 |
|
|
007E A4D8 BTFSS STATUS,Z
|
78 |
|
|
0080 EF43F000 GOTO label4026531844
|
79 |
|
|
0084 0012 RETURN
|
80 |
|
|
0086 label4026531844
|
81 |
|
|
0086 0E02 MOVLW 0x02
|
82 |
|
|
0088 label4026531845
|
83 |
|
|
0088 0FFF ADDLW 0xFF
|
84 |
|
|
008A A4D8 BTFSS STATUS,Z
|
85 |
|
|
008C EF44F000 GOTO label4026531845
|
86 |
|
|
0090 2E05 DECFSZ delay_us_00000_arg_del, F
|
87 |
|
|
0092 EF43F000 GOTO label4026531844
|
88 |
|
|
0096 0012 RETURN
|
89 |
|
|
; } delay_us function end
|
90 |
27 |
zuofu |
|
91 |
31 |
zuofu |
ORG 0x00000098
|
92 |
|
|
0098 __mul_32_3_00006
|
93 |
27 |
zuofu |
; { __mul_32_32 ; function begin
|
94 |
31 |
zuofu |
0098 6A00 CLRF CompTempVarRet0
|
95 |
|
|
009A 6A01 CLRF CompTempVarRet0+D'1'
|
96 |
|
|
009C 6A02 CLRF CompTempVarRet0+D'2'
|
97 |
|
|
009E 6A03 CLRF CompTempVarRet0+D'3'
|
98 |
|
|
00A0 6A02 CLRF CompTempVarRet0+D'2'
|
99 |
|
|
00A2 6A03 CLRF CompTempVarRet0+D'3'
|
100 |
|
|
00A4 5035 MOVF __mul_32_3_00006_arg_a, W
|
101 |
|
|
00A6 0239 MULWF __mul_32_3_00006_arg_b
|
102 |
|
|
00A8 50F3 MOVF gbl_prodl, W
|
103 |
|
|
00AA 6E00 MOVWF CompTempVarRet0
|
104 |
|
|
00AC 50F4 MOVF gbl_prodh, W
|
105 |
|
|
00AE 6E01 MOVWF CompTempVarRet0+D'1'
|
106 |
|
|
00B0 5036 MOVF __mul_32_3_00006_arg_a+D'1', W
|
107 |
|
|
00B2 0239 MULWF __mul_32_3_00006_arg_b
|
108 |
|
|
00B4 50F3 MOVF gbl_prodl, W
|
109 |
|
|
00B6 2601 ADDWF CompTempVarRet0+D'1', F
|
110 |
|
|
00B8 50F4 MOVF gbl_prodh, W
|
111 |
|
|
00BA 2202 ADDWFC CompTempVarRet0+D'2', F
|
112 |
|
|
00BC B0D8 BTFSC gbl_status,0
|
113 |
|
|
00BE 2A03 INCF CompTempVarRet0+D'3', F
|
114 |
|
|
00C0 5037 MOVF __mul_32_3_00006_arg_a+D'2', W
|
115 |
|
|
00C2 0239 MULWF __mul_32_3_00006_arg_b
|
116 |
|
|
00C4 50F3 MOVF gbl_prodl, W
|
117 |
|
|
00C6 2602 ADDWF CompTempVarRet0+D'2', F
|
118 |
|
|
00C8 50F4 MOVF gbl_prodh, W
|
119 |
|
|
00CA 2203 ADDWFC CompTempVarRet0+D'3', F
|
120 |
|
|
00CC 5038 MOVF __mul_32_3_00006_arg_a+D'3', W
|
121 |
|
|
00CE 0239 MULWF __mul_32_3_00006_arg_b
|
122 |
|
|
00D0 50F3 MOVF gbl_prodl, W
|
123 |
|
|
00D2 2603 ADDWF CompTempVarRet0+D'3', F
|
124 |
|
|
00D4 5035 MOVF __mul_32_3_00006_arg_a, W
|
125 |
|
|
00D6 023A MULWF __mul_32_3_00006_arg_b+D'1'
|
126 |
|
|
00D8 50F3 MOVF gbl_prodl, W
|
127 |
|
|
00DA 2601 ADDWF CompTempVarRet0+D'1', F
|
128 |
|
|
00DC 50F4 MOVF gbl_prodh, W
|
129 |
|
|
00DE 2202 ADDWFC CompTempVarRet0+D'2', F
|
130 |
|
|
00E0 B0D8 BTFSC gbl_status,0
|
131 |
|
|
00E2 2A03 INCF CompTempVarRet0+D'3', F
|
132 |
|
|
00E4 5036 MOVF __mul_32_3_00006_arg_a+D'1', W
|
133 |
|
|
00E6 023A MULWF __mul_32_3_00006_arg_b+D'1'
|
134 |
|
|
00E8 50F3 MOVF gbl_prodl, W
|
135 |
|
|
00EA 2602 ADDWF CompTempVarRet0+D'2', F
|
136 |
|
|
00EC 50F4 MOVF gbl_prodh, W
|
137 |
|
|
00EE 2203 ADDWFC CompTempVarRet0+D'3', F
|
138 |
|
|
00F0 5037 MOVF __mul_32_3_00006_arg_a+D'2', W
|
139 |
|
|
00F2 023A MULWF __mul_32_3_00006_arg_b+D'1'
|
140 |
|
|
00F4 50F3 MOVF gbl_prodl, W
|
141 |
|
|
00F6 2603 ADDWF CompTempVarRet0+D'3', F
|
142 |
|
|
00F8 5035 MOVF __mul_32_3_00006_arg_a, W
|
143 |
|
|
00FA 023B MULWF __mul_32_3_00006_arg_b+D'2'
|
144 |
|
|
00FC 50F3 MOVF gbl_prodl, W
|
145 |
|
|
00FE 2602 ADDWF CompTempVarRet0+D'2', F
|
146 |
|
|
0100 50F4 MOVF gbl_prodh, W
|
147 |
|
|
0102 2203 ADDWFC CompTempVarRet0+D'3', F
|
148 |
|
|
0104 5036 MOVF __mul_32_3_00006_arg_a+D'1', W
|
149 |
|
|
0106 023B MULWF __mul_32_3_00006_arg_b+D'2'
|
150 |
|
|
0108 50F3 MOVF gbl_prodl, W
|
151 |
|
|
010A 2603 ADDWF CompTempVarRet0+D'3', F
|
152 |
|
|
010C 5035 MOVF __mul_32_3_00006_arg_a, W
|
153 |
|
|
010E 023C MULWF __mul_32_3_00006_arg_b+D'3'
|
154 |
|
|
0110 50F3 MOVF gbl_prodl, W
|
155 |
|
|
0112 2603 ADDWF CompTempVarRet0+D'3', F
|
156 |
|
|
0114 0012 RETURN
|
157 |
27 |
zuofu |
; } __mul_32_32 function end
|
158 |
|
|
|
159 |
31 |
zuofu |
ORG 0x00000116
|
160 |
|
|
0116 draw_00000
|
161 |
27 |
zuofu |
; { draw ; function begin
|
162 |
31 |
zuofu |
0116 0E02 MOVLW 0x02
|
163 |
|
|
0118 6E80 MOVWF gbl_porta
|
164 |
|
|
011A 6A80 CLRF gbl_porta
|
165 |
|
|
011C label268435830
|
166 |
|
|
011C AE83 BTFSS gbl_portd,7
|
167 |
|
|
011E D7FE BRA label268435830
|
168 |
|
|
0120 0012 RETURN
|
169 |
27 |
zuofu |
; } draw function end
|
170 |
|
|
|
171 |
31 |
zuofu |
ORG 0x00000122
|
172 |
|
|
0122 load_s_add_0000C
|
173 |
27 |
zuofu |
; { load_s_addr ; function begin
|
174 |
31 |
zuofu |
0122 0E02 MOVLW 0x02
|
175 |
|
|
0124 6E82 MOVWF gbl_portc
|
176 |
|
|
0126 503D MOVF load_s_add_0000C_arg_address, W
|
177 |
|
|
0128 0BFF ANDLW 0xFF
|
178 |
|
|
012A 6E81 MOVWF gbl_portb
|
179 |
|
|
012C 0E01 MOVLW 0x01
|
180 |
|
|
012E 6E80 MOVWF gbl_porta
|
181 |
|
|
0130 6A80 CLRF gbl_porta
|
182 |
|
|
0132 503E MOVF load_s_add_0000C_arg_address+D'1', W
|
183 |
|
|
0134 6E3D MOVWF load_s_add_0000C_arg_address
|
184 |
|
|
0136 503F MOVF load_s_add_0000C_arg_address+D'2', W
|
185 |
|
|
0138 6E3E MOVWF load_s_add_0000C_arg_address+D'1'
|
186 |
|
|
013A 5040 MOVF load_s_add_0000C_arg_address+D'3', W
|
187 |
|
|
013C 6E3F MOVWF load_s_add_0000C_arg_address+D'2'
|
188 |
|
|
013E 6A40 CLRF load_s_add_0000C_arg_address+D'3'
|
189 |
|
|
0140 0E01 MOVLW 0x01
|
190 |
|
|
0142 6E82 MOVWF gbl_portc
|
191 |
|
|
0144 503D MOVF load_s_add_0000C_arg_address, W
|
192 |
|
|
0146 0BFF ANDLW 0xFF
|
193 |
|
|
0148 6E81 MOVWF gbl_portb
|
194 |
27 |
zuofu |
014A 0E01 MOVLW 0x01
|
195 |
31 |
zuofu |
014C 6E80 MOVWF gbl_porta
|
196 |
|
|
014E 6A80 CLRF gbl_porta
|
197 |
|
|
0150 503E MOVF load_s_add_0000C_arg_address+D'1', W
|
198 |
|
|
0152 6E3D MOVWF load_s_add_0000C_arg_address
|
199 |
|
|
0154 503F MOVF load_s_add_0000C_arg_address+D'2', W
|
200 |
|
|
0156 6E3E MOVWF load_s_add_0000C_arg_address+D'1'
|
201 |
|
|
0158 5040 MOVF load_s_add_0000C_arg_address+D'3', W
|
202 |
|
|
015A 6E3F MOVWF load_s_add_0000C_arg_address+D'2'
|
203 |
|
|
015C 6A40 CLRF load_s_add_0000C_arg_address+D'3'
|
204 |
|
|
015E 6A82 CLRF gbl_portc
|
205 |
|
|
0160 503D MOVF load_s_add_0000C_arg_address, W
|
206 |
|
|
0162 0BFF ANDLW 0xFF
|
207 |
|
|
0164 6E81 MOVWF gbl_portb
|
208 |
|
|
0166 0E01 MOVLW 0x01
|
209 |
|
|
0168 6E80 MOVWF gbl_porta
|
210 |
|
|
016A 6A80 CLRF gbl_porta
|
211 |
|
|
016C 0012 RETURN
|
212 |
27 |
zuofu |
; } load_s_addr function end
|
213 |
|
|
|
214 |
31 |
zuofu |
ORG 0x0000016E
|
215 |
|
|
016E load_t_add_0000B
|
216 |
27 |
zuofu |
; { load_t_addr ; function begin
|
217 |
31 |
zuofu |
016E 0E05 MOVLW 0x05
|
218 |
|
|
0170 6E82 MOVWF gbl_portc
|
219 |
|
|
0172 503D MOVF load_t_add_0000B_arg_address, W
|
220 |
|
|
0174 0BFF ANDLW 0xFF
|
221 |
|
|
0176 6E81 MOVWF gbl_portb
|
222 |
|
|
0178 0E01 MOVLW 0x01
|
223 |
|
|
017A 6E80 MOVWF gbl_porta
|
224 |
|
|
017C 6A80 CLRF gbl_porta
|
225 |
|
|
017E 503E MOVF load_t_add_0000B_arg_address+D'1', W
|
226 |
|
|
0180 6E3D MOVWF load_t_add_0000B_arg_address
|
227 |
|
|
0182 503F MOVF load_t_add_0000B_arg_address+D'2', W
|
228 |
|
|
0184 6E3E MOVWF load_t_add_0000B_arg_address+D'1'
|
229 |
|
|
0186 5040 MOVF load_t_add_0000B_arg_address+D'3', W
|
230 |
|
|
0188 6E3F MOVWF load_t_add_0000B_arg_address+D'2'
|
231 |
|
|
018A 6A40 CLRF load_t_add_0000B_arg_address+D'3'
|
232 |
|
|
018C 0E04 MOVLW 0x04
|
233 |
|
|
018E 6E82 MOVWF gbl_portc
|
234 |
|
|
0190 503D MOVF load_t_add_0000B_arg_address, W
|
235 |
|
|
0192 0BFF ANDLW 0xFF
|
236 |
|
|
0194 6E81 MOVWF gbl_portb
|
237 |
|
|
0196 0E01 MOVLW 0x01
|
238 |
|
|
0198 6E80 MOVWF gbl_porta
|
239 |
|
|
019A 6A80 CLRF gbl_porta
|
240 |
|
|
019C 503E MOVF load_t_add_0000B_arg_address+D'1', W
|
241 |
|
|
019E 6E3D MOVWF load_t_add_0000B_arg_address
|
242 |
|
|
01A0 503F MOVF load_t_add_0000B_arg_address+D'2', W
|
243 |
|
|
01A2 6E3E MOVWF load_t_add_0000B_arg_address+D'1'
|
244 |
|
|
01A4 5040 MOVF load_t_add_0000B_arg_address+D'3', W
|
245 |
|
|
01A6 6E3F MOVWF load_t_add_0000B_arg_address+D'2'
|
246 |
|
|
01A8 6A40 CLRF load_t_add_0000B_arg_address+D'3'
|
247 |
|
|
01AA 0E03 MOVLW 0x03
|
248 |
|
|
01AC 6E82 MOVWF gbl_portc
|
249 |
|
|
01AE 503D MOVF load_t_add_0000B_arg_address, W
|
250 |
|
|
01B0 0BFF ANDLW 0xFF
|
251 |
|
|
01B2 6E81 MOVWF gbl_portb
|
252 |
|
|
01B4 0E01 MOVLW 0x01
|
253 |
|
|
01B6 6E80 MOVWF gbl_porta
|
254 |
|
|
01B8 6A80 CLRF gbl_porta
|
255 |
|
|
01BA 0012 RETURN
|
256 |
27 |
zuofu |
; } load_t_addr function end
|
257 |
|
|
|
258 |
31 |
zuofu |
ORG 0x000001BC
|
259 |
|
|
01BC load_s_lin_0000A
|
260 |
27 |
zuofu |
; { load_s_lines ; function begin
|
261 |
31 |
zuofu |
01BC 0E07 MOVLW 0x07
|
262 |
|
|
01BE 6E82 MOVWF gbl_portc
|
263 |
|
|
01C0 503D MOVF load_s_lin_0000A_arg_lines, W
|
264 |
|
|
01C2 0BFF ANDLW 0xFF
|
265 |
|
|
01C4 6E81 MOVWF gbl_portb
|
266 |
|
|
01C6 0E01 MOVLW 0x01
|
267 |
|
|
01C8 6E80 MOVWF gbl_porta
|
268 |
|
|
01CA 6A80 CLRF gbl_porta
|
269 |
|
|
01CC 503E MOVF load_s_lin_0000A_arg_lines+D'1', W
|
270 |
|
|
01CE 6E3D MOVWF load_s_lin_0000A_arg_lines
|
271 |
|
|
01D0 6A3E CLRF load_s_lin_0000A_arg_lines+D'1'
|
272 |
|
|
01D2 0E06 MOVLW 0x06
|
273 |
|
|
01D4 6E82 MOVWF gbl_portc
|
274 |
|
|
01D6 503D MOVF load_s_lin_0000A_arg_lines, W
|
275 |
|
|
01D8 0BFF ANDLW 0xFF
|
276 |
|
|
01DA 6E81 MOVWF gbl_portb
|
277 |
|
|
01DC 0E01 MOVLW 0x01
|
278 |
|
|
01DE 6E80 MOVWF gbl_porta
|
279 |
|
|
01E0 6A80 CLRF gbl_porta
|
280 |
|
|
01E2 0012 RETURN
|
281 |
27 |
zuofu |
; } load_s_lines function end
|
282 |
|
|
|
283 |
31 |
zuofu |
ORG 0x000001E4
|
284 |
|
|
01E4 load_l_siz_00009
|
285 |
27 |
zuofu |
; { load_l_size ; function begin
|
286 |
31 |
zuofu |
01E4 0E09 MOVLW 0x09
|
287 |
|
|
01E6 6E82 MOVWF gbl_portc
|
288 |
|
|
01E8 503D MOVF load_l_siz_00009_arg_size, W
|
289 |
|
|
01EA 0BFF ANDLW 0xFF
|
290 |
|
|
01EC 6E81 MOVWF gbl_portb
|
291 |
|
|
01EE 0E01 MOVLW 0x01
|
292 |
|
|
01F0 6E80 MOVWF gbl_porta
|
293 |
|
|
01F2 6A80 CLRF gbl_porta
|
294 |
|
|
01F4 503E MOVF load_l_siz_00009_arg_size+D'1', W
|
295 |
|
|
01F6 6E3D MOVWF load_l_siz_00009_arg_size
|
296 |
|
|
01F8 6A3E CLRF load_l_siz_00009_arg_size+D'1'
|
297 |
|
|
01FA 0E08 MOVLW 0x08
|
298 |
|
|
01FC 6E82 MOVWF gbl_portc
|
299 |
|
|
01FE 503D MOVF load_l_siz_00009_arg_size, W
|
300 |
|
|
0200 0B0F ANDLW 0x0F
|
301 |
|
|
0202 6E81 MOVWF gbl_portb
|
302 |
|
|
0204 0E01 MOVLW 0x01
|
303 |
|
|
0206 6E80 MOVWF gbl_porta
|
304 |
|
|
0208 6A80 CLRF gbl_porta
|
305 |
|
|
020A 0012 RETURN
|
306 |
27 |
zuofu |
; } load_l_size function end
|
307 |
|
|
|
308 |
31 |
zuofu |
ORG 0x0000020C
|
309 |
|
|
020C load_alpha_00008
|
310 |
27 |
zuofu |
; { load_alphaOp ; function begin
|
311 |
31 |
zuofu |
020C 0E0A MOVLW 0x0A
|
312 |
|
|
020E 6E82 MOVWF gbl_portc
|
313 |
|
|
0210 A03D BTFSS load_alpha_00008_arg_alphaOp,0
|
314 |
|
|
0212 D003 BRA label268435770
|
315 |
|
|
0214 0E01 MOVLW 0x01
|
316 |
|
|
0216 6E81 MOVWF gbl_portb
|
317 |
|
|
0218 D001 BRA label268435773
|
318 |
|
|
021A label268435770
|
319 |
|
|
021A 6A81 CLRF gbl_portb
|
320 |
|
|
021C label268435773
|
321 |
|
|
021C 0E01 MOVLW 0x01
|
322 |
|
|
021E 6E80 MOVWF gbl_porta
|
323 |
|
|
0220 6A80 CLRF gbl_porta
|
324 |
|
|
0222 0012 RETURN
|
325 |
27 |
zuofu |
; } load_alphaOp function end
|
326 |
|
|
|
327 |
31 |
zuofu |
ORG 0x00000224
|
328 |
|
|
0224 drawsprite_00000
|
329 |
27 |
zuofu |
; { drawsprite ; function begin
|
330 |
31 |
zuofu |
0224 502C MOVF drawsprite_00000_arg_sprite+D'12', W
|
331 |
|
|
0226 6E35 MOVWF __mul_32_3_00006_arg_a
|
332 |
|
|
0228 502D MOVF drawsprite_00000_arg_sprite+D'13', W
|
333 |
|
|
022A 6E36 MOVWF __mul_32_3_00006_arg_a+D'1'
|
334 |
|
|
022C 502E MOVF drawsprite_00000_arg_sprite+D'14', W
|
335 |
|
|
022E 6E37 MOVWF __mul_32_3_00006_arg_a+D'2'
|
336 |
|
|
0230 502F MOVF drawsprite_00000_arg_sprite+D'15', W
|
337 |
|
|
0232 6E38 MOVWF __mul_32_3_00006_arg_a+D'3'
|
338 |
|
|
0234 0EA0 MOVLW 0xA0
|
339 |
|
|
0236 6E39 MOVWF __mul_32_3_00006_arg_b
|
340 |
|
|
0238 6A3A CLRF __mul_32_3_00006_arg_b+D'1'
|
341 |
|
|
023A 6A3B CLRF __mul_32_3_00006_arg_b+D'2'
|
342 |
|
|
023C 6A3C CLRF __mul_32_3_00006_arg_b+D'3'
|
343 |
|
|
023E EC4CF000 CALL __mul_32_3_00006
|
344 |
|
|
0242 5000 MOVF CompTempVarRet0, W
|
345 |
|
|
0244 6E31 MOVWF drawsprite_00000_1_destina_0000D
|
346 |
|
|
0246 5001 MOVF CompTempVarRet0+D'1', W
|
347 |
|
|
0248 6E32 MOVWF drawsprite_00000_1_destina_0000D+D'1'
|
348 |
|
|
024A 5002 MOVF CompTempVarRet0+D'2', W
|
349 |
|
|
024C 6E33 MOVWF drawsprite_00000_1_destina_0000D+D'2'
|
350 |
|
|
024E 5003 MOVF CompTempVarRet0+D'3', W
|
351 |
|
|
0250 6E34 MOVWF drawsprite_00000_1_destina_0000D+D'3'
|
352 |
|
|
0252 5028 MOVF drawsprite_00000_arg_sprite+D'8', W
|
353 |
|
|
0254 2631 ADDWF drawsprite_00000_1_destina_0000D, F
|
354 |
|
|
0256 5029 MOVF drawsprite_00000_arg_sprite+D'9', W
|
355 |
|
|
0258 2232 ADDWFC drawsprite_00000_1_destina_0000D+D'1', F
|
356 |
|
|
025A 502A MOVF drawsprite_00000_arg_sprite+D'10', W
|
357 |
|
|
025C 2233 ADDWFC drawsprite_00000_1_destina_0000D+D'2', F
|
358 |
|
|
025E 502B MOVF drawsprite_00000_arg_sprite+D'11', W
|
359 |
|
|
0260 2234 ADDWFC drawsprite_00000_1_destina_0000D+D'3', F
|
360 |
|
|
0262 5031 MOVF drawsprite_00000_1_destina_0000D, W
|
361 |
|
|
0264 6E3D MOVWF load_t_add_0000B_arg_address
|
362 |
|
|
0266 5032 MOVF drawsprite_00000_1_destina_0000D+D'1', W
|
363 |
|
|
0268 6E3E MOVWF load_t_add_0000B_arg_address+D'1'
|
364 |
|
|
026A 5033 MOVF drawsprite_00000_1_destina_0000D+D'2', W
|
365 |
|
|
026C 6E3F MOVWF load_t_add_0000B_arg_address+D'2'
|
366 |
|
|
026E 5034 MOVF drawsprite_00000_1_destina_0000D+D'3', W
|
367 |
|
|
0270 6E40 MOVWF load_t_add_0000B_arg_address+D'3'
|
368 |
|
|
0272 ECB7F000 CALL load_t_add_0000B
|
369 |
|
|
0276 5020 MOVF drawsprite_00000_arg_sprite, W
|
370 |
|
|
0278 6E3D MOVWF load_s_add_0000C_arg_address
|
371 |
|
|
027A 5021 MOVF drawsprite_00000_arg_sprite+D'1', W
|
372 |
|
|
027C 6E3E MOVWF load_s_add_0000C_arg_address+D'1'
|
373 |
|
|
027E 5022 MOVF drawsprite_00000_arg_sprite+D'2', W
|
374 |
|
|
0280 6E3F MOVWF load_s_add_0000C_arg_address+D'2'
|
375 |
|
|
0282 5023 MOVF drawsprite_00000_arg_sprite+D'3', W
|
376 |
|
|
0284 6E40 MOVWF load_s_add_0000C_arg_address+D'3'
|
377 |
|
|
0286 EC91F000 CALL load_s_add_0000C
|
378 |
|
|
028A 5026 MOVF drawsprite_00000_arg_sprite+D'6', W
|
379 |
|
|
028C 6E3D MOVWF load_s_lin_0000A_arg_lines
|
380 |
|
|
028E 5027 MOVF drawsprite_00000_arg_sprite+D'7', W
|
381 |
|
|
0290 6E3E MOVWF load_s_lin_0000A_arg_lines+D'1'
|
382 |
|
|
0292 ECDEF000 CALL load_s_lin_0000A
|
383 |
|
|
0296 5024 MOVF drawsprite_00000_arg_sprite+D'4', W
|
384 |
|
|
0298 6E3D MOVWF load_l_siz_00009_arg_size
|
385 |
|
|
029A 5025 MOVF drawsprite_00000_arg_sprite+D'5', W
|
386 |
|
|
029C 6E3E MOVWF load_l_siz_00009_arg_size+D'1'
|
387 |
|
|
029E ECF2F000 CALL load_l_siz_00009
|
388 |
|
|
02A2 5230 MOVF drawsprite_00000_arg_sprite+D'16', F
|
389 |
|
|
02A4 E004 BZ label268435755
|
390 |
|
|
02A6 803D BSF load_alpha_00008_arg_alphaOp,0
|
391 |
|
|
02A8 EC06F001 CALL load_alpha_00008
|
392 |
|
|
02AC D003 BRA label268435761
|
393 |
|
|
02AE label268435755
|
394 |
|
|
02AE 903D BCF load_alpha_00008_arg_alphaOp,0
|
395 |
|
|
02B0 EC06F001 CALL load_alpha_00008
|
396 |
|
|
02B4 label268435761
|
397 |
|
|
02B4 EC8BF000 CALL draw_00000
|
398 |
|
|
02B8 0012 RETURN
|
399 |
27 |
zuofu |
; } drawsprite function end
|
400 |
|
|
|
401 |
31 |
zuofu |
ORG 0x000002BA
|
402 |
|
|
02BA drawtoback_00007
|
403 |
27 |
zuofu |
; { drawtobackground ; function begin
|
404 |
31 |
zuofu |
02BA 6A3D CLRF load_t_add_0000B_arg_address
|
405 |
|
|
02BC 6A3E CLRF load_t_add_0000B_arg_address+D'1'
|
406 |
|
|
02BE 6A3F CLRF load_t_add_0000B_arg_address+D'2'
|
407 |
|
|
02C0 6A40 CLRF load_t_add_0000B_arg_address+D'3'
|
408 |
|
|
02C2 ECB7F000 CALL load_t_add_0000B
|
409 |
|
|
02C6 5020 MOVF drawtoback_00007_arg_source, W
|
410 |
|
|
02C8 6E3D MOVWF load_s_add_0000C_arg_address
|
411 |
|
|
02CA 5021 MOVF drawtoback_00007_arg_source+D'1', W
|
412 |
|
|
02CC 6E3E MOVWF load_s_add_0000C_arg_address+D'1'
|
413 |
|
|
02CE 5022 MOVF drawtoback_00007_arg_source+D'2', W
|
414 |
|
|
02D0 6E3F MOVWF load_s_add_0000C_arg_address+D'2'
|
415 |
|
|
02D2 5023 MOVF drawtoback_00007_arg_source+D'3', W
|
416 |
|
|
02D4 6E40 MOVWF load_s_add_0000C_arg_address+D'3'
|
417 |
|
|
02D6 EC91F000 CALL load_s_add_0000C
|
418 |
|
|
02DA 5026 MOVF drawtoback_00007_arg_source+D'6', W
|
419 |
|
|
02DC 6E3D MOVWF load_s_lin_0000A_arg_lines
|
420 |
|
|
02DE 5027 MOVF drawtoback_00007_arg_source+D'7', W
|
421 |
|
|
02E0 6E3E MOVWF load_s_lin_0000A_arg_lines+D'1'
|
422 |
|
|
02E2 ECDEF000 CALL load_s_lin_0000A
|
423 |
|
|
02E6 5024 MOVF drawtoback_00007_arg_source+D'4', W
|
424 |
|
|
02E8 6E3D MOVWF load_l_siz_00009_arg_size
|
425 |
|
|
02EA 5025 MOVF drawtoback_00007_arg_source+D'5', W
|
426 |
|
|
02EC 6E3E MOVWF load_l_siz_00009_arg_size+D'1'
|
427 |
|
|
02EE ECF2F000 CALL load_l_siz_00009
|
428 |
|
|
02F2 903D BCF load_alpha_00008_arg_alphaOp,0
|
429 |
|
|
02F4 EC06F001 CALL load_alpha_00008
|
430 |
|
|
02F8 EC8BF000 CALL draw_00000
|
431 |
|
|
02FC 0012 RETURN
|
432 |
27 |
zuofu |
; } drawtobackground function end
|
433 |
|
|
|
434 |
31 |
zuofu |
ORG 0x000002FE
|
435 |
|
|
02FE setupinput_00000
|
436 |
|
|
; { setupinput ; function begin
|
437 |
|
|
02FE 9C94 BCF gbl_trisc,6
|
438 |
|
|
0300 8E94 BSF gbl_trisc,7
|
439 |
|
|
0302 8A94 BSF gbl_trisc,5
|
440 |
|
|
0304 68AF SETF gbl_spbrg
|
441 |
|
|
0306 88AC BSF gbl_txsta,4
|
442 |
|
|
0308 8EAB BSF gbl_rcsta,7
|
443 |
|
|
030A 8EAC BSF gbl_txsta,7
|
444 |
|
|
030C 9AAB BCF gbl_rcsta,5
|
445 |
|
|
030E 98AB BCF gbl_rcsta,4
|
446 |
|
|
0310 9A83 BCF gbl_portd,5
|
447 |
|
|
0312 0012 RETURN
|
448 |
|
|
; } setupinput function end
|
449 |
|
|
|
450 |
|
|
ORG 0x00000314
|
451 |
|
|
0314 getinput_00000
|
452 |
|
|
; { getinput ; function begin
|
453 |
|
|
0314 8A83 BSF gbl_portd,5
|
454 |
|
|
0316 0E0C MOVLW 0x0C
|
455 |
|
|
0318 6E05 MOVWF delay_us_00000_arg_del
|
456 |
|
|
031A EC3EF000 CALL delay_us_00000
|
457 |
|
|
031E 9A83 BCF gbl_portd,5
|
458 |
|
|
0320 0E06 MOVLW 0x06
|
459 |
|
|
0322 6E05 MOVWF delay_us_00000_arg_del
|
460 |
|
|
0324 EC3EF000 CALL delay_us_00000
|
461 |
|
|
0328 8AAB BSF gbl_rcsta,5
|
462 |
|
|
032A AA9E BTFSS gbl_pir1,5
|
463 |
|
|
032C D002 BRA label268437510
|
464 |
|
|
032E 50AE MOVF gbl_rcreg, W
|
465 |
|
|
0330 6E00 MOVWF CompTempVarRet0
|
466 |
|
|
0332 label268437510
|
467 |
|
|
0332 0012 RETURN
|
468 |
|
|
; } getinput function end
|
469 |
|
|
|
470 |
|
|
ORG 0x00000334
|
471 |
|
|
0334 bootup_00000
|
472 |
|
|
; { bootup ; function begin
|
473 |
|
|
0334 6A05 CLRF bootup_00000_1_i
|
474 |
|
|
0336 6A06 CLRF bootup_00000_1_j
|
475 |
|
|
0338 6A07 CLRF bootup_00000_1_black
|
476 |
|
|
033A 0EC2 MOVLW 0xC2
|
477 |
|
|
033C 6E08 MOVWF bootup_00000_1_black+D'1'
|
478 |
|
|
033E 0E01 MOVLW 0x01
|
479 |
|
|
0340 6E09 MOVWF bootup_00000_1_black+D'2'
|
480 |
|
|
0342 6A0A CLRF bootup_00000_1_black+D'3'
|
481 |
|
|
0344 0EF0 MOVLW 0xF0
|
482 |
|
|
0346 6E0D MOVWF bootup_00000_1_black+D'6'
|
483 |
|
|
0348 6A0E CLRF bootup_00000_1_black+D'7'
|
484 |
|
|
034A 0EA0 MOVLW 0xA0
|
485 |
|
|
034C 6E0B MOVWF bootup_00000_1_black+D'4'
|
486 |
|
|
034E 6A0C CLRF bootup_00000_1_black+D'5'
|
487 |
|
|
0350 6A0F CLRF bootup_00000_1_frame
|
488 |
|
|
0352 0E68 MOVLW 0x68
|
489 |
|
|
0354 6E10 MOVWF bootup_00000_1_frame+D'1'
|
490 |
|
|
0356 0E37 MOVLW 0x37
|
491 |
|
|
0358 6E11 MOVWF bootup_00000_1_frame+D'2'
|
492 |
|
|
035A 6A12 CLRF bootup_00000_1_frame+D'3'
|
493 |
|
|
035C 0EA0 MOVLW 0xA0
|
494 |
|
|
035E 6E15 MOVWF bootup_00000_1_frame+D'6'
|
495 |
|
|
0360 6A16 CLRF bootup_00000_1_frame+D'7'
|
496 |
|
|
0362 0E4F MOVLW 0x4F
|
497 |
|
|
0364 6E13 MOVWF bootup_00000_1_frame+D'4'
|
498 |
|
|
0366 6A14 CLRF bootup_00000_1_frame+D'5'
|
499 |
|
|
0368 6A17 CLRF bootup_00000_1_frame+D'8'
|
500 |
|
|
036A 6A18 CLRF bootup_00000_1_frame+D'9'
|
501 |
|
|
036C 6A19 CLRF bootup_00000_1_frame+D'10'
|
502 |
|
|
036E 6A1A CLRF bootup_00000_1_frame+D'11'
|
503 |
|
|
0370 6A1B CLRF bootup_00000_1_frame+D'12'
|
504 |
|
|
0372 6A1C CLRF bootup_00000_1_frame+D'13'
|
505 |
|
|
0374 6A1D CLRF bootup_00000_1_frame+D'14'
|
506 |
|
|
0376 6A1E CLRF bootup_00000_1_frame+D'15'
|
507 |
|
|
0378 6A1F CLRF bootup_00000_1_frame+D'16'
|
508 |
|
|
037A 0E28 MOVLW 0x28
|
509 |
|
|
037C 6E17 MOVWF bootup_00000_1_frame+D'8'
|
510 |
|
|
037E 6A18 CLRF bootup_00000_1_frame+D'9'
|
511 |
|
|
0380 6A19 CLRF bootup_00000_1_frame+D'10'
|
512 |
|
|
0382 6A1A CLRF bootup_00000_1_frame+D'11'
|
513 |
|
|
0384 0E28 MOVLW 0x28
|
514 |
|
|
0386 6E1B MOVWF bootup_00000_1_frame+D'12'
|
515 |
|
|
0388 6A1C CLRF bootup_00000_1_frame+D'13'
|
516 |
|
|
038A 6A1D CLRF bootup_00000_1_frame+D'14'
|
517 |
|
|
038C 6A1E CLRF bootup_00000_1_frame+D'15'
|
518 |
|
|
038E 500E MOVF bootup_00000_1_black+D'7', W
|
519 |
|
|
0390 6E27 MOVWF drawtoback_00007_arg_source+D'7'
|
520 |
|
|
0392 500D MOVF bootup_00000_1_black+D'6', W
|
521 |
|
|
0394 6E26 MOVWF drawtoback_00007_arg_source+D'6'
|
522 |
|
|
0396 500C MOVF bootup_00000_1_black+D'5', W
|
523 |
|
|
0398 6E25 MOVWF drawtoback_00007_arg_source+D'5'
|
524 |
|
|
039A 500B MOVF bootup_00000_1_black+D'4', W
|
525 |
|
|
039C 6E24 MOVWF drawtoback_00007_arg_source+D'4'
|
526 |
|
|
039E 500A MOVF bootup_00000_1_black+D'3', W
|
527 |
|
|
03A0 6E23 MOVWF drawtoback_00007_arg_source+D'3'
|
528 |
|
|
03A2 5009 MOVF bootup_00000_1_black+D'2', W
|
529 |
|
|
03A4 6E22 MOVWF drawtoback_00007_arg_source+D'2'
|
530 |
|
|
03A6 5008 MOVF bootup_00000_1_black+D'1', W
|
531 |
|
|
03A8 6E21 MOVWF drawtoback_00007_arg_source+D'1'
|
532 |
|
|
03AA 5007 MOVF bootup_00000_1_black, W
|
533 |
|
|
03AC 6E20 MOVWF drawtoback_00007_arg_source
|
534 |
|
|
03AE EC5DF001 CALL drawtoback_00007
|
535 |
|
|
03B2 0EC8 MOVLW 0xC8
|
536 |
|
|
03B4 6E20 MOVWF delay_ms_00000_arg_del
|
537 |
|
|
03B6 EC02F000 CALL delay_ms_00000
|
538 |
|
|
03BA 6A05 CLRF bootup_00000_1_i
|
539 |
|
|
03BC label268437212
|
540 |
|
|
03BC 0E15 MOVLW 0x15
|
541 |
|
|
03BE 6005 CPFSLT bootup_00000_1_i
|
542 |
|
|
03C0 D072 BRA label268437213
|
543 |
|
|
03C2 501F MOVF bootup_00000_1_frame+D'16', W
|
544 |
|
|
03C4 6E30 MOVWF drawsprite_00000_arg_sprite+D'16'
|
545 |
|
|
03C6 501E MOVF bootup_00000_1_frame+D'15', W
|
546 |
|
|
03C8 6E2F MOVWF drawsprite_00000_arg_sprite+D'15'
|
547 |
|
|
03CA 501D MOVF bootup_00000_1_frame+D'14', W
|
548 |
|
|
03CC 6E2E MOVWF drawsprite_00000_arg_sprite+D'14'
|
549 |
|
|
03CE 501C MOVF bootup_00000_1_frame+D'13', W
|
550 |
|
|
03D0 6E2D MOVWF drawsprite_00000_arg_sprite+D'13'
|
551 |
|
|
03D2 501B MOVF bootup_00000_1_frame+D'12', W
|
552 |
|
|
03D4 6E2C MOVWF drawsprite_00000_arg_sprite+D'12'
|
553 |
|
|
03D6 501A MOVF bootup_00000_1_frame+D'11', W
|
554 |
|
|
03D8 6E2B MOVWF drawsprite_00000_arg_sprite+D'11'
|
555 |
|
|
03DA 5019 MOVF bootup_00000_1_frame+D'10', W
|
556 |
|
|
03DC 6E2A MOVWF drawsprite_00000_arg_sprite+D'10'
|
557 |
|
|
03DE 5018 MOVF bootup_00000_1_frame+D'9', W
|
558 |
|
|
03E0 6E29 MOVWF drawsprite_00000_arg_sprite+D'9'
|
559 |
|
|
03E2 5017 MOVF bootup_00000_1_frame+D'8', W
|
560 |
|
|
03E4 6E28 MOVWF drawsprite_00000_arg_sprite+D'8'
|
561 |
|
|
03E6 5016 MOVF bootup_00000_1_frame+D'7', W
|
562 |
|
|
03E8 6E27 MOVWF drawsprite_00000_arg_sprite+D'7'
|
563 |
|
|
03EA 5015 MOVF bootup_00000_1_frame+D'6', W
|
564 |
|
|
03EC 6E26 MOVWF drawsprite_00000_arg_sprite+D'6'
|
565 |
|
|
03EE 5014 MOVF bootup_00000_1_frame+D'5', W
|
566 |
|
|
03F0 6E25 MOVWF drawsprite_00000_arg_sprite+D'5'
|
567 |
|
|
03F2 5013 MOVF bootup_00000_1_frame+D'4', W
|
568 |
|
|
03F4 6E24 MOVWF drawsprite_00000_arg_sprite+D'4'
|
569 |
|
|
03F6 5012 MOVF bootup_00000_1_frame+D'3', W
|
570 |
|
|
03F8 6E23 MOVWF drawsprite_00000_arg_sprite+D'3'
|
571 |
|
|
03FA 5011 MOVF bootup_00000_1_frame+D'2', W
|
572 |
|
|
03FC 6E22 MOVWF drawsprite_00000_arg_sprite+D'2'
|
573 |
|
|
03FE 5010 MOVF bootup_00000_1_frame+D'1', W
|
574 |
|
|
0400 6E21 MOVWF drawsprite_00000_arg_sprite+D'1'
|
575 |
|
|
0402 500F MOVF bootup_00000_1_frame, W
|
576 |
|
|
0404 6E20 MOVWF drawsprite_00000_arg_sprite
|
577 |
|
|
0406 EC12F001 CALL drawsprite_00000
|
578 |
|
|
040A 0E12 MOVLW 0x12
|
579 |
|
|
040C 6405 CPFSGT bootup_00000_1_i
|
580 |
|
|
040E D005 BRA label268437220
|
581 |
|
|
0410 0E64 MOVLW 0x64
|
582 |
|
|
0412 6E20 MOVWF delay_ms_00000_arg_del
|
583 |
|
|
0414 EC02F000 CALL delay_ms_00000
|
584 |
|
|
0418 D004 BRA label268437226
|
585 |
|
|
041A label268437220
|
586 |
|
|
041A 0E3C MOVLW 0x3C
|
587 |
|
|
041C 6E20 MOVWF delay_ms_00000_arg_del
|
588 |
|
|
041E EC02F000 CALL delay_ms_00000
|
589 |
|
|
0422 label268437226
|
590 |
|
|
0422 0E50 MOVLW 0x50
|
591 |
|
|
0424 260F ADDWF bootup_00000_1_frame, F
|
592 |
|
|
0426 0E00 MOVLW 0x00
|
593 |
|
|
0428 2210 ADDWFC bootup_00000_1_frame+D'1', F
|
594 |
|
|
042A 0E00 MOVLW 0x00
|
595 |
|
|
042C 2211 ADDWFC bootup_00000_1_frame+D'2', F
|
596 |
|
|
042E 0E00 MOVLW 0x00
|
597 |
|
|
0430 2212 ADDWFC bootup_00000_1_frame+D'3', F
|
598 |
|
|
0432 501F MOVF bootup_00000_1_frame+D'16', W
|
599 |
|
|
0434 6E30 MOVWF drawsprite_00000_arg_sprite+D'16'
|
600 |
|
|
0436 501E MOVF bootup_00000_1_frame+D'15', W
|
601 |
|
|
0438 6E2F MOVWF drawsprite_00000_arg_sprite+D'15'
|
602 |
|
|
043A 501D MOVF bootup_00000_1_frame+D'14', W
|
603 |
|
|
043C 6E2E MOVWF drawsprite_00000_arg_sprite+D'14'
|
604 |
|
|
043E 501C MOVF bootup_00000_1_frame+D'13', W
|
605 |
|
|
0440 6E2D MOVWF drawsprite_00000_arg_sprite+D'13'
|
606 |
|
|
0442 501B MOVF bootup_00000_1_frame+D'12', W
|
607 |
|
|
0444 6E2C MOVWF drawsprite_00000_arg_sprite+D'12'
|
608 |
|
|
0446 501A MOVF bootup_00000_1_frame+D'11', W
|
609 |
|
|
0448 6E2B MOVWF drawsprite_00000_arg_sprite+D'11'
|
610 |
|
|
044A 5019 MOVF bootup_00000_1_frame+D'10', W
|
611 |
|
|
044C 6E2A MOVWF drawsprite_00000_arg_sprite+D'10'
|
612 |
|
|
044E 5018 MOVF bootup_00000_1_frame+D'9', W
|
613 |
|
|
0450 6E29 MOVWF drawsprite_00000_arg_sprite+D'9'
|
614 |
|
|
0452 5017 MOVF bootup_00000_1_frame+D'8', W
|
615 |
|
|
0454 6E28 MOVWF drawsprite_00000_arg_sprite+D'8'
|
616 |
|
|
0456 5016 MOVF bootup_00000_1_frame+D'7', W
|
617 |
|
|
0458 6E27 MOVWF drawsprite_00000_arg_sprite+D'7'
|
618 |
|
|
045A 5015 MOVF bootup_00000_1_frame+D'6', W
|
619 |
|
|
045C 6E26 MOVWF drawsprite_00000_arg_sprite+D'6'
|
620 |
|
|
045E 5014 MOVF bootup_00000_1_frame+D'5', W
|
621 |
|
|
0460 6E25 MOVWF drawsprite_00000_arg_sprite+D'5'
|
622 |
|
|
0462 5013 MOVF bootup_00000_1_frame+D'4', W
|
623 |
|
|
0464 6E24 MOVWF drawsprite_00000_arg_sprite+D'4'
|
624 |
|
|
0466 5012 MOVF bootup_00000_1_frame+D'3', W
|
625 |
|
|
0468 6E23 MOVWF drawsprite_00000_arg_sprite+D'3'
|
626 |
|
|
046A 5011 MOVF bootup_00000_1_frame+D'2', W
|
627 |
|
|
046C 6E22 MOVWF drawsprite_00000_arg_sprite+D'2'
|
628 |
|
|
046E 5010 MOVF bootup_00000_1_frame+D'1', W
|
629 |
|
|
0470 6E21 MOVWF drawsprite_00000_arg_sprite+D'1'
|
630 |
|
|
0472 500F MOVF bootup_00000_1_frame, W
|
631 |
|
|
0474 6E20 MOVWF drawsprite_00000_arg_sprite
|
632 |
|
|
0476 EC12F001 CALL drawsprite_00000
|
633 |
|
|
047A 0E12 MOVLW 0x12
|
634 |
|
|
047C 6405 CPFSGT bootup_00000_1_i
|
635 |
|
|
047E D005 BRA label268437236
|
636 |
|
|
0480 0E64 MOVLW 0x64
|
637 |
|
|
0482 6E20 MOVWF delay_ms_00000_arg_del
|
638 |
|
|
0484 EC02F000 CALL delay_ms_00000
|
639 |
|
|
0488 D004 BRA label268437242
|
640 |
|
|
048A label268437236
|
641 |
|
|
048A 0E3C MOVLW 0x3C
|
642 |
|
|
048C 6E20 MOVWF delay_ms_00000_arg_del
|
643 |
|
|
048E EC02F000 CALL delay_ms_00000
|
644 |
|
|
0492 label268437242
|
645 |
|
|
0492 0EB0 MOVLW 0xB0
|
646 |
|
|
0494 260F ADDWF bootup_00000_1_frame, F
|
647 |
|
|
0496 0E63 MOVLW 0x63
|
648 |
|
|
0498 2210 ADDWFC bootup_00000_1_frame+D'1', F
|
649 |
|
|
049A 0E00 MOVLW 0x00
|
650 |
|
|
049C 2211 ADDWFC bootup_00000_1_frame+D'2', F
|
651 |
|
|
049E 0E00 MOVLW 0x00
|
652 |
|
|
04A0 2212 ADDWFC bootup_00000_1_frame+D'3', F
|
653 |
|
|
04A2 2A05 INCF bootup_00000_1_i, F
|
654 |
|
|
04A4 D78B BRA label268437212
|
655 |
|
|
04A6 label268437213
|
656 |
|
|
04A6 0012 RETURN
|
657 |
|
|
; } bootup function end
|
658 |
|
|
|
659 |
|
|
ORG 0x000004A8
|
660 |
|
|
04A8 main
|
661 |
27 |
zuofu |
; { main ; function begin
|
662 |
31 |
zuofu |
04A8 0E07 MOVLW 0x07
|
663 |
|
|
04AA 6EC1 MOVWF gbl_adcon1
|
664 |
|
|
04AC 6A92 CLRF gbl_trisa
|
665 |
|
|
04AE 6A93 CLRF gbl_trisb
|
666 |
|
|
04B0 0E80 MOVLW 0x80
|
667 |
|
|
04B2 6E94 MOVWF gbl_trisc
|
668 |
|
|
04B4 6E95 MOVWF gbl_trisd
|
669 |
|
|
04B6 6A80 CLRF gbl_porta
|
670 |
|
|
04B8 6A81 CLRF gbl_portb
|
671 |
|
|
04BA 6A82 CLRF gbl_portc
|
672 |
|
|
04BC 6A82 CLRF gbl_portc
|
673 |
|
|
04BE EC9AF001 CALL bootup_00000
|
674 |
|
|
04C2 EC7FF001 CALL setupinput_00000
|
675 |
|
|
04C6 label268437264
|
676 |
|
|
04C6 EC8AF001 CALL getinput_00000
|
677 |
|
|
04CA 5000 MOVF CompTempVarRet0, W
|
678 |
|
|
04CC 6E04 MOVWF main_1_temp
|
679 |
|
|
04CE 0EF7 MOVLW 0xF7
|
680 |
|
|
04D0 1404 ANDWF main_1_temp, W
|
681 |
|
|
04D2 A4D8 BTFSS STATUS,Z
|
682 |
|
|
04D4 8083 BSF gbl_portd,0
|
683 |
|
|
04D6 0EFB MOVLW 0xFB
|
684 |
|
|
04D8 1404 ANDWF main_1_temp, W
|
685 |
|
|
04DA A4D8 BTFSS STATUS,Z
|
686 |
|
|
04DC 9083 BCF gbl_portd,0
|
687 |
|
|
04DE D7F3 BRA label268437264
|
688 |
27 |
zuofu |
; } main function end
|
689 |
|
|
|
690 |
31 |
zuofu |
ORG 0x000004E0
|
691 |
|
|
04E0 _startup
|
692 |
|
|
04E0 EF54F002 GOTO main
|