📄 event.lst
字号:
HI-TECH Software PICC Macro Assembler V8.05PL1
Serial number: HCPIC-88888 Tue Feb 10 14:15:15 2009
Licensed to: ONE TWO
1 processor 16F688
2 opt pw 79
3 psect __Z88888RS_,global,delta=1
4 psect text0,local,class=CODE,delta=2
5 psect text2,local,class=CODE,delta=2
6 psect rbss_1,global,class=BANK1,space=1,delta=
+ 1
7 psect temp,global,ovrld,class=BANK0,space=1,de
+ lta=1
8 0000
9 0000
10 0000
11 0000
12 0000
13 0000
14 0000
15 0000
16 0000
17 0000
18
19 psect __Z88888RS_
20 0120
21 0120
22
23 psect text0
24 021B _checkEventWaitTimeOut
25 ; _ntime assigned to ?a_checkEventWaitTimeOut+0
26 0000 _checkEventWaitTimeOut$ntime set ?a_checkEventW
+ aitTimeOut
27 ;event.c: 30: if (EVENT.tWait==0)
28 021B 1683 bsf 3,5
29 021C 1303 bcf 3,6 ;carry unused
30 021D 0823 movf (_EVENT+3)^(0+128),w
31 021E 0422 iorwf (_EVENT+2)^(0+128),w
32 021F 0421 iorwf (_EVENT+1)^(0+128),w
33 0220 0420 iorwf _EVENT^(0+128),w
34 0221 1903 btfsc 3,2
35 0222 2A5D goto l15
36 ;event.c: 31: return(0);
37 ;event.c: 33: { ntime=loadSystemTime(6);
38 0223 3006 movlw 6
39 0224 118A 21A7 118A fcall _loadSystemTime
40 0227 0870 movf btemp,w
41 0228 00AF movwf ?a_checkEventWaitTimeOut
42 0229 0871 movf btemp+1,w
43 022A 00B0 movwf ?a_checkEventWaitTimeOut+1
44 022B 0872 movf btemp+2,w
45 022C 00B1 movwf ?a_checkEventWaitTimeOut+2
46 022D 0873 movf btemp+3,w
47 022E 00B2 movwf ?a_checkEventWaitTimeOut+3
48 ;event.c: 34: if (ntime-EVENT.wsTime>=EVENT.tWa
+ it)
49 022F 1683 bsf 3,5
50 0230 082C movf (_EVENT+12)^(0+128),w
51 0231 1283 bcf 3,5
52 0232 022F subwf ?a_checkEventWaitTimeOut,w
53 0233 00F0 movwf btemp
54 0234 0830 movf ?a_checkEventWaitTimeOut+1,w
55 0235 00F1 movwf btemp+1
56 0236 1683 bsf 3,5
57 0237 082D movf (_EVENT+13)^(0+128),w
58 0238 1C03 btfss 3,0
59 0239 0F2D incfsz (_EVENT+13)^(0+128),w
60 023A 02F1 subwf btemp+1
61 023B 1283 bcf 3,5
62 023C 0831 movf ?a_checkEventWaitTimeOut+2,w
63 023D 00F2 movwf btemp+2
64 023E 1683 bsf 3,5
65 023F 082E movf (_EVENT+14)^(0+128),w
66 0240 1C03 btfss 3,0
67 0241 0F2E incfsz (_EVENT+14)^(0+128),w
68 0242 02F2 subwf btemp+2
69 0243 1283 bcf 3,5
70 0244 0832 movf ?a_checkEventWaitTimeOut+3,w
71 0245 00F3 movwf btemp+3
72 0246 1683 bsf 3,5
73 0247 082F movf (_EVENT+15)^(0+128),w
74 0248 1C03 btfss 3,0
75 0249 0F2F incfsz (_EVENT+15)^(0+128),w
76 024A 02F3 subwf btemp+3
77 024B 0823 movf (_EVENT+3)^(0+128),w
78 024C 0273 subwf btemp+3,w
79 024D 1D03 btfss 3,2
80 024E 2A59 goto u25
81 024F 0822 movf (_EVENT+2)^(0+128),w
82 0250 0272 subwf btemp+2,w
83 0251 1D03 btfss 3,2
84 0252 2A59 goto u25
85 0253 0821 movf (_EVENT+1)^(0+128),w
86 0254 0271 subwf btemp+1,w
87 0255 1D03 btfss 3,2
88 0256 2A59 goto u25
89 0257 0820 movf _EVENT^(0+128),w
90 0258 0270 subwf btemp,w
91 0259 u25
92 0259 1C03 btfss 3,0
93 025A 2A5D goto l15
94 ;event.c: 35: return(1);
95 025B 3001 movlw 1
96 025C 2A5E goto l12
97 025D l15
98 025D 3000 movlw 0
99 ;event.c: 38: }
100 025E l12
101 025E 1283 bcf 3,5
102 025F 0008 return
103 0260 _EventBurstWait
104 ; _event assigned to ?a_EventBurstWait+0
105 0000 _EventBurstWait$event set ?a_EventBurstWait
106 ;event.c: 43: unsigned char event=255;
107 0260 30FF movlw -1
108 0261 0183 clrf 3 ;select bank 0
109 0262 00AE movwf ?a_EventBurstWait
110 ;event.c: 44: EVENT.tWait=tWait;
111 0263 082C movf ?_EventBurstWait+1,w
112 0264 00F1 movwf btemp+1
113 0265 082B movf ?_EventBurstWait,w
114 0266 00F0 movwf btemp
115 0267 01F2 clrf btemp+2
116 0268 01F3 clrf btemp+3
117 0269 1683 bsf 3,5
118 026A 00A0 movwf _EVENT^(0+128)
119 026B 0871 movf btemp+1,w
120 026C 00A1 movwf (_EVENT+1)^(0+128)
121 026D 0872 movf btemp+2,w
122 026E 00A2 movwf (_EVENT+2)^(0+128)
123 026F 0873 movf btemp+3,w
124 0270 00A3 movwf (_EVENT+3)^(0+128)
125 ;event.c: 45: EVENT.wsTime=loadSystemTime(6);
126 0271 3006 movlw 6
127 0272 118A 21A7 118A fcall _loadSystemTime
128 0275 0870 movf btemp,w
129 0276 1683 bsf 3,5
130 0277 00AC movwf (_EVENT+12)^(0+128)
131 0278 0871 movf btemp+1,w
132 0279 00AD movwf (_EVENT+13)^(0+128)
133 027A 0872 movf btemp+2,w
134 027B 00AE movwf (_EVENT+14)^(0+128)
135 027C 0873 movf btemp+3,w
136 027D 00AF movwf (_EVENT+15)^(0+128)
137 ;event.c: 50: break;}
138 027E 2A94 goto l19
139 027F l21
140 ;event.c: 51: if (comBuff.full==1)
141 027F 1683 bsf 3,5
142 0280 0B30 decfsz _comBuff^(0+128),w
143 0281 2A86 goto l22
144 ;event.c: 52: { event=4;
145 0282 3004 movlw 4
146 0283 1283 bcf 3,5
147 0284 00AE movwf ?a_EventBurstWait
148 ;event.c: 53: break;}
149 0285 2A9C goto l20
150 0286 l22
151 ;event.c: 54: event =checkKeyEvent();
152 0286 118A 20F4 118A fcall _checkKeyEvent
153 0289 00AE movwf ?a_EventBurstWait
154 ;event.c: 55: if (event!=255)
155 028A 0A2E incf ?a_EventBurstWait,w
156 028B 1903 btfsc 3,2
157 028C 2A94 goto l19
158 ;event.c: 56: { if (wEvent!=255)
159 028D 0A2D incf ?_EventBurstWait+2,w
160 028E 1903 btfsc 3,2
161 028F 2A9C goto l20
162 ;event.c: 57: { if (event==wEvent)
163 0290 082E movf ?a_EventBurstWait,w
164 0291 062D xorwf ?_EventBurstWait+2,w
165 0292 1903 btfsc 3,2
166 0293 2A9C goto l20
167 ;event.c: 58: break;}
168 ;event.c: 59: else break;
169 0294 l19
170 ;event.c: 46: while(1)
171 ;event.c: 47: { OS_SCHEDULE();
172 0294 118A 21D5 118A fcall _OS_SCHEDULE
173 ;event.c: 48: if (checkEventWaitTimeOut()==1)
174 0297 221B fcall _checkEventWaitTimeOut
175 0298 3A01 xorlw 1
176 0299 1D03 btfss 3,2
177 029A 2A7F goto l21
178 ;event.c: 49: { event=0;
179 029B 01AE clrf ?a_EventBurstWait
180 029C l20
181 ;event.c: 63: return(event);
182 029C 082E movf ?a_EventBurstWait,w
183 ;event.c: 64: }
184 029D 0008 return
185
186 psect text2
187 0000
188 0000
189 0000
190 0000
191 0000
192 0000
193 0000
194 0000
195 0000
196 0000
197 0000
198 0000
199 0000
200 0000
201 0000
202 0000
203 0000
204 0000
205 0000
206 0000
207 0000
208 0000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -