Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
111 | mikeljo | 1 | 1 .file "timer.c" |
2 | 2 .arch atmega32 |
||
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 __vector_10 |
||
12 | 20 __vector_10: |
||
13 | 21 .LFB2: |
||
14 | 22 .LM1: |
||
15 | 23 /* prologue: frame size=0 */ |
||
16 | 24 0000 1F92 push __zero_reg__ |
||
17 | 25 0002 0F92 push __tmp_reg__ |
||
18 | 26 0004 0FB6 in __tmp_reg__,__SREG__ |
||
19 | 27 0006 0F92 push __tmp_reg__ |
||
20 | 28 0008 1124 clr __zero_reg__ |
||
21 | 29 000a 8F93 push r24 |
||
22 | 30 000c 9F93 push r25 |
||
23 | 31 /* prologue end (size=7) */ |
||
24 | 32 .LM2: |
||
25 | 33 000e 8091 0000 lds r24,counter |
||
26 | 34 0012 8823 tst r24 |
||
27 | 35 0014 31F0 breq .L2 |
||
28 | 36 .LM3: |
||
29 | 37 0016 8091 0000 lds r24,counter |
||
30 | 38 001a 8150 subi r24,lo8(-(-1)) |
||
31 | 39 001c 8093 0000 sts counter,r24 |
||
32 | 40 0020 15C0 rjmp .L3 |
||
33 | 41 .L2: |
||
34 | 42 .LM4: |
||
35 | 43 0022 8AE0 ldi r24,lo8(10) |
||
36 | 44 0024 8093 0000 sts counter,r24 |
||
37 | 45 .LM5: |
||
38 | 46 0028 89B3 in r24,57-0x20 |
||
39 | 47 002a 9927 clr r25 |
||
40 | 48 002c 8095 com r24 |
||
41 | 49 002e 9095 com r25 |
||
42 | 50 0030 6894 set |
||
43 | 51 0032 13F8 bld __zero_reg__,4-1 |
||
44 | 52 0034 9595 1: asr r25 |
||
45 | 53 0036 8795 ror r24 |
||
46 | 54 0038 1694 lsr __zero_reg__ |
||
47 | 55 003a E1F7 brne 1b |
||
48 | 56 003c 8F70 andi r24,lo8(15) |
||
49 | 57 003e 8093 0000 sts key,r24 |
||
50 | 58 .LM6: |
||
51 | 59 0042 8091 0000 lds r24,counter2 |
||
52 | 60 0046 8F5F subi r24,lo8(-(1)) |
||
53 | 61 0048 8093 0000 sts counter2,r24 |
||
54 | 62 .L3: |
||
55 | 63 .LM7: |
||
56 | 64 004c 8091 0000 lds r24,timer |
||
57 | 65 0050 8823 tst r24 |
||
58 | 66 0052 29F0 breq .L4 |
||
59 | 67 .LM8: |
||
60 | 68 0054 8091 0000 lds r24,timer |
||
61 | 69 0058 8150 subi r24,lo8(-(-1)) |
||
62 | 70 005a 8093 0000 sts timer,r24 |
||
63 | 71 .L4: |
||
64 | 72 .LM9: |
||
65 | 73 005e 8091 0000 lds r24,rs232_timer |
||
66 | 74 0062 8823 tst r24 |
||
67 | 75 0064 29F0 breq .L1 |
||
68 | 76 .LM10: |
||
69 | 77 0066 8091 0000 lds r24,rs232_timer |
||
70 | 78 006a 8150 subi r24,lo8(-(-1)) |
||
71 | 79 006c 8093 0000 sts rs232_timer,r24 |
||
72 | 80 .L1: |
||
73 | 81 /* epilogue: frame size=0 */ |
||
74 | 82 0070 9F91 pop r25 |
||
75 | 83 0072 8F91 pop r24 |
||
76 | 84 0074 0F90 pop __tmp_reg__ |
||
77 | 85 0076 0FBE out __SREG__,__tmp_reg__ |
||
78 | 86 0078 0F90 pop __tmp_reg__ |
||
79 | 87 007a 1F90 pop __zero_reg__ |
||
80 | 88 007c 1895 reti |
||
81 | 89 /* epilogue end (size=7) */ |
||
82 | 90 /* function __vector_10 size 63 (49) */ |
||
83 | 91 .LFE2: |
||
84 | 93 .global timer_init |
||
85 | 95 timer_init: |
||
86 | 96 .LFB3: |
||
87 | 97 .LM11: |
||
88 | 98 /* prologue: frame size=0 */ |
||
89 | 99 /* prologue end (size=0) */ |
||
90 | 100 .LM12: |
||
91 | 101 007e 8DE0 ldi r24,lo8(13) |
||
92 | 102 0080 83BF out 83-0x20,r24 |
||
93 | 103 .LM13: |
||
94 | 104 0082 88E4 ldi r24,lo8(72) |
||
95 | 105 0084 8CBF out 92-0x20,r24 |
||
96 | 106 .LM14: |
||
97 | 107 0086 89B7 in r24,89-0x20 |
||
98 | 108 0088 8260 ori r24,lo8(2) |
||
99 | 109 008a 89BF out 89-0x20,r24 |
||
100 | 110 /* epilogue: frame size=0 */ |
||
101 | 111 008c 0895 ret |
||
102 | 112 /* epilogue end (size=1) */ |
||
103 | 113 /* function timer_init size 8 (7) */ |
||
104 | 114 .LFE3: |
||
105 | 116 .comm key,1,1 |
||
106 | 117 .comm timer,1,1 |
||
107 | 118 .comm rs232_timer,1,1 |
||
108 | 119 .comm counter,1,1 |
||
109 | 120 .comm counter2,1,1 |
||
110 | 121 .Letext0: |
||
111 | DEFINED SYMBOLS |
||
112 | *ABS*:00000000 timer.c |
||
113 | C:\DOKUME~1\thomas\LOKALE~1\Temp/ccWeaaaa.s:3 *ABS*:0000003f __SREG__ |
||
114 | C:\DOKUME~1\thomas\LOKALE~1\Temp/ccWeaaaa.s:4 *ABS*:0000003e __SP_H__ |
||
115 | C:\DOKUME~1\thomas\LOKALE~1\Temp/ccWeaaaa.s:5 *ABS*:0000003d __SP_L__ |
||
116 | C:\DOKUME~1\thomas\LOKALE~1\Temp/ccWeaaaa.s:6 *ABS*:00000000 __tmp_reg__ |
||
117 | C:\DOKUME~1\thomas\LOKALE~1\Temp/ccWeaaaa.s:7 *ABS*:00000001 __zero_reg__ |
||
118 | C:\DOKUME~1\thomas\LOKALE~1\Temp/ccWeaaaa.s:20 .text:00000000 __vector_10 |
||
119 | *COM*:00000001 counter |
||
120 | *COM*:00000001 key |
||
121 | *COM*:00000001 counter2 |
||
122 | *COM*:00000001 timer |
||
123 | *COM*:00000001 rs232_timer |
||
124 | C:\DOKUME~1\thomas\LOKALE~1\Temp/ccWeaaaa.s:95 .text:0000007e timer_init |
||
125 | |||
126 | UNDEFINED SYMBOLS |
||
127 | __do_copy_data |
||
128 | __do_clear_bss |