📄 app.lst
字号:
GAS LISTING C:\DOCUME~1\pstang\LOCALS~1\Temp/cckxaaaa.s page 1
1 .file "app.c"
2 .arch atmega323
3 __SREG__ = 0x3f
4 __SP_H__ = 0x3e
5 __SP_L__ = 0x3d
6 __tmp_reg__ = 0
7 __zero_reg__ = 1
8 .global __do_copy_data
9 .global __do_clear_bss
10 .stabs "C:\\Code\\AVR\\uip-avr/",100,0,0,.Ltext0
11 .stabs "app.c",100,0,0,.Ltext0
12 .text
13 .Ltext0:
14 .stabs "gcc2_compiled.",60,0,0,0
15 .stabs "int:t(0,1)=r(0,1);-32768;32767;",128,0,0,0
16 .stabs "char:t(0,2)=r(0,2);0;127;",128,0,0,0
17 .stabs "long int:t(0,3)=@s32;r(0,3);0020000000000;0017777777777;",128,0,0,0
18 .stabs "unsigned int:t(0,4)=r(0,4);0000000000000;0000000177777;",128,0,0,0
19 .stabs "long unsigned int:t(0,5)=@s32;r(0,5);0000000000000;0037777777777;",128,0,0,0
20 .stabs "long long int:t(0,6)=@s64;r(0,6);01000000000000000000000;0777777777777777777777;",128,0,0,
21 .stabs "long long unsigned int:t(0,7)=@s64;r(0,7);0000000000000;01777777777777777777777;",128,0,0,
22 .stabs "short int:t(0,8)=r(0,8);-32768;32767;",128,0,0,0
23 .stabs "short unsigned int:t(0,9)=r(0,9);0000000000000;0000000177777;",128,0,0,0
24 .stabs "signed char:t(0,10)=@s8;r(0,10);-128;127;",128,0,0,0
25 .stabs "unsigned char:t(0,11)=@s8;r(0,11);0;255;",128,0,0,0
26 .stabs "float:t(0,12)=r(0,1);4;0;",128,0,0,0
27 .stabs "double:t(0,13)=r(0,1);4;0;",128,0,0,0
28 .stabs "long double:t(0,14)=r(0,1);4;0;",128,0,0,0
29 .stabs "complex int:t(0,15)=s4real:(0,1),0,16;imag:(0,1),16,16;;",128,0,0,0
30 .stabs "complex float:t(0,16)=R3;8;0;",128,0,0,0
31 .stabs "complex double:t(0,17)=R3;8;0;",128,0,0,0
32 .stabs "complex long double:t(0,18)=R3;8;0;",128,0,0,0
33 .stabs "__builtin_va_list:t(0,19)=*(0,20)=(0,20)",128,0,0,0
34 .stabs "_Bool:t(0,21)=@s8;-16;",128,0,0,0
35 .stabs "app.c",130,0,0,0
36 .stabs "c:/programa/winavr/avr/include/io.h",130,0,0,0
37 .stabs "c:/programa/winavr/avr/include/avr/io.h",130,0,0,0
38 .stabs "c:/programa/winavr/avr/include/avr/sfr_defs.h",130,0,0,0
39 .stabn 162,0,0,0
40 .stabs "c:/programa/winavr/avr/include/avr/iom323.h",130,0,0,0
41 .stabn 162,0,0,0
42 .stabn 162,0,0,0
43 .stabn 162,0,0,0
44 .stabs "global.h",130,0,0,0
45 .stabs "c:/code/avr/avrlib/avrlibdefs.h",130,0,0,0
46 .stabn 162,0,0,0
47 .stabs "c:/code/avr/avrlib/avrlibtypes.h",130,0,0,0
48 .stabs "u08:t(8,1)=(0,11)",128,0,32,0
49 .stabs "s08:t(8,2)=(0,10)",128,0,33,0
50 .stabs "u16:t(8,3)=(0,9)",128,0,34,0
51 .stabs "s16:t(8,4)=(0,8)",128,0,35,0
52 .stabs "u32:t(8,5)=(0,5)",128,0,36,0
53 .stabs "s32:t(8,6)=(0,3)",128,0,37,0
54 .stabs "u64:t(8,7)=(0,7)",128,0,38,0
55 .stabs "s64:t(8,8)=(0,6)",128,0,39,0
56 .stabs "BOOL:t(8,9)=(0,11)",128,0,58,0
57 .stabs "BYTE:t(8,10)=(0,11)",128,0,59,0
GAS LISTING C:\DOCUME~1\pstang\LOCALS~1\Temp/cckxaaaa.s page 2
58 .stabs "WORD:t(8,11)=(0,4)",128,0,60,0
59 .stabs "DWORD:t(8,12)=(0,5)",128,0,61,0
60 .stabs "UCHAR:t(8,13)=(0,11)",128,0,63,0
61 .stabs "UINT:t(8,14)=(0,4)",128,0,64,0
62 .stabs "USHORT:t(8,15)=(0,9)",128,0,65,0
63 .stabs "ULONG:t(8,16)=(0,5)",128,0,66,0
64 .stabs "CHAR:t(8,17)=(0,2)",128,0,68,0
65 .stabs "INT:t(8,18)=(0,1)",128,0,69,0
66 .stabs "LONG:t(8,19)=(0,3)",128,0,70,0
67 .stabn 162,0,0,0
68 .stabn 162,0,0,0
69 .stabs "app.h",130,0,0,0
70 .stabs "uip.h",130,0,0,0
71 .stabs "uipopt.h",130,0,0,0
72 .stabs "u8_t:t(11,1)=(0,11)",128,0,52,0
73 .stabs "u16_t:t(11,2)=(0,9)",128,0,53,0
74 .stabs "app.h",130,0,0,0
75 .stabn 162,0,0,0
76 .stabn 162,0,0,0
77 .stabs "uip_conn:T(10,1)=s25tcpstateflags:(11,1),0,8;lport:(11,2),8,16;rport:(11,2),24,16;ripaddr:
78 .stabs "uip_stats:T(10,6)=s44ip:(10,7)=s18drop:(11,2),0,16;recv:(11,2),16,16;sent:(11,2),32,16;vhl
79 .stabs "uip_tcpip_hdr:t(10,10)=(10,11)=s44vhl:(11,1),0,8;tos:(11,1),8,8;len:(10,12)=ar(10,3);0;1;(
80 .stabn 162,0,0,0
81 .stabn 162,0,0,0
82 .stabs "c:/code/avr/avrlib/rprintf.h",130,0,0,0
83 .stabs "c:/programa/winavr/avr/include/avr/pgmspace.h",130,0,0,0
84 .stabs "c:/programa/winavr/lib/gcc-lib/avr/3.3/include/stddef.h",130,0,0,0
85 .stabs "size_t:t(15,1)=(0,4)",128,0,213,0
86 .stabn 162,0,0,0
87 .stabs "prog_void:t(14,1)=(14,2)=(14,2)",128,0,81,0
88 .stabs "prog_char:t(14,3)=(14,4)=@s8;r(14,4);-128;127;",128,0,82,0
89 .stabs "prog_uchar:t(14,5)=(14,6)=@s8;r(14,6);0;255;",128,0,83,0
90 .stabs "prog_int:t(14,7)=(14,8)=r(14,8);-32768;32767;",128,0,84,0
91 .stabs "prog_long:t(14,9)=(14,10)=@s32;r(14,10);0020000000000;0017777777777;",128,0,85,0
92 .stabs "prog_long_long:t(14,11)=(14,12)=@s64;r(14,12);01000000000000000000000;07777777777777777777
93 .stabn 162,0,0,0
94 .stabs "c:/code/avr/avrlib/rprintfconf.h",130,0,0,0
95 .stabn 162,0,0,0
96 .stabn 162,0,0,0
97 .stabs "c:/code/avr/avrlib/uart.h",130,0,0,0
98 .stabs "c:/code/avr/avrlib/buffer.h",130,0,0,0
99 .stabs "struct_cBuffer:T(18,1)=s8dataptr:(18,2)=*(0,11),0,16;size:(0,9),16,16;datalength:(0,9),32,
100 .stabs "cBuffer:t(18,3)=(18,1)",128,0,30,0
101 .stabn 162,0,0,0
102 .stabn 162,0,0,0
103 .section .progmem.data,"a",@progbits
104 .type __c.0, @object
105 .size __c.0, 26
106 __c.0:
107 0000 6170 706C .string "application initialized\r\n"
107 6963 6174
107 696F 6E20
107 696E 6974
107 6961 6C69
108 .text
109 .stabs "appInit:F(0,20)",36,0,18,appInit
110 .global appInit
GAS LISTING C:\DOCUME~1\pstang\LOCALS~1\Temp/cckxaaaa.s page 3
111 .type appInit, @function
112 appInit:
1:app.c **** /*****************************************************************************
2:app.c **** * "A Very Simple Application" from the uIP 0.6 documentation
3:app.c **** *****************************************************************************/
4:app.c ****
5:app.c **** #include <io.h>
6:app.c ****
7:app.c ****
8:app.c **** #include "global.h"
9:app.c **** #include "app.h"
10:app.c **** #include "rprintf.h"
11:app.c **** #include "uart.h"
12:app.c ****
13:app.c **** u08* sendBufferPtr;
14:app.c **** u08 sendBufferLen;
15:app.c ****
16:app.c ****
17:app.c **** void appInit(void)
18:app.c **** {
113 .stabn 68,0,18,.LM1-appInit
114 .LM1:
115 /* prologue: frame size=0 */
116 /* prologue end (size=0) */
19:app.c **** // listen for telnet
20:app.c **** uip_listen(23);
117 .stabn 68,0,20,.LM2-appInit
118 .LM2:
119 .LBB2:
120 0000 87E1 ldi r24,lo8(23)
121 0002 90E0 ldi r25,hi8(23)
122 0004 0E94 0000 call uip_listen
21:app.c **** // listen for http
22:app.c **** uip_listen(80);
123 .stabn 68,0,22,.LM3-appInit
124 .LM3:
125 0008 80E5 ldi r24,lo8(80)
126 000a 90E0 ldi r25,hi8(80)
127 000c 0E94 0000 call uip_listen
23:app.c ****
24:app.c **** DDRB = 0xFF;
128 .stabn 68,0,24,.LM4-appInit
129 .LM4:
130 0010 8FEF ldi r24,lo8(-1)
131 0012 87BB out 55-0x20,r24
25:app.c **** PORTB = 0xFF;
132 .stabn 68,0,25,.LM5-appInit
133 .LM5:
134 0014 88BB out 56-0x20,r24
26:app.c ****
27:app.c **** rprintf("application initialized\r\n");
135 .stabn 68,0,27,.LM6-appInit
136 .LM6:
137 0016 80E0 ldi r24,lo8(__c.0)
138 0018 90E0 ldi r25,hi8(__c.0)
139 001a 9F93 push r25
140 001c 8F93 push r24
GAS LISTING C:\DOCUME~1\pstang\LOCALS~1\Temp/cckxaaaa.s page 4
141 001e 81E0 ldi r24,lo8(1)
142 0020 8F93 push r24
143 0022 0E94 0000 call rprintf1RamRom
144 .LBE2:
145 0026 0F90 pop __tmp_reg__
146 0028 0F90 pop __tmp_reg__
147 002a 0F90 pop __tmp_reg__
28:app.c **** }
148 .stabn 68,0,28,.LM7-appInit
149 .LM7:
150 /* epilogue: frame size=0 */
151 002c 0895 ret
152 /* epilogue end (size=1) */
153 /* function appInit size 23 (22) */
154 .size appInit, .-appInit
155 .Lscope0:
156 .stabs "",36,0,0,.Lscope0-appInit
157 .stabs "appSendBufferPutchar:F(0,20)",36,0,31,appSendBufferPutchar
158 .stabs "c:P(8,1)",64,0,30,24
159 .global appSendBufferPutchar
160 .type appSendBufferPutchar, @function
161 appSendBufferPutchar:
29:app.c ****
30:app.c **** void appSendBufferPutchar(u08 c)
31:app.c **** {
162 .stabn 68,0,31,.LM8-appSendBufferPutchar
163 .LM8:
164 /* prologue: frame size=0 */
165 /* prologue end (size=0) */
32:app.c **** *sendBufferPtr++ = c;
166 .stabn 68,0,32,.LM9-appSendBufferPutchar
167 .LM9:
168 002e E091 0000 lds r30,sendBufferPtr
169 0032 F091 0000 lds r31,(sendBufferPtr)+1
170 0036 8193 st Z+,r24
171 0038 F093 0000 sts (sendBufferPtr)+1,r31
172 003c E093 0000 sts sendBufferPtr,r30
33:app.c **** sendBufferLen++;
173 .stabn 68,0,33,.LM10-appSendBufferPutchar
174 .LM10:
175 0040 8091 0000 lds r24,sendBufferLen
176 0044 8F5F subi r24,lo8(-(1))
177 0046 8093 0000 sts sendBufferLen,r24
34:app.c **** }
178 .stabn 68,0,34,.LM11-appSendBufferPutchar
179 .LM11:
180 /* epilogue: frame size=0 */
181 004a 0895 ret
182 /* epilogue end (size=1) */
183 /* function appSendBufferPutchar size 15 (14) */
184 .size appSendBufferPutchar, .-appSendBufferPutchar
185 .Lscope1:
186 .stabs "",36,0,0,.Lscope1-appSendBufferPutchar
187 .stabs "appEvent:F(0,20)",36,0,37,appEvent
188 .global appEvent
189 .type appEvent, @function
190 appEvent:
GAS LISTING C:\DOCUME~1\pstang\LOCALS~1\Temp/cckxaaaa.s page 5
35:app.c ****
36:app.c **** void appEvent(void)
37:app.c **** {
191 .stabn 68,0,37,.LM12-appEvent
192 .LM12:
193 /* prologue: frame size=0 */
194 /* prologue end (size=0) */
38:app.c **** switch(uip_conn->lport)
195 .stabn 68,0,38,.LM13-appEvent
196 .LM13:
197 004c E091 0000 lds r30,uip_conn
198 0050 F091 0000 lds r31,(uip_conn)+1
199 0054 8181 ldd r24,Z+1
200 0056 9281 ldd r25,Z+2
201 0058 27E1 ldi r18,hi8(5888)
202 005a 8030 cpi r24,lo8(5888)
203 005c 9207 cpc r25,r18
204 005e 21F0 breq .L5
205 0060 8050 subi r24,lo8(20480)
206 0062 9045 sbci r25,hi8(20480)
207 0064 21F0 breq .L6
39:app.c **** {
40:app.c **** case htons(23):
41:app.c **** appServiceTelnet();
42:app.c **** break;
43:app.c **** case htons(80):
44:app.c **** appServiceHTTP();
45:app.c **** break;
46:app.c **** default:
47:app.c **** break;
48:app.c **** }
49:app.c **** }
208 .stabn 68,0,49,.LM14-appEvent
209 .LM14:
210 0066 0895 ret
211 .L5:
212 .stabn 68,0,41,.LM15-appEvent
213 .LM15:
214 0068 0E94 0000 call appServiceTelnet
215 .stabn 68,0,42,.LM16-appEvent
216 .LM16:
217 .stabn 68,0,49,.LM17-appEvent
218 .LM17:
219 006c 0895 ret
220 .L6:
221 .stabn 68,0,44,.LM18-appEvent
222 .LM18:
223 006e 0E94 0000 call appServiceHTTP
224 .stabn 68,0,49,.LM19-appEvent
225 .LM19:
226 0072 0895 ret
227 /* epilogue: frame size=0 */
228 0074 0895 ret
229 /* epilogue end (size=1) */
230 /* function appEvent size 22 (21) */
231 .size appEvent, .-appEvent
232 .Lscope2:
GAS LISTING C:\DOCUME~1\pstang\LOCALS~1\Temp/cckxaaaa.s page 6
233 .stabs "",36,0,0,.Lscope2-appEvent
234 .section .progmem.data
235 .type __c.1, @object
236 .size __c.1, 30
237 __c.1:
238 001a 5765 6C63 .string "Welcome to the Internet-AVR\r\n"
238 6F6D 6520
238 746F 2074
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -