?? sdelay.asm
字號:
NAME SOFTDELAY
;==========================================
; 軟件延時
;==========================================
;void delay10us()
?PR?DELAY10US?DELAY10US SEGMENT CODE
public DELAY10US,DELAY1MS
RSEG ?PR?DELAY10US?DELAY10US
;call this function ;2
DELAY10US:
NOP
NOP
NOP
NOP
NOP
NOP
RET ;2
;call this function ;2
DELAY1MS:
MOV R4,#5 ;1
LP: MOV R5,#98 ;1
DJNZ R5,$ ;2
DJNZ R4,LP ;2
RET ;2
END
; 2+1+(1+2*y+2)*x+2=1000
; x=5 y=98
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -