本帖最后由 刘前辈 于 2011-4-17 20:18 编辑
根本没问题,main( )一启动运行,立即跳出来到0x081D 了。C:0x0809 020817 LJMP main(C:0817)
9: void delay_ns(unsigned int n)
10: {
11: while(n--);
C:0x080C EF MOV A,R7
C:0x080D 1F DEC R7
C:0x080E AC06 MOV R4,0x06
C:0x0810 7001 JNZ C:0813
C:0x0812 1E DEC R6
C:0x0813 4C ORL A,R4
C:0x0814 70F6 JNZ delay_ns(C:080C)
12: }
13:
14:
15:
C:0x0816 22 RET
16: void main()
17: {
18:
19: delay_ns(4);
20:
C:0x0817 7F04 MOV R7,#0x04
C:0x0819 7E00 MOV R6,#0x00
C:0x081B 110C ACALL delay_ns(C:080C)
21: while(1);
C:0x081D 80FE SJMP C:081D
C:0x081F 22 RET
C:0x0820 00 NOP
、、 |