484 |
kaklik |
1 |
GAS LISTING /tmp/ccupeLRq.s page 1
|
151 |
kaklik |
2 |
|
|
|
3 |
|
|
|
4 |
1 .file "Main.c"
|
484 |
kaklik |
5 |
2 __SREG__ = 0x3f
|
|
|
6 |
3 __SP_H__ = 0x3e
|
|
|
7 |
4 __SP_L__ = 0x3d
|
|
|
8 |
5 __tmp_reg__ = 0
|
|
|
9 |
6 __zero_reg__ = 1
|
|
|
10 |
7 .global __do_copy_data
|
|
|
11 |
8 .global __do_clear_bss
|
|
|
12 |
9 .stabs "/home/kaklik/projects/programy/C/avr/AVRcam/",100,0,2,.Ltext0
|
|
|
13 |
10 .stabs "Main.c",100,0,2,.Ltext0
|
|
|
14 |
11 .text
|
|
|
15 |
12 .Ltext0:
|
|
|
16 |
13 .stabs "gcc2_compiled.",60,0,0,0
|
|
|
17 |
14 .stabs "int:t(0,1)=r(0,1);-32768;32767;",128,0,0,0
|
|
|
18 |
15 .stabs "char:t(0,2)=@s8;r(0,2);0;255;",128,0,0,0
|
|
|
19 |
16 .stabs "long int:t(0,3)=@s32;r(0,3);020000000000;017777777777;",128,0,0,0
|
|
|
20 |
17 .stabs "unsigned int:t(0,4)=r(0,4);0;0177777;",128,0,0,0
|
|
|
21 |
18 .stabs "long unsigned int:t(0,5)=@s32;r(0,5);0;037777777777;",128,0,0,0
|
|
|
22 |
19 .stabs "long long int:t(0,6)=@s64;r(0,6);01000000000000000000000;0777777777777777777777;",128,0,0,
|
|
|
23 |
20 .stabs "long long unsigned int:t(0,7)=@s64;r(0,7);0;01777777777777777777777;",128,0,0,0
|
|
|
24 |
21 .stabs "short int:t(0,8)=r(0,8);-32768;32767;",128,0,0,0
|
|
|
25 |
22 .stabs "short unsigned int:t(0,9)=r(0,9);0;0177777;",128,0,0,0
|
|
|
26 |
23 .stabs "signed char:t(0,10)=@s8;r(0,10);-128;127;",128,0,0,0
|
|
|
27 |
24 .stabs "unsigned char:t(0,11)=@s8;r(0,11);0;255;",128,0,0,0
|
|
|
28 |
25 .stabs "float:t(0,12)=r(0,1);4;0;",128,0,0,0
|
|
|
29 |
26 .stabs "double:t(0,13)=r(0,1);4;0;",128,0,0,0
|
|
|
30 |
27 .stabs "long double:t(0,14)=r(0,1);4;0;",128,0,0,0
|
|
|
31 |
28 .stabs "void:t(0,15)=(0,15)",128,0,0,0
|
|
|
32 |
29 .stabs "/usr/lib/gcc/avr/4.2.1/../../../../avr/include/avr/io.h",130,0,0,0
|
|
|
33 |
30 .stabs "/usr/lib/gcc/avr/4.2.1/../../../../avr/include/avr/sfr_defs.h",130,0,0,0
|
|
|
34 |
31 .stabs "/usr/lib/gcc/avr/4.2.1/../../../../avr/include/inttypes.h",130,0,0,0
|
|
|
35 |
32 .stabs "/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdint.h",130,0,0,0
|
|
|
36 |
33 .stabs "int8_t:t(4,1)=(0,10)",128,0,116,0
|
|
|
37 |
34 .stabs "uint8_t:t(4,2)=(0,11)",128,0,117,0
|
|
|
38 |
35 .stabs "int16_t:t(4,3)=(0,1)",128,0,118,0
|
|
|
39 |
36 .stabs "uint16_t:t(4,4)=(0,4)",128,0,119,0
|
|
|
40 |
37 .stabs "int32_t:t(4,5)=(0,3)",128,0,120,0
|
|
|
41 |
38 .stabs "uint32_t:t(4,6)=(0,5)",128,0,121,0
|
|
|
42 |
39 .stabs "int64_t:t(4,7)=(0,6)",128,0,122,0
|
|
|
43 |
40 .stabs "uint64_t:t(4,8)=(0,7)",128,0,123,0
|
|
|
44 |
41 .stabs "intptr_t:t(4,9)=(4,3)",128,0,135,0
|
|
|
45 |
42 .stabs "uintptr_t:t(4,10)=(4,4)",128,0,140,0
|
|
|
46 |
43 .stabs "int_least8_t:t(4,11)=(4,1)",128,0,152,0
|
|
|
47 |
44 .stabs "uint_least8_t:t(4,12)=(4,2)",128,0,157,0
|
|
|
48 |
45 .stabs "int_least16_t:t(4,13)=(4,3)",128,0,162,0
|
|
|
49 |
46 .stabs "uint_least16_t:t(4,14)=(4,4)",128,0,167,0
|
|
|
50 |
47 .stabs "int_least32_t:t(4,15)=(4,5)",128,0,172,0
|
|
|
51 |
48 .stabs "uint_least32_t:t(4,16)=(4,6)",128,0,177,0
|
|
|
52 |
49 .stabs "int_least64_t:t(4,17)=(4,7)",128,0,182,0
|
|
|
53 |
50 .stabs "uint_least64_t:t(4,18)=(4,8)",128,0,187,0
|
|
|
54 |
51 .stabs "int_fast8_t:t(4,19)=(4,1)",128,0,200,0
|
|
|
55 |
52 .stabs "uint_fast8_t:t(4,20)=(4,2)",128,0,205,0
|
|
|
56 |
53 .stabs "int_fast16_t:t(4,21)=(4,3)",128,0,210,0
|
|
|
57 |
54 .stabs "uint_fast16_t:t(4,22)=(4,4)",128,0,215,0
|
|
|
58 |
55 .stabs "int_fast32_t:t(4,23)=(4,5)",128,0,220,0
|
|
|
59 |
56 .stabs "uint_fast32_t:t(4,24)=(4,6)",128,0,225,0
|
|
|
60 |
57 .stabs "int_fast64_t:t(4,25)=(4,7)",128,0,230,0
|
|
|
61 |
GAS LISTING /tmp/ccupeLRq.s page 2
|
151 |
kaklik |
62 |
|
|
|
63 |
|
484 |
kaklik |
64 |
58 .stabs "uint_fast64_t:t(4,26)=(4,8)",128,0,235,0
|
|
|
65 |
59 .stabs "intmax_t:t(4,27)=(4,7)",128,0,249,0
|
|
|
66 |
60 .stabs "uintmax_t:t(4,28)=(4,8)",128,0,254,0
|
|
|
67 |
61 .stabn 162,0,0,0
|
|
|
68 |
62 .stabs "int_farptr_t:t(3,1)=(4,5)",128,0,76,0
|
|
|
69 |
63 .stabs "uint_farptr_t:t(3,2)=(4,6)",128,0,80,0
|
|
|
70 |
64 .stabn 162,0,0,0
|
151 |
kaklik |
71 |
65 .stabn 162,0,0,0
|
|
|
72 |
66 .stabn 162,0,0,0
|
484 |
kaklik |
73 |
67 .stabs "/usr/lib/gcc/avr/4.2.1/../../../../avr/include/stdlib.h",130,0,0,0
|
|
|
74 |
68 .stabs "/usr/lib/gcc/avr/4.2.1/include/stddef.h",130,0,0,0
|
|
|
75 |
69 .stabs "size_t:t(6,1)=(0,4)",128,0,214,0
|
|
|
76 |
70 .stabs "wchar_t:t(6,2)=(0,1)",128,0,326,0
|
|
|
77 |
71 .stabn 162,0,0,0
|
|
|
78 |
72 .stabs "div_t:t(5,1)=(5,2)=s4quot:(0,1),0,16;rem:(0,1),16,16;;",128,0,69,0
|
|
|
79 |
73 .stabs "ldiv_t:t(5,3)=(5,4)=s8quot:(0,3),0,32;rem:(0,3),32,32;;",128,0,75,0
|
|
|
80 |
74 .stabs "__compar_fn_t:t(5,5)=(5,6)=*(5,7)=f(0,1)",128,0,78,0
|
|
|
81 |
75 .stabn 162,0,0,0
|
|
|
82 |
76 .stabs "I2CInterface.h",130,0,0,0
|
|
|
83 |
77 .stabs "CommonDefs.h",130,0,0,0
|
|
|
84 |
78 .stabs "bool_t:t(8,1)=(0,11)",128,0,56,0
|
|
|
85 |
79 .stabn 162,0,0,0
|
|
|
86 |
80 .stabs "i2cCmd_t:t(7,1)=(7,2)=s2configReg:(0,11),0,8;data:(0,11),8,8;;",128,0,53,0
|
|
|
87 |
81 .stabn 162,0,0,0
|
|
|
88 |
82 .stabs "main:F(0,1)",36,0,70,main
|
|
|
89 |
83 .global main
|
|
|
90 |
84 .type main, @function
|
|
|
91 |
85 main:
|
|
|
92 |
86 .stabd 46,0,0
|
151 |
kaklik |
93 |
1:Main.c **** /*
|
|
|
94 |
2:Main.c **** Copyright (C) 2004 John Orlando
|
|
|
95 |
3:Main.c ****
|
|
|
96 |
4:Main.c **** AVRcam: a small real-time image processing engine.
|
|
|
97 |
5:Main.c ****
|
|
|
98 |
6:Main.c **** This program is free software; you can redistribute it and/or
|
|
|
99 |
7:Main.c **** modify it under the terms of the GNU General Public
|
|
|
100 |
8:Main.c **** License as published by the Free Software Foundation; either
|
|
|
101 |
9:Main.c **** version 2 of the License, or (at your option) any later version.
|
|
|
102 |
10:Main.c ****
|
|
|
103 |
11:Main.c **** This program is distributed in the hope that it will be useful,
|
|
|
104 |
12:Main.c **** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
105 |
13:Main.c **** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
106 |
14:Main.c **** General Public License for more details.
|
|
|
107 |
15:Main.c ****
|
|
|
108 |
16:Main.c **** You should have received a copy of the GNU General Public
|
|
|
109 |
17:Main.c **** License along with this program; if not, write to the Free Software
|
|
|
110 |
18:Main.c **** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
111 |
19:Main.c ****
|
|
|
112 |
20:Main.c **** For more information on the AVRcam, please contact:
|
|
|
113 |
21:Main.c ****
|
|
|
114 |
22:Main.c **** john@jrobot.net
|
|
|
115 |
23:Main.c ****
|
|
|
116 |
24:Main.c **** or go to www.jrobot.net for more details regarding the system.
|
|
|
117 |
25:Main.c **** */
|
|
|
118 |
26:Main.c **** /***********************************************************
|
|
|
119 |
27:Main.c **** Module Name: Main.c
|
484 |
kaklik |
120 |
28:Main.c **** Module Date: 04/10/2004
|
|
|
121 |
GAS LISTING /tmp/ccupeLRq.s page 3
|
151 |
kaklik |
122 |
|
|
|
123 |
|
|
|
124 |
29:Main.c **** Module Auth: John Orlando
|
|
|
125 |
30:Main.c ****
|
|
|
126 |
31:Main.c **** Description: This module is responsible for providing
|
|
|
127 |
32:Main.c **** the entry point to the code through the "main" function.
|
|
|
128 |
33:Main.c ****
|
|
|
129 |
34:Main.c **** Revision History:
|
|
|
130 |
35:Main.c **** Date Rel Ver. Notes
|
|
|
131 |
36:Main.c **** 4/10/2004 0.1 Module created
|
|
|
132 |
37:Main.c **** 6/30/2004 1.0 Initial release for Circuit Cellar
|
|
|
133 |
38:Main.c **** contest.
|
|
|
134 |
39:Main.c **** ***********************************************************/
|
|
|
135 |
40:Main.c ****
|
|
|
136 |
41:Main.c **** /* Includes */
|
|
|
137 |
42:Main.c **** #include <avr/io.h>
|
|
|
138 |
43:Main.c **** #include <stdlib.h>
|
|
|
139 |
44:Main.c **** #include <string.h>
|
|
|
140 |
45:Main.c **** #include "UIMgr.h"
|
|
|
141 |
46:Main.c **** #include "UartInterface.h"
|
|
|
142 |
47:Main.c **** #include "I2CInterface.h"
|
|
|
143 |
48:Main.c **** #include "CamInterface.h"
|
|
|
144 |
49:Main.c **** #include "DebugInterface.h"
|
|
|
145 |
50:Main.c **** #include "FrameMgr.h"
|
|
|
146 |
51:Main.c **** #include "CommonDefs.h"
|
|
|
147 |
52:Main.c **** #include "CamConfig.h"
|
|
|
148 |
53:Main.c **** #include "Executive.h"
|
|
|
149 |
54:Main.c **** #include "Utility.h"
|
|
|
150 |
55:Main.c ****
|
|
|
151 |
56:Main.c **** /* Local Structures and Typedefs */
|
|
|
152 |
57:Main.c ****
|
|
|
153 |
58:Main.c **** /* Extern Variables */
|
|
|
154 |
59:Main.c ****
|
|
|
155 |
60:Main.c **** /* Definitions */
|
|
|
156 |
61:Main.c ****
|
|
|
157 |
62:Main.c **** /***********************************************************
|
|
|
158 |
63:Main.c **** Function Name: main
|
|
|
159 |
64:Main.c **** Function Description: This function provides the entry
|
|
|
160 |
65:Main.c **** point into AVRcam application.
|
|
|
161 |
66:Main.c **** Inputs: none
|
|
|
162 |
67:Main.c **** Outputs: int
|
|
|
163 |
68:Main.c **** ***********************************************************/
|
|
|
164 |
69:Main.c **** int main(void)
|
|
|
165 |
70:Main.c **** {
|
484 |
kaklik |
166 |
87 .stabn 68,0,70,.LM0-.LFBB1
|
|
|
167 |
88 .LM0:
|
|
|
168 |
89 .LFBB1:
|
151 |
kaklik |
169 |
90 /* prologue: frame size=0 */
|
|
|
170 |
91 0000 C0E0 ldi r28,lo8(__stack - 0)
|
|
|
171 |
92 0002 D0E0 ldi r29,hi8(__stack - 0)
|
|
|
172 |
93 0004 DEBF out __SP_H__,r29
|
|
|
173 |
94 0006 CDBF out __SP_L__,r28
|
|
|
174 |
95 /* prologue end (size=4) */
|
|
|
175 |
71:Main.c **** /* initialize all of the interface modules */
|
|
|
176 |
72:Main.c **** DebugInt_init();
|
484 |
kaklik |
177 |
96 .stabn 68,0,72,.LM1-.LFBB1
|
151 |
kaklik |
178 |
97 .LM1:
|
|
|
179 |
98 0008 00D0 rcall DebugInt_init
|
|
|
180 |
73:Main.c **** UartInt_init();
|
484 |
kaklik |
181 |
GAS LISTING /tmp/ccupeLRq.s page 4
|
151 |
kaklik |
182 |
|
|
|
183 |
|
484 |
kaklik |
184 |
99 .stabn 68,0,73,.LM2-.LFBB1
|
151 |
kaklik |
185 |
100 .LM2:
|
|
|
186 |
101 000a 00D0 rcall UartInt_init
|
|
|
187 |
74:Main.c **** I2CInt_init();
|
484 |
kaklik |
188 |
102 .stabn 68,0,74,.LM3-.LFBB1
|
151 |
kaklik |
189 |
103 .LM3:
|
|
|
190 |
104 000c 00D0 rcall I2CInt_init
|
|
|
191 |
75:Main.c **** CamInt_init();
|
484 |
kaklik |
192 |
105 .stabn 68,0,75,.LM4-.LFBB1
|
151 |
kaklik |
193 |
106 .LM4:
|
|
|
194 |
107 000e 00D0 rcall CamInt_init
|
|
|
195 |
76:Main.c ****
|
|
|
196 |
77:Main.c **** /* initialize the remaining modules that will process
|
|
|
197 |
78:Main.c **** data...interrupts need to be on for these */
|
|
|
198 |
79:Main.c **** ENABLE_INTS();
|
484 |
kaklik |
199 |
108 .stabn 68,0,79,.LM5-.LFBB1
|
151 |
kaklik |
200 |
109 .LM5:
|
|
|
201 |
110 /* #APP */
|
|
|
202 |
111 0010 7894 sei
|
|
|
203 |
80:Main.c **** CamConfig_init();
|
484 |
kaklik |
204 |
112 .stabn 68,0,80,.LM6-.LFBB1
|
151 |
kaklik |
205 |
113 .LM6:
|
|
|
206 |
114 /* #NOAPP */
|
|
|
207 |
115 0012 00D0 rcall CamConfig_init
|
|
|
208 |
81:Main.c **** UIMgr_init();
|
484 |
kaklik |
209 |
116 .stabn 68,0,81,.LM7-.LFBB1
|
151 |
kaklik |
210 |
117 .LM7:
|
|
|
211 |
118 0014 00D0 rcall UIMgr_init
|
|
|
212 |
82:Main.c **** FrameMgr_init();
|
484 |
kaklik |
213 |
119 .stabn 68,0,82,.LM8-.LFBB1
|
151 |
kaklik |
214 |
120 .LM8:
|
|
|
215 |
121 0016 00D0 rcall FrameMgr_init
|
|
|
216 |
83:Main.c ****
|
|
|
217 |
84:Main.c **** /* provide a short delay for the camera to stabilize before
|
|
|
218 |
85:Main.c **** we let the executive start up */
|
|
|
219 |
86:Main.c **** Utility_delay(1000);
|
484 |
kaklik |
220 |
122 .stabn 68,0,86,.LM9-.LFBB1
|
151 |
kaklik |
221 |
123 .LM9:
|
|
|
222 |
124 0018 88EE ldi r24,lo8(1000)
|
|
|
223 |
125 001a 93E0 ldi r25,hi8(1000)
|
|
|
224 |
126 001c 00D0 rcall Utility_delay
|
|
|
225 |
87:Main.c ****
|
|
|
226 |
88:Main.c **** /* the rest of the application will be under the
|
|
|
227 |
89:Main.c **** control of the Executive. */
|
|
|
228 |
90:Main.c **** Exec_run();
|
484 |
kaklik |
229 |
127 .stabn 68,0,90,.LM10-.LFBB1
|
151 |
kaklik |
230 |
128 .LM10:
|
|
|
231 |
129 001e 00D0 rcall Exec_run
|
|
|
232 |
91:Main.c ****
|
|
|
233 |
92:Main.c **** /* this should never be reached */
|
|
|
234 |
93:Main.c **** return(0);
|
|
|
235 |
94:Main.c **** }
|
484 |
kaklik |
236 |
130 .stabn 68,0,94,.LM11-.LFBB1
|
151 |
kaklik |
237 |
131 .LM11:
|
|
|
238 |
132 0020 80E0 ldi r24,lo8(0)
|
|
|
239 |
133 0022 90E0 ldi r25,hi8(0)
|
|
|
240 |
134 /* epilogue: frame size=0 */
|
484 |
kaklik |
241 |
GAS LISTING /tmp/ccupeLRq.s page 5
|
151 |
kaklik |
242 |
|
|
|
243 |
|
|
|
244 |
135 0024 00C0 rjmp exit
|
|
|
245 |
136 /* epilogue end (size=1) */
|
|
|
246 |
137 /* function main size 20 (15) */
|
|
|
247 |
138 .size main, .-main
|
484 |
kaklik |
248 |
139 .Lscope1:
|
|
|
249 |
140 .stabs "",36,0,0,.Lscope1-.LFBB1
|
151 |
kaklik |
250 |
141 .stabd 78,0,0
|
|
|
251 |
142 .stabs "",100,0,0,.Letext0
|
|
|
252 |
143 .Letext0:
|
|
|
253 |
144 /* File "Main.c": code 20 = 0x0014 ( 15), prologues 4, epilogues 1 */
|
484 |
kaklik |
254 |
GAS LISTING /tmp/ccupeLRq.s page 6
|
151 |
kaklik |
255 |
|
|
|
256 |
|
|
|
257 |
DEFINED SYMBOLS
|
|
|
258 |
*ABS*:00000000 Main.c
|
484 |
kaklik |
259 |
/tmp/ccupeLRq.s:2 *ABS*:0000003f __SREG__
|
|
|
260 |
/tmp/ccupeLRq.s:3 *ABS*:0000003e __SP_H__
|
|
|
261 |
/tmp/ccupeLRq.s:4 *ABS*:0000003d __SP_L__
|
|
|
262 |
/tmp/ccupeLRq.s:5 *ABS*:00000000 __tmp_reg__
|
|
|
263 |
/tmp/ccupeLRq.s:6 *ABS*:00000001 __zero_reg__
|
|
|
264 |
/tmp/ccupeLRq.s:85 .text:00000000 main
|
151 |
kaklik |
265 |
|
|
|
266 |
UNDEFINED SYMBOLS
|
|
|
267 |
__do_copy_data
|
|
|
268 |
__do_clear_bss
|
|
|
269 |
__stack
|
|
|
270 |
DebugInt_init
|
|
|
271 |
UartInt_init
|
|
|
272 |
I2CInt_init
|
|
|
273 |
CamInt_init
|
|
|
274 |
CamConfig_init
|
|
|
275 |
UIMgr_init
|
|
|
276 |
FrameMgr_init
|
|
|
277 |
Utility_delay
|
|
|
278 |
Exec_run
|
|
|
279 |
exit
|