嵌入式-C语言程序设计C语言程序设计C语言程序设计
源代码在线查看: delay100us.src
; .\delay100us.SRC generated from: delay100us.c
; COMPILER INVOKED BY:
; D:\Program Files\Keil\C51\BIN\C51.EXE delay100us.c BROWSE DEBUG OBJECTEXTEND SRC(.\delay100us.SRC)
NAME DELAY100US
?PR?delay100us?DELAY100US SEGMENT CODE
PUBLIC delay100us
; void delay100us()
RSEG ?PR?delay100us?DELAY100US
delay100us:
USING 0
; SOURCE LINE # 1
; {
; SOURCE LINE # 2
; int i;
; for(i=0;i++;i ; SOURCE LINE # 4
;---- Variable 'i?040' assigned to Register 'R6/R7' ----
CLR A
MOV R7,A
MOV R6,A
?C0001:
INC R7
MOV A,R7
MOV R4,AR6
JNZ ?C0005
INC R6
?C0005:
DEC A
ORL A,R4
JNZ ?C0001
;
; } ; SOURCE LINE # 6
?C0004:
RET
; END OF delay100us
END