📄 spi_mcp.lst
字号:
HI-TECH Software PICC Macro Assembler V8.05PL1
Serial number: HCPIC-34349 Thu Oct 26 15:45:37 2006
Licensed to: ONE
1 processor 16F877A
2 opt pw 79
3 psect __Z34349RS_,global,delta=1
4 psect text0,local,class=CODE,delta=2
5 psect text1,local,class=CODE,delta=2
6 psect text3,local,class=CODE,delta=2
7 psect text4,local,class=CODE,delta=2
8 psect text5,local,class=CODE,delta=2
9 psect text7,local,class=CODE,delta=2
10 0000
11 0000
12 0000
13 0000
14 0000
15 0000
16 0000
17 0000
18 0000
19 0000
20
21 psect __Z34349RS_
22 0190
23 0190
24
25 psect text0
26 085B _SPI_mcp_select
27 ;spi_mcp.c: 21: RA2 = 0;
28 085B 0183 clrf 3 ;select bank 0
29 085C 1105 bcf 5,2
30 ;spi_mcp.c: 22: }
31 085D 0008 return
32
33 psect text1
34 09C0 _SPI_mcp_unselect
35 ;spi_mcp.c: 28: CKP = 0;
36 09C0 0183 clrf 3 ;select bank 0
37 09C1 1214 bcf 20,4
38 ;spi_mcp.c: 29: RA2 = 1;
39 09C2 1505 bsf 5,2
40 ;spi_mcp.c: 30: CKP = 1;
41 09C3 1614 bsf 20,4
42 ;spi_mcp.c: 31: }
43 09C4 0008 return
44 09C5 _SPI_mcp_reset
45 ;spi_mcp.c: 35: SPI_mcp_select();
46 ;spi_mcp.c: 21: RA2 = 0;
47 09C5 0183 clrf 3 ;select bank 0
48 09C6 1105 bcf 5,2
49 ;spi_mcp.c: 36: SPI_putch(0xc0);
50 09C7 30C0 movlw -64
51 09C8 120A 158A 2089 fcall _SPI_putch
+ 120A 158A
52 ;spi_mcp.c: 37: SPI_mcp_unselect();
53 09CD 29C0 ljmp _SPI_mcp_unselect
54 09CE _SPI_mcp_write_bits
55 ; _MCPaddr assigned to ?a_SPI_mcp_write_bits+0
56 0000 _SPI_mcp_write_bits$MCPaddr set ?a_SPI_mcp_writ
+ e_bits
57 ;_MCPaddr stored from w
58 09CE 0183 clrf 3 ;select bank 0
59 09CF 00D1 movwf ?a_SPI_mcp_write_bits
60 ;spi_mcp.c: 73: SPI_mcp_select ();
61 ;spi_mcp.c: 21: RA2 = 0;
62 09D0 1105 bcf 5,2
63 ;spi_mcp.c: 74: SPI_putch( 0x05 );
64 09D1 3005 movlw 5
65 09D2 120A 158A 2089 fcall _SPI_putch
66 ;spi_mcp.c: 75: SPI_putch( MCPaddr );
67 09D5 0851 movf ?a_SPI_mcp_write_bits,w
68 09D6 120A 158A 2089 fcall _SPI_putch
69 ;spi_mcp.c: 76: SPI_putch( mask );
70 09D9 0850 movf ?_SPI_mcp_write_bits+1,w
71 09DA 120A 158A 2089 fcall _SPI_putch
72 ;spi_mcp.c: 77: SPI_putch( data );
73 09DD 084F movf ?_SPI_mcp_write_bits,w
74 09DE 120A 158A 2089 fcall _SPI_putch
+ 120A 158A
75 ;spi_mcp.c: 78: SPI_mcp_unselect ();
76 09E3 29C0 ljmp _SPI_mcp_unselect
77
78 psect text3
79 08FD _SPI_mcp_RD_address
80 ; _output assigned to ?a_SPI_mcp_RD_address+0
81 0000 _SPI_mcp_RD_address$output set ?a_SPI_mcp_RD_ad
+ dress
82 ; _store assigned to ?a_SPI_mcp_RD_address+1
83 0000 _SPI_mcp_RD_address$store set ?a_SPI_mcp_RD_add
+ ress+1
84 ;_output stored from w
85 08FD 0183 clrf 3 ;select bank 0
86 08FE 00D6 movwf ?a_SPI_mcp_RD_address
87 ;spi_mcp.c: 42: uchar store;
88 08FF 1105 bcf 5,2
89 ;spi_mcp.c: 44: store = SPI_putch( 0x03 );
90 0900 3003 movlw 3
91 0901 120A 158A 2089 fcall _SPI_putch
92 0904 00D7 movwf ?a_SPI_mcp_RD_address+1
93 ;spi_mcp.c: 46: store = SPI_putch( output );
94 0905 0856 movf ?a_SPI_mcp_RD_address,w
95 0906 120A 158A 2089 fcall _SPI_putch
+ 120A 158A
96 090B 00D7 movwf ?a_SPI_mcp_RD_address+1
97 ;spi_mcp.c: 47: }
98 090C 0008 return
99
100 psect text4
101 08ED _SPI_mcp_WR_address
102 ; _output assigned to ?a_SPI_mcp_WR_address+0
103 0000 _SPI_mcp_WR_address$output set ?a_SPI_mcp_WR_ad
+ dress
104 ; _store assigned to ?a_SPI_mcp_WR_address+1
105 0000 _SPI_mcp_WR_address$store set ?a_SPI_mcp_WR_add
+ ress+1
106 ;_output stored from w
107 08ED 0183 clrf 3 ;select bank 0
108 08EE 00EA movwf ?a_SPI_mcp_WR_address
109 ;spi_mcp.c: 51: uchar store;
110 08EF 1105 bcf 5,2
111 ;spi_mcp.c: 53: store = SPI_putch( 0x02 );
112 08F0 3002 movlw 2
113 08F1 120A 158A 2089 fcall _SPI_putch
114 08F4 00EB movwf ?a_SPI_mcp_WR_address+1
115 ;spi_mcp.c: 55: store = SPI_putch( output );
116 08F5 086A movf ?a_SPI_mcp_WR_address,w
117 08F6 120A 158A 2089 fcall _SPI_putch
+ 120A 158A
118 08FB 00EB movwf ?a_SPI_mcp_WR_address+1
119 ;spi_mcp.c: 56: }
120 08FC 0008 return
121
122 psect text5
123 08CF _SPI_mcp_RD_status
124 ; _store assigned to ?a_SPI_mcp_RD_status+0
125 0000 _SPI_mcp_RD_status$store set ?a_SPI_mcp_RD_stat
+ us
126 ;spi_mcp.c: 61: uchar store;
127 08CF 0183 clrf 3 ;select bank 0
128 08D0 1105 bcf 5,2
129 ;spi_mcp.c: 63: store = SPI_putch( 0xA0 );
130 08D1 30A0 movlw -96
131 08D2 120A 158A 2089 fcall _SPI_putch
132 08D5 00A1 movwf ?a_SPI_mcp_RD_status
133 ;spi_mcp.c: 64: store = SPI_putch( 0xA0 );
134 08D6 30A0 movlw -96
135 08D7 120A 158A 2089 fcall _SPI_putch
+ 120A 158A
136 08DC 00A1 movwf ?a_SPI_mcp_RD_status
137 ;spi_mcp.c: 69: }
138 08DD 0008 return
139 ; param _data assigned to ?_SPI_mcp_write
+ _bits+0
140 0000 _SPI_mcp_write_bits$data set ?_SPI_mcp_write_bi
+ ts
141 ; param _mask assigned to ?_SPI_mcp_write
+ _bits+1
142 0000 _SPI_mcp_write_bits$mask set ?_SPI_mcp_write_bi
+ ts+1
143
144 psect text7
145 0000
146 0000
147 0000
148 0000
149 0000
150 0000
151 0000
152 0000
153 0000
154 0000
155 0000
156 0000
157 0000
158 0000
159 0000
160 0000
161 0000
162 0000
163 0000
164 0000
165 0000
166 0000
167 0000
168 0000
169 0000
170 0000
171 0000
172 0000
173 0000
174 0000
175 0000
176 0000
177 0000
178 0000
179 0000
180 0000
181 0000
182 0000
183 0000
184 0000
185 0000
186 0000
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -