Statistics
| Revision:

root / demos / john / projects / libwireless / lib / wl_basic.lst @ 1693

History | View | Annotate | Download (8.12 KB)

1
   1               		.file	"wl_basic.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
  10               		.text
11
  11               	.global	wl_basic_packet_receive_handler
12
  13               	wl_basic_packet_receive_handler:
13
  14               	/* prologue: frame size=0 */
14
  15               	/* prologue end (size=0) */
15
  16 0000 91E0      		ldi r25,lo8(1)
16
  17 0002 9093 0000 		sts current_packet,r25
17
  18 0006 8093 0000 		sts current_packet+1,r24
18
  19 000a 7093 0000 		sts (current_packet+2)+1,r23
19
  20 000e 6093 0000 		sts current_packet+2,r22
20
  21 0012 5093 0000 		sts (current_packet+4)+1,r21
21
  22 0016 4093 0000 		sts current_packet+4,r20
22
  23 001a 3093 0000 		sts (current_packet+6)+1,r19
23
  24 001e 2093 0000 		sts current_packet+6,r18
24
  25               	/* epilogue: frame size=0 */
25
  26 0022 0895      		ret
26
  27               	/* epilogue end (size=1) */
27
  28               	/* function wl_basic_packet_receive_handler size 18 (17) */
28
  30               	.global	wl_basic_do_default
29
  32               	wl_basic_do_default:
30
  33               	/* prologue: frame size=0 */
31
  34 0024 CF93      		push r28
32
  35 0026 DF93      		push r29
33
  36               	/* prologue end (size=2) */
34
  37 0028 EC01      		movw r28,r24
35
  38 002a 0E94 0000 		call wl_do
36
  39 002e 8091 0000 		lds r24,current_packet
37
  40 0032 8130      		cpi r24,lo8(1)
38
  41 0034 01F0      		breq .L4
39
  42 0036 80E0      		ldi r24,lo8(0)
40
  43 0038 90E0      		ldi r25,hi8(0)
41
  44 003a 00C0      		rjmp .L6
42
  45               	.L4:
43
  46 003c 1092 0000 		sts current_packet,__zero_reg__
44
  47 0040 8091 0000 		lds r24,current_packet+6
45
  48 0044 9091 0000 		lds r25,(current_packet+6)+1
46
  49 0048 9983      		std Y+1,r25
47
  50 004a 8883      		st Y,r24
48
  51 004c 8091 0000 		lds r24,current_packet+4
49
  52 0050 9091 0000 		lds r25,(current_packet+4)+1
50
  53               	.L6:
51
  54               	/* epilogue: frame size=0 */
52
  55 0054 DF91      		pop r29
53
  56 0056 CF91      		pop r28
54
  57 0058 0895      		ret
55
  58               	/* epilogue end (size=3) */
56
  59               	/* function wl_basic_do_default size 27 (22) */
57
  61               	.global	wl_basic_send_global_packet
58
  63               	wl_basic_send_global_packet:
59
  64               	/* prologue: frame size=0 */
60
  65 005a 0F93      		push r16
61
  66               	/* prologue end (size=1) */
62
  67 005c 9A01      		movw r18,r20
63
  68 005e 00E0      		ldi r16,lo8(0)
64
  69 0060 AB01      		movw r20,r22
65
  70 0062 682F      		mov r22,r24
66
  71 0064 88E0      		ldi r24,lo8(8)
67
  72 0066 0E94 0000 		call wl_send_global_packet
68
  73               	/* epilogue: frame size=0 */
69
  74 006a 0F91      		pop r16
70
  75 006c 0895      		ret
71
  76               	/* epilogue end (size=2) */
72
  77               	/* function wl_basic_send_global_packet size 10 (7) */
73
  79               	.global	wl_basic_send_robot_packet
74
  81               	wl_basic_send_robot_packet:
75
  82               	/* prologue: frame size=0 */
76
  83 006e EF92      		push r14
77
  84 0070 0F93      		push r16
78
  85 0072 1F93      		push r17
79
  86               	/* prologue end (size=3) */
80
  87 0074 EE24      		clr r14
81
  88 0076 8901      		movw r16,r18
82
  89 0078 9A01      		movw r18,r20
83
  90 007a AB01      		movw r20,r22
84
  91 007c 682F      		mov r22,r24
85
  92 007e 88E0      		ldi r24,lo8(8)
86
  93 0080 0E94 0000 		call wl_send_robot_to_robot_global_packet
87
  94               	/* epilogue: frame size=0 */
88
  95 0084 1F91      		pop r17
89
  96 0086 0F91      		pop r16
90
  97 0088 EF90      		pop r14
91
  98 008a 0895      		ret
92
  99               	/* epilogue end (size=4) */
93
 100               	/* function wl_basic_send_robot_packet size 15 (8) */
94
 102               	.global	wl_basic_register_handler
95
 104               	wl_basic_register_handler:
96
 105               	/* prologue: frame size=0 */
97
 106               	/* prologue end (size=0) */
98
 107 008c 28E0      		ldi r18,lo8(8)
99
 108 008e 30E0      		ldi r19,hi8(8)
100
 109 0090 3093 0000 		sts (wl_basic_group_handler)+1,r19
101
 110 0094 2093 0000 		sts wl_basic_group_handler,r18
102
 111 0098 1092 0000 		sts (wl_basic_group_handler+2)+1,__zero_reg__
103
 112 009c 1092 0000 		sts wl_basic_group_handler+2,__zero_reg__
104
 113 00a0 1092 0000 		sts (wl_basic_group_handler+4)+1,__zero_reg__
105
 114 00a4 1092 0000 		sts wl_basic_group_handler+4,__zero_reg__
106
 115 00a8 9093 0000 		sts (wl_basic_group_handler+6)+1,r25
107
 116 00ac 8093 0000 		sts wl_basic_group_handler+6,r24
108
 117 00b0 1092 0000 		sts (wl_basic_group_handler+8)+1,__zero_reg__
109
 118 00b4 1092 0000 		sts wl_basic_group_handler+8,__zero_reg__
110
 119 00b8 80E0      		ldi r24,lo8(wl_basic_group_handler)
111
 120 00ba 90E0      		ldi r25,hi8(wl_basic_group_handler)
112
 121 00bc 0E94 0000 		call wl_register_packet_group
113
 122               	/* epilogue: frame size=0 */
114
 123 00c0 0895      		ret
115
 124               	/* epilogue end (size=1) */
116
 125               	/* function wl_basic_register_handler size 27 (26) */
117
 127               	.global	wl_basic_init
118
 129               	wl_basic_init:
119
 130               	/* prologue: frame size=0 */
120
 131 00c2 EF92      		push r14
121
 132 00c4 FF92      		push r15
122
 133 00c6 0F93      		push r16
123
 134 00c8 1F93      		push r17
124
 135               	/* prologue end (size=4) */
125
 136 00ca 8C01      		movw r16,r24
126
 137 00cc 0E94 0000 		call wl_init
127
 138 00d0 7C01      		movw r14,r24
128
 139 00d2 C801      		movw r24,r16
129
 140 00d4 0E94 0000 		call wl_basic_register_handler
130
 141 00d8 1092 0000 		sts current_packet,__zero_reg__
131
 142 00dc C701      		movw r24,r14
132
 143               	/* epilogue: frame size=0 */
133
 144 00de 1F91      		pop r17
134
 145 00e0 0F91      		pop r16
135
 146 00e2 FF90      		pop r15
136
 147 00e4 EF90      		pop r14
137
 148 00e6 0895      		ret
138
 149               	/* epilogue end (size=5) */
139
 150               	/* function wl_basic_init size 19 (10) */
140
 152               	.global	wl_basic_init_default
141
 154               	wl_basic_init_default:
142
 155               	/* prologue: frame size=0 */
143
 156               	/* prologue end (size=0) */
144
 157 00e8 80E0      		ldi r24,lo8(gs(wl_basic_packet_receive_handler))
145
 158 00ea 90E0      		ldi r25,hi8(gs(wl_basic_packet_receive_handler))
146
 159 00ec 0E94 0000 		call wl_basic_init
147
 160               	/* epilogue: frame size=0 */
148
 161 00f0 0895      		ret
149
 162               	/* epilogue end (size=1) */
150
 163               	/* function wl_basic_init_default size 5 (4) */
151
 165               		.comm wl_basic_group_handler,10,1
152
 166               		.comm current_packet,8,1
153
 167               	/* File "wl_basic.c": code  121 = 0x0079 (  94), prologues  10, epilogues  17 */
154
DEFINED SYMBOLS
155
                            *ABS*:00000000 wl_basic.c
156
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:3      *ABS*:0000003f __SREG__
157
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:4      *ABS*:0000003e __SP_H__
158
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:5      *ABS*:0000003d __SP_L__
159
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:6      *ABS*:00000000 __tmp_reg__
160
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:7      *ABS*:00000001 __zero_reg__
161
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:13     .text:00000000 wl_basic_packet_receive_handler
162
                            *COM*:00000008 current_packet
163
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:32     .text:00000024 wl_basic_do_default
164
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:63     .text:0000005a wl_basic_send_global_packet
165
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:81     .text:0000006e wl_basic_send_robot_packet
166
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:104    .text:0000008c wl_basic_register_handler
167
                            *COM*:0000000a wl_basic_group_handler
168
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:129    .text:000000c2 wl_basic_init
169
F:\DOCUME~1\Evan\LOCALS~1\Temp/ccgiM73B.s:154    .text:000000e8 wl_basic_init_default
170

    
171
UNDEFINED SYMBOLS
172
__do_copy_data
173
__do_clear_bss
174
wl_do
175
wl_send_global_packet
176
wl_send_robot_to_robot_global_packet
177
wl_register_packet_group
178
wl_init