Statistics
| Revision:

root / demos / john / projects / libdragonfly / time.lst @ 1693

History | View | Annotate | Download (8.26 KB)

1
   1               		.file	"time.c"
2
   2               		.arch atmega128
3
   3               	__SREG__ = 0x3f
4
   4               	__SP_H__ = 0x3e
5
   5               	__SP_L__ = 0x3d
6
   6               	__tmp_reg__ = 0
7
   7               	__zero_reg__ = 1
8
   8               		.global __do_copy_data
9
   9               		.global __do_clear_bss
10
  17               	.Ltext0:
11
  18               	.global	delay_ms
12
  20               	delay_ms:
13
  21               	.LFB6:
14
  22               	.LM1:
15
  23               	/* prologue: frame size=0 */
16
  24               	/* prologue end (size=0) */
17
  25               	.LVL0:
18
  26 0000 9C01      		movw r18,r24
19
  27 0002 E0E4      		ldi r30,lo8(1600)
20
  28 0004 F6E0      		ldi r31,hi8(1600)
21
  29 0006 00C0      		rjmp .L2
22
  30               	.LVL1:
23
  31               	.L3:
24
  32               	.LBB4:
25
  33               	.LBB5:
26
  34               	.LM2:
27
  35 0008 CF01      		movw r24,r30
28
  36               	/* #APP */
29
  37 000a 0197      		1: sbiw r24,1
30
  38 000c 01F4      		brne 1b
31
  39               	/* #NOAPP */
32
  40               	.LBE5:
33
  41               	.LBE4:
34
  42               	.LM3:
35
  43 000e 2150      		subi r18,lo8(-(-1))
36
  44 0010 3040      		sbci r19,hi8(-(-1))
37
  45               	.LVL2:
38
  46               	.L2:
39
  47 0012 1216      		cp __zero_reg__,r18
40
  48 0014 1306      		cpc __zero_reg__,r19
41
  49 0016 04F0      		brlt .L3
42
  50               	/* epilogue: frame size=0 */
43
  51 0018 0895      		ret
44
  52               	/* epilogue end (size=1) */
45
  53               	/* function delay_ms size 15 (14) */
46
  54               	.LFE6:
47
  56               	.global	rtc_init
48
  58               	rtc_init:
49
  59               	.LFB7:
50
  60               	.LM4:
51
  61               	/* prologue: frame size=0 */
52
  62               	/* prologue end (size=0) */
53
  63               	.LVL3:
54
  64               	.LM5:
55
  65 001a 1092 8900 		sts (136)+1,__zero_reg__
56
  66 001e 1092 8800 		sts 136,__zero_reg__
57
  67               	.LM6:
58
  68 0022 EAE8      		ldi r30,lo8(138)
59
  69 0024 F0E0      		ldi r31,hi8(138)
60
  70 0026 2081      		ld r18,Z
61
  71 0028 2860      		ori r18,lo8(8)
62
  72 002a 2083      		st Z,r18
63
  73               	.LM7:
64
  74 002c 2081      		ld r18,Z
65
  75 002e 2260      		ori r18,lo8(2)
66
  76 0030 2083      		st Z,r18
67
  77               	.LM8:
68
  78 0032 24E2      		ldi r18,lo8(-3036)
69
  79 0034 34EF      		ldi r19,hi8(-3036)
70
  80 0036 3093 8700 		sts (134)+1,r19
71
  81 003a 2093 8600 		sts 134,r18
72
  82               	.LM9:
73
  83 003e EDE7      		ldi r30,lo8(125)
74
  84 0040 F0E0      		ldi r31,hi8(125)
75
  85 0042 2081      		ld r18,Z
76
  86 0044 2061      		ori r18,lo8(16)
77
  87 0046 2083      		st Z,r18
78
  88               	.LM10:
79
  89 0048 7093 0000 		sts (_rtc_f)+1,r23
80
  90 004c 6093 0000 		sts _rtc_f,r22
81
  91               	.LM11:
82
  92 0050 9093 0000 		sts (_rtc_scale)+1,r25
83
  93 0054 8093 0000 		sts _rtc_scale,r24
84
  94               	/* epilogue: frame size=0 */
85
  95 0058 0895      		ret
86
  96               	/* epilogue end (size=1) */
87
  97               	/* function rtc_init size 32 (31) */
88
  98               	.LFE7:
89
 100               	.global	rtc_get
90
 102               	rtc_get:
91
 103               	.LFB8:
92
 104               	.LM12:
93
 105               	/* prologue: frame size=0 */
94
 106               	/* prologue end (size=0) */
95
 107               	.LM13:
96
 108 005a 8091 0000 		lds r24,_rtc_val
97
 109 005e 9091 0000 		lds r25,(_rtc_val)+1
98
 110               	/* epilogue: frame size=0 */
99
 111 0062 0895      		ret
100
 112               	/* epilogue end (size=1) */
101
 113               	/* function rtc_get size 5 (4) */
102
 114               	.LFE8:
103
 116               	.global	rtc_reset
104
 118               	rtc_reset:
105
 119               	.LFB9:
106
 120               	.LM14:
107
 121               	/* prologue: frame size=0 */
108
 122               	/* prologue end (size=0) */
109
 123               	.LM15:
110
 124 0064 1092 0000 		sts (_rtc_val)+1,__zero_reg__
111
 125 0068 1092 0000 		sts _rtc_val,__zero_reg__
112
 126               	/* epilogue: frame size=0 */
113
 127 006c 0895      		ret
114
 128               	/* epilogue end (size=1) */
115
 129               	/* function rtc_reset size 5 (4) */
116
 130               	.LFE9:
117
 132               	.global	__vector_26
118
 134               	__vector_26:
119
 135               	.LFB10:
120
 136               	.LM16:
121
 137               	/* prologue: frame size=0 */
122
 138 006e 1F92      		push __zero_reg__
123
 139 0070 0F92      		push __tmp_reg__
124
 140 0072 0FB6      		in __tmp_reg__,__SREG__
125
 141 0074 0F92      		push __tmp_reg__
126
 142 0076 1124      		clr __zero_reg__
127
 143 0078 2F93      		push r18
128
 144 007a 3F93      		push r19
129
 145 007c 4F93      		push r20
130
 146 007e 5F93      		push r21
131
 147 0080 6F93      		push r22
132
 148 0082 7F93      		push r23
133
 149 0084 8F93      		push r24
134
 150 0086 9F93      		push r25
135
 151 0088 AF93      		push r26
136
 152 008a BF93      		push r27
137
 153 008c EF93      		push r30
138
 154 008e FF93      		push r31
139
 155               	/* prologue end (size=17) */
140
 156               	.LM17:
141
 157 0090 2091 0000 		lds r18,_rtc_pulse
142
 158 0094 3091 0000 		lds r19,(_rtc_pulse)+1
143
 159 0098 8091 0000 		lds r24,_rtc_scale
144
 160 009c 9091 0000 		lds r25,(_rtc_scale)+1
145
 161 00a0 2817      		cp r18,r24
146
 162 00a2 3907      		cpc r19,r25
147
 163 00a4 01F4      		brne .L13
148
 164               	.LM18:
149
 165 00a6 8091 0000 		lds r24,_rtc_val
150
 166 00aa 9091 0000 		lds r25,(_rtc_val)+1
151
 167 00ae 0196      		adiw r24,1
152
 168 00b0 9093 0000 		sts (_rtc_val)+1,r25
153
 169 00b4 8093 0000 		sts _rtc_val,r24
154
 170               	.LM19:
155
 171 00b8 E091 0000 		lds r30,_rtc_f
156
 172 00bc F091 0000 		lds r31,(_rtc_f)+1
157
 173 00c0 3097      		sbiw r30,0
158
 174 00c2 01F0      		breq .L15
159
 175               	.LM20:
160
 176 00c4 0995      		icall
161
 177               	.L15:
162
 178               	.LM21:
163
 179 00c6 1092 0000 		sts (_rtc_pulse)+1,__zero_reg__
164
 180 00ca 1092 0000 		sts _rtc_pulse,__zero_reg__
165
 181               	.L13:
166
 182               	.LM22:
167
 183 00ce 8091 0000 		lds r24,_rtc_pulse
168
 184 00d2 9091 0000 		lds r25,(_rtc_pulse)+1
169
 185 00d6 0196      		adiw r24,1
170
 186 00d8 9093 0000 		sts (_rtc_pulse)+1,r25
171
 187 00dc 8093 0000 		sts _rtc_pulse,r24
172
 188               	/* epilogue: frame size=0 */
173
 189 00e0 FF91      		pop r31
174
 190 00e2 EF91      		pop r30
175
 191 00e4 BF91      		pop r27
176
 192 00e6 AF91      		pop r26
177
 193 00e8 9F91      		pop r25
178
 194 00ea 8F91      		pop r24
179
 195 00ec 7F91      		pop r23
180
 196 00ee 6F91      		pop r22
181
 197 00f0 5F91      		pop r21
182
 198 00f2 4F91      		pop r20
183
 199 00f4 3F91      		pop r19
184
 200 00f6 2F91      		pop r18
185
 201 00f8 0F90      		pop __tmp_reg__
186
 202 00fa 0FBE      		out __SREG__,__tmp_reg__
187
 203 00fc 0F90      		pop __tmp_reg__
188
 204 00fe 1F90      		pop __zero_reg__
189
 205 0100 1895      		reti
190
 206               	/* epilogue end (size=17) */
191
 207               	/* function __vector_26 size 74 (40) */
192
 208               	.LFE10:
193
 210               		.lcomm _rtc_pulse,2
194
 211               		.data
195
 214               	_rtc_scale:
196
 215 0000 2000      		.word	32
197
 216               		.lcomm _rtc_val,2
198
 217               		.lcomm _rtc_f,2
199
 274               	.Letext0:
200
DEFINED SYMBOLS
201
                            *ABS*:00000000 time.c
202
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:3      *ABS*:0000003f __SREG__
203
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:4      *ABS*:0000003e __SP_H__
204
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:5      *ABS*:0000003d __SP_L__
205
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:6      *ABS*:00000000 __tmp_reg__
206
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:7      *ABS*:00000001 __zero_reg__
207
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:20     .text:00000000 delay_ms
208
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:58     .text:0000001a rtc_init
209
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:216    .bss:00000004 _rtc_f
210
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:214    .data:00000000 _rtc_scale
211
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:102    .text:0000005a rtc_get
212
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:210    .bss:00000002 _rtc_val
213
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:118    .text:00000064 rtc_reset
214
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccxFkKMe.s:134    .text:0000006e __vector_26
215
                             .bss:00000000 _rtc_pulse
216

    
217
UNDEFINED SYMBOLS
218
__do_copy_data
219
__do_clear_bss