|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2013-9-25 14:07:07
|
显示全部楼层
经跟踪是函数返回时跑分,原因未知,请大家帮分析下
00000063: E0D5 LDI R29,0x05 Load immediate
+00000064: 940C006A JMP 0x0000006A Jump
@00000066: usart_init
---- SOUR\main.c ----------------------------------------------------------------------------------
3: UCSR1A=0x01; //多机方式
+00000066: E0E1 LDI R30,0x01 Load immediate
+00000067: 93E0009B STS 0x009B,R30 Store direct to data space
---- No Source ------------------------------------------------------------------------------------
+00000069: 9508 RET Subroutine return
@0000006A: main
---- SOUR\main.c ----------------------------------------------------------------------------------
7: usart_init();//11
+0000006A: 940E0066 CALL 0x00000066 Call subroutine
8: usart_init();//12
+0000006C: 940E0066 CALL 0x00000066 Call subroutine
10: usart_init();
+0000006E: 940E0066 CALL 0x00000066 Call subroutine
+00000070: CFFD RJMP PC-0x0002 Relative jump
---- No Source ---------------------------------------------------
执行下面语句后跑飞
+00000069: 9508 RET Subroutine return |
|