📄 dj485p9k.lst
字号:
HI-TECH Software PICC Macro Assembler V8.05PL1
Serial number: HCPIC-40231 Tue Nov 20 22:49:01 2007
Licensed to: ONE
1 processor 16F877A
2 opt pw 79
3 psect __Z40231RS_,global,delta=1
4 psect strings,global,class=STRING,delta=2
5 psect const1,local,class=CONST,delta=2
6 psect const2,local,class=CONST,delta=2
7 psect const3,local,class=CONST,delta=2
8 psect text0,local,class=CODE,delta=2
9 psect text1,local,class=CODE,delta=2
10 psect text2,local,class=CODE,delta=2
11 psect text7,local,class=CODE,delta=2
12 psect intcode,global,class=CODE,delta=2
13 psect intsave_0,global,ovrld,class=COMBANK,spa
+ ce=1,delta=1
14 psect intret,global,class=CODE,delta=2
15 psect intentry,global,class=CODE,delta=2
16 psect intsave,global,class=BANK0,space=1,delta
+ =1
17 psect text9,local,class=CODE,delta=2
18 psect text11,local,class=CODE,delta=2
19 psect const4,local,class=CONST,delta=2
20 psect const5,local,class=CONST,delta=2
21 psect text17,local,class=CODE,delta=2
22 psect const6,local,class=CONST,delta=2
23 psect text20,local,class=CODE,delta=2
24 psect text22,local,class=CODE,delta=2
25 psect text27,local,class=CODE,delta=2
26 psect text29,local,class=CODE,delta=2
27 psect rbit_0,global,bit,class=BANK0,space=1,de
+ lta=1
28 psect rbss_0,global,class=BANK0,space=1,delta=
+ 1
29 psect rbss_1,global,class=BANK1,space=1,delta=
+ 1
30 psect temp,global,ovrld,class=BANK0,space=1,de
+ lta=1
31 0000
32 0000
33 0000
34 0000
35 0000
36 0000
37 0000
38 0000
39 0000
40 0000
41
42 psect __Z40231RS_
43 0190
44 0190
45
46 psect const1
47 0825 0782 addwf 2
48 0826 _KKB
49 0826 3400 retlw 0
50 0827 3402 retlw 2
51 0828 3401 retlw 1
52 0829 3401 retlw 1
53 082A 3400 retlw 0
54 082B 34A2 retlw -94
55 082C 340E retlw 14
56 082D 3400 retlw 0
57
58 psect const2
59 081C 0782 addwf 2
60 081D _KKE
61 081D 3400 retlw 0
62 081E 3402 retlw 2
63 081F 3401 retlw 1
64 0820 3401 retlw 1
65 0821 3400 retlw 0
66 0822 34A3 retlw -93
67 0823 340E retlw 14
68 0824 3400 retlw 0
69
70 psect const3
71 0811 0782 addwf 2
72 0812 _HZ_QSLZW
73 0812 34C7 retlw -57
74 0813 34EB retlw -21
75 0814 34CA retlw -54
76 0815 34E4 retlw -28
77 0816 34C8 retlw -56
78 0817 34EB retlw -21
79 0818 34D6 retlw -42
80 0819 34B8 retlw -72
81 081A 34CE retlw -50
82 081B 34C6 retlw -58
83
84 psect text0
85 0DBD _delay3
86 ; _k assigned to ?a_delay3+0
87 0000 _delay3$k set ?a_delay3
88 ;DJ485P9K.C: 164: unsigned char k;
89 0DBD 3064 movlw 100
90 0DBE 0183 clrf 3 ;select bank 0
91 0DBF 00C7 movwf ?a_delay3
92 0DC0 l2
93 ;DJ485P9K.C: 166: ;
94 0DC0 0BC7 decfsz ?a_delay3
95 0DC1 2DC0 goto l2
96 0DC2 0008 return
97
98 psect text1
99 ;DJ485P9K.C: 169: void delay4(void)
100 ;DJ485P9K.C: 170: {
101 0DB7 _delay4
102 ; _k assigned to ?a_delay4+0
103 0000 _delay4$k set ?a_delay4
104 ;DJ485P9K.C: 171: unsigned char k;
105 0DB7 3096 movlw -106
106 0DB8 0183 clrf 3 ;select bank 0
107 0DB9 00C7 movwf ?a_delay4
108 0DBA l6
109 ;DJ485P9K.C: 173: ;
110 0DBA 0BC7 decfsz ?a_delay4
111 0DBB 2DBA goto l6
112 0DBC 0008 return
113
114 psect text2
115 ;DJ485P9K.C: 177: void delay()
116 ;DJ485P9K.C: 178: {
117 0DCE _delay
118 ; _de assigned to ?a_delay+0
119 0000 _delay$de set ?a_delay
120 ;DJ485P9K.C: 179: unsigned int de;
121 0DCE 30E8 movlw 232
122 0DCF 0183 clrf 3 ;select bank 0
123 0DD0 00C7 movwf ?a_delay
124 0DD1 3003 movlw 3
125 0DD2 00C8 movwf ?a_delay+1
126 ;DJ485P9K.C: 181: while(de--)
127 0DD3 l10
128 ;DJ485P9K.C: 182: {;}
129 0DD3 0847 movf ?a_delay,w
130 0DD4 1903 btfsc 3,2
131 0DD5 03C8 decf ?a_delay+1
132 0DD6 03C7 decf ?a_delay
133 0DD7 0A47 incf ?a_delay,w
134 0DD8 1903 btfsc 3,2
135 0DD9 0A48 incf ?a_delay+1,w
136 0DDA 1903 btfsc 3,2
137 0DDB 0008 return
138 0DDC 2DD3 goto l10
139
140 psect intcode
141 ;DJ485P9K.C: 423: void interrupt clkint(void)
142 ;DJ485P9K.C: 424: {
143 000F _clkint
144 000F int_func
145 ;DJ485P9K.C: 425: GIE=0;
146 000F 138B bcf 11,7
147 ;DJ485P9K.C: 427: if(T0IF==1)
148 0010 1D0B btfss 11,2
149 0011 2817 goto l73
150 ;DJ485P9K.C: 428: {
151 0012 110B bcf 11,2
152 ;DJ485P9K.C: 430: TMR0 = 255;
153 0013 30FF movlw -1
154 0014 1283 bcf 3,5
155 0015 1303 bcf 3,6 ;carry unused
156 0016 0081 movwf 1 ;volatile
157 ;DJ485P9K.C: 431: }
158 0017 l73
159 ;DJ485P9K.C: 469: }
160 0017 1E8C btfss 12,5
161 0018 2836 goto l71
162 ;DJ485P9K.C: 434: {
163 0019 30FF movlw -1
164 001A 0081 movwf 1 ;volatile
165 ;DJ485P9K.C: 438: cRs485RxChar = RCREG;
166 001B 081A movf 26,w ;volatile
167 001C 00B4 movwf _cRs485RxChar
168 ;DJ485P9K.C: 439: asm("nop");
169 001D 0000 nop ;#
170 ;DJ485P9K.C: 440: asm("nop");
171 001E 0000 nop ;#
172 ;DJ485P9K.C: 441: asm("nop");
173 001F 0000 nop ;#
174 ;DJ485P9K.C: 443: if ( !( RCSTA & 6 ) )
175 0020 0818 movf 24,w ;volatile
176 0021 3906 andlw 6
177 0022 1D03 btfss 3,2
178 0023 282E goto l76
179 ;DJ485P9K.C: 444: {
180 0024 120A 158A 26AD fcall _Rs485Decode
+ 120A 118A
181 ;DJ485P9K.C: 447: CREN=1;
182 0029 1618 bsf 24,4
183 ;DJ485P9K.C: 451: asm("nop");
184 002A 0000 nop ;#
185 ;DJ485P9K.C: 452: asm("nop");
186 002B 0000 nop ;#
187 ;DJ485P9K.C: 453: asm("nop");
188 002C 0000 nop ;#
189 ;DJ485P9K.C: 454: }
190 002D 2834 goto l77
191 002E l76
192 ;DJ485P9K.C: 456: {
193 002E 1218 bcf 24,4
194 ;DJ485P9K.C: 459: cRs485RxChar = RCREG;
195 002F 081A movf 26,w ;volatile
196 0030 00B4 movwf _cRs485RxChar
197 ;DJ485P9K.C: 460: cRs485RxChar = RCREG;
198 0031 081A movf 26,w ;volatile
199 0032 00B4 movwf _cRs485RxChar
200 ;DJ485P9K.C: 462: CREN=1;
201 0033 1618 bsf 24,4
202 0034 l77
203 ;DJ485P9K.C: 463: }
204 ;DJ485P9K.C: 466: RCIF=0;
205 0034 128C bcf 12,5
206 0035 2817 goto l73
207 ;DJ485P9K.C: 472: }
208 0036 l71
209
210 psect intsave_0
211 0075 saved_w
212 0075 ds 1
213
214 psect intret
215 0038 0854 movf saved_fsr,w
216 0039 0084 movwf 4 ;restore FSR
217 003A 0855 movf saved_pclath,w
218 003B 008A movwf 10
219 003C int_restore
220 003C 0853 movf saved_status,w
221 003D 0083 movwf 3
222 003E 0EF5 swapf saved_w
223 003F 0E75 swapf saved_w,w
224 0040 0009 retfie
225
226 psect intentry
227 0004 int_entry
228 0004 00F5 movwf saved_w
229 0005 0803 movf 3,w
230 0006 0183 clrf 3
231 0007 00D3 movwf saved_status
232 0008 0804 movf 4,w
233 0009 00D4 movwf saved_fsr
234 000A 080A movf 10,w
235 000B 00D5 movwf saved_pclath
236 000C 018A clrf 10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -