📄 communicate.lss
字号:
communicate.elf: file format elf32-avr
Sections:
Idx Name Size VMA LMA File off Algn
0 .data 00000000 00800100 00000148 000001dc 2**0
CONTENTS, ALLOC, LOAD, DATA
1 .text 00000148 00000000 00000000 00000094 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .bss 00000000 00800100 00000148 000001dc 2**0
ALLOC
3 .noinit 00000000 00800100 00800100 000001dc 2**0
CONTENTS
4 .eeprom 00000000 00810000 00810000 000001dc 2**0
CONTENTS
5 .stab 0000045c 00000000 00000000 000001dc 2**2
CONTENTS, READONLY, DEBUGGING
6 .stabstr 0000066c 00000000 00000000 00000638 2**0
CONTENTS, READONLY, DEBUGGING
Disassembly of section .text:
00000000 <__vectors>:
0: 0c 94 46 00 jmp 0x8c
4: 0c 94 63 00 jmp 0xc6
8: 0c 94 63 00 jmp 0xc6
c: 0c 94 63 00 jmp 0xc6
10: 0c 94 63 00 jmp 0xc6
14: 0c 94 63 00 jmp 0xc6
18: 0c 94 63 00 jmp 0xc6
1c: 0c 94 63 00 jmp 0xc6
20: 0c 94 63 00 jmp 0xc6
24: 0c 94 63 00 jmp 0xc6
28: 0c 94 63 00 jmp 0xc6
2c: 0c 94 63 00 jmp 0xc6
30: 0c 94 63 00 jmp 0xc6
34: 0c 94 63 00 jmp 0xc6
38: 0c 94 63 00 jmp 0xc6
3c: 0c 94 63 00 jmp 0xc6
40: 0c 94 63 00 jmp 0xc6
44: 0c 94 63 00 jmp 0xc6
48: 0c 94 63 00 jmp 0xc6
4c: 0c 94 63 00 jmp 0xc6
50: 0c 94 63 00 jmp 0xc6
54: 0c 94 63 00 jmp 0xc6
58: 0c 94 63 00 jmp 0xc6
5c: 0c 94 63 00 jmp 0xc6
60: 0c 94 63 00 jmp 0xc6
64: 0c 94 63 00 jmp 0xc6
68: 0c 94 63 00 jmp 0xc6
6c: 0c 94 63 00 jmp 0xc6
70: 0c 94 63 00 jmp 0xc6
74: 0c 94 63 00 jmp 0xc6
78: 0c 94 63 00 jmp 0xc6
7c: 0c 94 63 00 jmp 0xc6
80: 0c 94 63 00 jmp 0xc6
84: 0c 94 63 00 jmp 0xc6
88: 0c 94 63 00 jmp 0xc6
0000008c <__ctors_end>:
8c: 11 24 eor r1, r1
8e: 1f be out 0x3f, r1 ; 63
90: cf ef ldi r28, 0xFF ; 255
92: d0 e1 ldi r29, 0x10 ; 16
94: de bf out 0x3e, r29 ; 62
96: cd bf out 0x3d, r28 ; 61
00000098 <__do_copy_data>:
98: 11 e0 ldi r17, 0x01 ; 1
9a: a0 e0 ldi r26, 0x00 ; 0
9c: b1 e0 ldi r27, 0x01 ; 1
9e: e8 e4 ldi r30, 0x48 ; 72
a0: f1 e0 ldi r31, 0x01 ; 1
a2: 00 e0 ldi r16, 0x00 ; 0
a4: 0b bf out 0x3b, r16 ; 59
a6: 02 c0 rjmp .+4 ; 0xac
000000a8 <.__do_copy_data_loop>:
a8: 07 90 elpm r0, Z+
aa: 0d 92 st X+, r0
000000ac <.__do_copy_data_start>:
ac: a0 30 cpi r26, 0x00 ; 0
ae: b1 07 cpc r27, r17
b0: d9 f7 brne .-10 ; 0xa8
000000b2 <__do_clear_bss>:
b2: 11 e0 ldi r17, 0x01 ; 1
b4: a0 e0 ldi r26, 0x00 ; 0
b6: b1 e0 ldi r27, 0x01 ; 1
b8: 01 c0 rjmp .+2 ; 0xbc
000000ba <.do_clear_bss_loop>:
ba: 1d 92 st X+, r1
000000bc <.do_clear_bss_start>:
bc: a0 30 cpi r26, 0x00 ; 0
be: b1 07 cpc r27, r17
c0: e1 f7 brne .-8 ; 0xba
c2: 0c 94 65 00 jmp 0xca
000000c6 <__bad_interrupt>:
c6: 0c 94 00 00 jmp 0x0
000000ca <main>:
int main(void)
{
ca: cf ef ldi r28, 0xFF ; 255
cc: d0 e1 ldi r29, 0x10 ; 16
ce: de bf out 0x3e, r29 ; 62
d0: cd bf out 0x3d, r28 ; 61
cli(); // 端口初始化
d2: f8 94 cli
PORTA=0xFF;
d4: 8f ef ldi r24, 0xFF ; 255
d6: 8b bb out 0x1b, r24 ; 27
PORTB=0xFF;
d8: 88 bb out 0x18, r24 ; 24
PORTC=0xFF;
da: 85 bb out 0x15, r24 ; 21
PORTD=0xFF;
dc: 82 bb out 0x12, r24 ; 18
PORTE=0xFF;
de: 83 b9 out 0x03, r24 ; 3
PORTF=0xFF;
e0: 80 93 62 00 sts 0x0062, r24
PORTG=0xFF;
e4: 80 93 65 00 sts 0x0065, r24
DDRD=0xD0;
e8: 90 ed ldi r25, 0xD0 ; 208
ea: 91 bb out 0x11, r25 ; 17
DDRA=0xFF;
ec: 8a bb out 0x1a, r24 ; 26
DDRB=0x08; //MISO=output and MOSI,SCK,SS = input
ee: 88 e0 ldi r24, 0x08 ; 8
f0: 87 bb out 0x17, r24 ; 23
PORTB=0x00; //MISO上拉电阻有效
f2: 18 ba out 0x18, r1 ; 24
sei();
f4: 78 94 sei
f6: 58 ef ldi r21, 0xF8 ; 248
f8: 4f ef ldi r20, 0xFF ; 255
while(1)
{
if(PORTA==0xFF)
fa: 8b b3 in r24, 0x1b ; 27
fc: 8f 3f cpi r24, 0xFF ; 255
fe: 11 f4 brne .+4 ; 0x104
PORTA=0xF8;
100: 5b bb out 0x1b, r21 ; 27
102: 01 c0 rjmp .+2 ; 0x106
else
PORTA=0xFF;
104: 4b bb out 0x1b, r20 ; 27
106: a0 e0 ldi r26, 0x00 ; 0
108: b8 e4 ldi r27, 0x48 ; 72
10a: c0 e0 ldi r28, 0x00 ; 0
10c: d0 e0 ldi r29, 0x00 ; 0
10e: 23 e1 ldi r18, 0x13 ; 19
110: 30 e0 ldi r19, 0x00 ; 0
*/
static __inline__ void
_delay_loop_2(uint16_t __count)
{
__asm__ volatile (
112: cd 01 movw r24, r26
114: 01 97 sbiw r24, 0x01 ; 1
116: f1 f7 brne .-4 ; 0x114
for(int k=0;k<20;k++)
118: 21 50 subi r18, 0x01 ; 1
11a: 30 40 sbci r19, 0x00 ; 0
11c: 37 ff sbrs r19, 7
11e: f9 cf rjmp .-14 ; 0x112
_delay_ms(10);
if(PORTA==0xFF)
120: 8b b3 in r24, 0x1b ; 27
122: 8f 3f cpi r24, 0xFF ; 255
124: 11 f4 brne .+4 ; 0x12a
PORTA=0xF8;
126: 5b bb out 0x1b, r21 ; 27
128: 01 c0 rjmp .+2 ; 0x12c
else
PORTA=0xFF;
12a: 4b bb out 0x1b, r20 ; 27
12c: a0 e0 ldi r26, 0x00 ; 0
12e: b8 e4 ldi r27, 0x48 ; 72
130: c0 e0 ldi r28, 0x00 ; 0
132: d0 e0 ldi r29, 0x00 ; 0
134: 23 e1 ldi r18, 0x13 ; 19
136: 30 e0 ldi r19, 0x00 ; 0
*/
static __inline__ void
_delay_loop_2(uint16_t __count)
{
__asm__ volatile (
138: cd 01 movw r24, r26
13a: 01 97 sbiw r24, 0x01 ; 1
13c: f1 f7 brne .-4 ; 0x13a
for(int k=0;k<20;k++)
13e: 21 50 subi r18, 0x01 ; 1
140: 30 40 sbci r19, 0x00 ; 0
142: 37 ff sbrs r19, 7
144: f9 cf rjmp .-14 ; 0x138
146: d9 cf rjmp .-78 ; 0xfa
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -