?? fasong.lst
字號(hào):
HI-TECH Software PICC Macro Assembler V9.60PL1
Sun Nov 23 21:21:37 2008
1 processor 16F877A
2 opt pw 79
3 psect rdata_0,global,class=BANK0,space=1,delta
+ =1
4 psect idata_0,global,class=CODE,delta=2
5 psect text0,local,class=CODE,delta=2
6 psect text1,local,class=CODE,delta=2
7 psect text2,local,class=CODE,delta=2
8 psect text3,local,class=CODE,delta=2
9 psect text4,local,class=CODE,delta=2
10 psect text5,local,class=CODE,delta=2
11 psect text6,local,class=CODE,delta=2
12 psect text7,local,class=CODE,delta=2
13 psect text8,local,class=CODE,delta=2
14 psect text9,local,class=CODE,delta=2
15 psect text10,local,class=CODE,delta=2
16 psect text11,local,class=CODE,delta=2
17 0000
18 0000
19 0000
20 0000
21 0000
22 0000
23 0000
24 0000
25 0000
26 0000
27
28 psect rdata_0
29 0000' _TxRxBuf
30 0000' ds 1
31 0001' ds 1
32 0002' ds 1
33 0003' ds 1
34 0004' ds 1
35 0005' ds 1
36 0006' ds 1
37 0007' ds 1
38 0008' ds 1
39 0009' ds 1
40 000A' ds 1
41 000B' ds 1
42 000C' ds 1
43 000D' ds 1
44 000E' ds 1
45 000F' ds 1
46 0010' ds 1
47 0011' ds 1
48 0012' ds 1
49 0013' ds 1
50 0014' ds 1
51 0015' ds 1
52 0016' ds 1
53 0017' ds 1
54 0018' ds 1
55 0019' ds 1
56 001A' ds 1
57 001B' ds 1
58 001C' ds 1
59 001D' ds 1
60 001E' ds 1
61 001F' ds 1
62 0020' _TxAddress
63 0020' ds 1
64 0021' ds 1
65 0022' ds 1
66 0023' ds 1
67 0024' _RFConf
68 0024' ds 1
69 0025' ds 1
70 0026' ds 1
71 0027' ds 1
72 0028' ds 1
73 0029' ds 1
74 002A' ds 1
75 002B' ds 1
76 002C' ds 1
77 002D' ds 1
78 002E' ds 1
79
80 psect idata_0
81 0000' 3459 retlw 89
82 0001' 3469 retlw 105
83 0002' 346E retlw 110
84 0003' 3420 retlw 32
85 0004' 346C retlw 108
86 0005' 3469 retlw 105
87 0006' 3478 retlw 120
88 0007' 3469 retlw 105
89 0008' 346E retlw 110
90 0009' 3467 retlw 103
91 000A' 3420 retlw 32
92 000B' 3469 retlw 105
93 000C' 3473 retlw 115
94 000D' 3420 retlw 32
95 000E' 3461 retlw 97
96 000F' 3420 retlw 32
97 0010' 3467 retlw 103
98 0011' 346F retlw 111
99 0012' 346F retlw 111
100 0013' 3464 retlw 100
101 0014' 3420 retlw 32
102 0015' 346D retlw 109
103 0016' 3461 retlw 97
104 0017' 346E retlw 110
105 0018' 342E retlw 46
106 0019' 3420 retlw 32
107 001A' 344C retlw 76
108 001B' 346F retlw 111
109 001C' 3476 retlw 118
110 001D' 3465 retlw 101
111 001E' 3420 retlw 32
112 001F' 3453 retlw 83
113 0020' 34CC retlw -52
114 0021' 34CC retlw -52
115 0022' 34CC retlw -52
116 0023' 34CC retlw -52
117 0024' 3400 retlw 0
118 0025' 344C retlw 76
119 0026' 342C retlw 44
120 0027' 3444 retlw 68
121 0028' 3420 retlw 32
122 0029' 3420 retlw 32
123 002A' 34CC retlw -52
124 002B' 34CC retlw -52
125 002C' 34CC retlw -52
126 002D' 34CC retlw -52
127 002E' 3458 retlw 88
128
129 psect text0
130 0000' _Delay
131 ; _x assigned to ?a_Delay+0
132 0000 _Delay$x set ?a_Delay
133 ; _i assigned to ?a_Delay+1
134 0000 _Delay$i set ?a_Delay+1
135 ;_x stored from w
136 0000' 0183 clrf 3 ;select bank 0
137 0001' 0080' movwf ?a_Delay
138 ;fasong.c: 65: void Delay(unsigned char x)
139 0002' 2800' goto l2
140 0003' l3
141 ;fasong.c: 69: for(i=0;i<80;i++);
142 0003' 0181' clrf ?a_Delay+1
143 0004' l5
144 0004' 0A81' incf ?a_Delay+1
145 0005' 3050 movlw 80
146 0006' 0201' subwf ?a_Delay+1,w
147 0007' 1C03 btfss 3,0
148 0008' 2800' goto l5
149 0009' l2
150 0009' 1283 bcf 3,5
151 000A' 1303 bcf 3,6 ;carry unused
152 000B' 0380' decf ?a_Delay
153 000C' 0F00' incfsz ?a_Delay,w
154 000D' 2800' goto l3
155 000E' 0008 return
156
157 psect text1
158 0000' _Spi_initial
159 ;fasong.c: 72: void Spi_initial(void)
160 0000' 018B clrf 11 ;volatile
161 ;fasong.c: 75: PIR1=0x00;
162 0001' 1283 bcf 3,5
163 0002' 1303 bcf 3,6 ;carry unused
164 0003' 018C clrf 12 ;volatile
165 ;fasong.c: 76: SSPCON=0x20;
166 0004' 3020 movlw 32
167 0005' 0094 movwf 20 ;volatile
168 ;fasong.c: 77: SSPSTAT=0xc0;
169 0006' 30C0 movlw -64
170 0007' 1683 bsf 3,5
171 0008' 0094 movwf 20 ;volatile
172 ;fasong.c: 78: ADCON1=0x07;
173 0009' 3007 movlw 7
174 000A' 009F movwf 31 ;volatile
175 ;fasong.c: 79: SSPIF=0;
176 000B' 1283 bcf 3,5
177 000C' 118C bcf 12,3
178 ;fasong.c: 80: }
179 000D' 0008 return ;W free
180
181 psect text2
182 0000' _SpiReadSpiWrite
183 ; _DATA assigned to ?a_SpiReadSpiWrite+0
184 0000 _SpiReadSpiWrite$DATA set ?a_SpiReadSpiWrite
185 ; _b assigned to ?a_SpiReadSpiWrite+1
186 0000 _SpiReadSpiWrite$b set ?a_SpiReadSpiWrite+1
187 ;_DATA stored from w
188 0000' 0183 clrf 3 ;select bank 0
189 0001' 0080' movwf ?a_SpiReadSpiWrite
190 ;fasong.c: 82: unsigned char SpiReadSpiWrite(un
+ signed char DATA)
191 0002' 2000' call _Spi_initial
192 ;fasong.c: 86: SSPBUF=DATA;
193 0003' 0800' movf ?a_SpiReadSpiWrite,w
194 0004' 0093 movwf 19 ;volatile
195 0005' l12
196 ;fasong.c: 87: do
197 ;fasong.c: 88: {
198 0005' 1D8C btfss 12,3
199 0006' 2800' goto l12
200 ;fasong.c: 92: SSPIF=0;
201 0007' 118C bcf 12,3
202 ;fasong.c: 93: b=SSPBUF;
203 0008' 0813 movf 19,w ;volatile
204 0009' 0081' movwf ?a_SpiReadSpiWrite+1
205 ;fasong.c: 95: }
206 000A' 0008 return ;uses W
207
208 psect text3
209 0000' _system_Init
210 ;fasong.c: 97: void system_Init(void)
211 0000' 1683 bsf 3,5
212 0001' 1303 bcf 3,6 ;carry unused
213 0002' 0185 clrf 5 ;volatile
214 ;fasong.c: 100: TRISB=0x0D;
215 0003' 300D movlw 13
216 0004' 0086 movwf 6 ;volatile
217 ;fasong.c: 101: TRISC=0x90;
218 0005' 3090 movlw -112
219 0006' 0087 movwf 7 ;volatile
220 ;fasong.c: 102: TRISD=0x00;
221 0007' 0188 clrf 8 ;volatile
222 ;fasong.c: 103: TRISE=0x00;
223 0008' 0189 clrf 9 ;volatile
224 ;fasong.c: 104: ADCON1=0x07;
225 0009' 3007 movlw 7
226 000A' 009F movwf 31 ;volatile
227 ;fasong.c: 105: RC0=1;
228 000B' 1283 bcf 3,5
229 000C' 1407 bsf 7,0
230 ;fasong.c: 106: RC3=0;
231 000D' 1187 bcf 7,3
232 ;fasong.c: 107: RB0=0;
233 000E' 1006 bcf 6,0
234 ;fasong.c: 108: RB3=0;
235 000F' 1186 bcf 6,3
236 ;fasong.c: 109: RB2=0;
237 0010' 1106 bcf 6,2
238 ;fasong.c: 110: RB1=1;
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -