7: void delay(uint del)
8: {
9: while(--del);
C:0x0105 EF MOV A,R7
C:0x0106 1F DEC R7
C:0x0107 7001 JNZ C:010A
C:0x0109 1E DEC R6
C:0x010A 14 DEC A
C:0x010B 4E ORL A,R6
C:0x010C 70F7 JNZ delay(C:0105)
10: }
11:
C:0x010E 22 RET
12: void main(void)
13: {
14: delay(258);
C:0x010F 7F02 MOV R7,#0x02
C:0x0111 7E01 MOV R6,#0x01
C:0x0113 120105 LCALL delay(C:0105)
麻烦帮我看下delay中的汇编怎么工作的,还有为什么要ORL A,R6,感激不尽!!! |