📄 flash.lst
字号:
HI-TECH Software PICC-18 Macro Assembler V8.20PL4
Serial number: HCPIC18-34567 Tue Dec 9 00:40:27 2008
Licensed to: BEN SHEPET
1 processor 18F452
2 opt pw 80
3 psect __Z34567RS_,global,delta=1
4 psect text,global,reloc=2,class=CODE,delta=1
5 psect temp,global,ovrld,common,class=COMRAM,spa
+ ce=1,delta=1
6 psect intsave_regs,global,class=BIGRAM,space=1,
+ delta=1
7 0000
8 0000
9 0000
10 0000
11 0000
12 0000
13 0000
14 0000
15 0000
16 0000
17 0000
18 0000
19 0000
20 0000
21 0000
22 0000
23 0000
24 0000
25 0000
26 0000
27 0000
28 0000
29 0000
30 0000
31 0000
32 0000
33 0000
34 0000
35 0000
36 0000
37 0000
38 0000
39 0000
40 0000
41 0000
42 0000
43 0000
44 0000
45 0000
46 0000
47 0000
48 0000
49 0000
50 0000
51 0000
52 0000
53 0000
54 0000
55 0000
56 0000
57 0000
58 0000
59 0000
60 0000
61 0000
62 0000
63 0000
64 0000
65 0000
66 0000
67 0000
68 0000
69 0000
70 0000
71 0000
72 0000
73 0000
74 0000
75 0000
76 0000
77 0000
78 0000
79 0000
80 0000
81 0000
82 0000
83 0000
84 0000
85 0000
86 0000
87 0000
88 0000
89 0000
90 0000
91 0000
92 0000
93 0000
94 0000
95 0000
96
97 psect __Z34567RS_
98 005A
99 005A
100
101 psect text
102 005A _spi_init:
103 ; _buff assigned to ?a_write_flash+7
104 0000 _write_flash$buff set ?a_write_flash+7
105 ; _flash_flag assigned to ?a_write_flash+4
106 0000 _write_flash$flash_flag set ?a_write_flash+4
107 ; _flash_flag_int assigned to ?a_write_flash+2
108 0000 _write_flash$flash_flag_int set ?a_write_flash+2
109 ; _asc assigned to ?a_write_flash+1
110 0000 _write_flash$asc set ?a_write_flash+1
111 ; _i assigned to ?a_write_flash+0
112 0000 _write_flash$i set ?a_write_flash
113 ; _RBuff1 assigned to ?a_find_last_copy+4
114 0000 _find_last_copy$RBuff1 set ?a_find_last_copy+4
115 ; _page0 assigned to ?a_find_last_copy+2
116 0000 _find_last_copy$page0 set ?a_find_last_copy+2
117 ; _count_write assigned to ?a_find_last_copy+0
118 0000 _find_last_copy$count_write set ?a_find_last_cop
+ y
119 ; param _flash_flag assigned to ?_find_las
+ t_copy+2
120 0000 _find_last_copy$flash_flag set ?_find_last_copy+
+ 2
121 ;flash.c: 179: unsigned int find_last_copy(unsig
+ ned char pbuf[8], unsigned char *flash_flag)
122 ;flash.c: 180: {
123 ; param _pbuf assigned to ?_find_last_copy
+ +0
124 0000 _find_last_copy$pbuf set ?_find_last_copy
125 ;flash.c: 159: void write_flash_flag(unsigned ch
+ ar *FlagBuff)
126 ;flash.c: 160: {
127 ; param _FlagBuff assigned to ?_write_flas
+ h_flag+0
128 0000 _write_flash_flag$FlagBuff set ?_write_flash_fla
+ g
129 ;flash.c: 127: void read_flash_flag(unsigned cha
+ r *FlagBuff)
130 ;flash.c: 128: {
131 ; param _FlagBuff assigned to ?_read_flash
+ _flag+0
132 0000 _read_flash_flag$FlagBuff set ?_read_flash_flag
133 ; param _page_offset assigned to ?_write_m
+ emory+2
134 0000 _write_memory$page_offset set ?_write_memory+2
135 ;flash.c: 116: void write_memory (unsigned char
+ write_CMD,unsigned int page_counter,unsigned int
+ page_offset)
136 ;flash.c: 117: {
137 ; param _page_counter assigned to ?_write_
+ memory+0
138 0000 _write_memory$page_counter set ?_write_memory
139 ; param _page_offset assigned to ?_read_on
+ e_message+4
140 0000 _read_one_message$page_offset set ?_read_one_mes
+ sage+4
141 ; param _page_counter assigned to ?_read_o
+ ne_message+2
142 0000 _read_one_message$page_counter set ?_read_one_me
+ ssage+2
143 005A FFFF dw 65535
144 005C f4442:
145 0000
146 ;flash.c: 19: TRISC0=0;
147 005C 9094 bcf 3988,0,c ;volatile
148 ;flash.c: 20: TRISC3=0;
149 005E 9694 bcf 3988,3,c ;volatile
150 ;flash.c: 21: TRISC4=1;
151 0060 8894 bsf 3988,4,c ;volatile
152 ;flash.c: 22: TRISC5=0;
153 0062 9A94 bcf 3988,5,c ;volatile
154 ;flash.c: 23: }
155 0064 0012 return
156 0066 FFFF dw 65535
157 0068 D7F9 goto f4442
158 006A _Delay:
159 006A FFFF dw 65535
160 006C f4452:
161 0000
162 ;flash.c: 27: asm("nop");
163 006C F000 nop ;#
164 ;flash.c: 28: asm("nop");
165 006E F000 nop ;#
166 ;flash.c: 29: }
167 0070 0012 return
168 0072 FFFF dw 65535
169 0074 D7FB goto f4452
170 0076 _OutPut:
171 0076 FFFF dw 65535
172 0078 f4462:
173 0000
174 ; _data loaded to fsr1l
175 0078 6EE1 movwf fsr1l,c
176 ;flash.c: 53: unsigned char i;
177 007A 6AD9 clrf fsr2l,c
178 007C l5:
179 ;flash.c: 55: {
180 ;flash.c: 56: RC3=0;
181 007C 9682 bcf 3970,3,c ;volatile
182 ;flash.c: 57: RC5=0;
183 007E 9A82 bcf 3970,5,c ;volatile
184 ;flash.c: 58: if(data&0x80) RC5=1;
185 0080 BEE1 btfsc fsr1l,7,c
186 0082 8A82 bsf 3970,5,c ;volatile
187 ;flash.c: 59: data<<=1;
188 0084 90D8 bcf status,0,c
189 0086 36E1 rlcf fsr1l,f,c
190 ;flash.c: 60: RC3=1;
191 0088 8682 bsf 3970,3,c ;volatile
192 ;flash.c: 61: asm("nop");
193 008A F000 nop ;#
194 ;flash.c: 62: }
195 008C 2AD9 incf fsr2l,f,c
196 008E 0E07 movlw 7
197 0090 64D9 cpfsgt fsr2l,c
198 0092 D7F4 goto l5
199 ;flash.c: 63: RC5=0;
200 0094 9A82 bcf 3970,5,c ;volatile
201 ;flash.c: 64: }
202 0096 0012 return
203 0098 FFFF dw 65535
204 009A D7EE goto f4462
205 ;flash.c: 65: unsigned char InPut(void)
206 ;flash.c: 66: {
207 009C _InPut:
208 009C FFFF dw 65535
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -