|
assembly languaoge 8086 code to cause some delay. after some operation before start of next block of code
This is a very useful procedure
delay proc near ;requires delaytime
push ax bx cx dx si di
cmp delaytime,0
je delay_exit_12
mov si,0
loopdel:
mov cx,2000
loop $
inc si
mov dx,delaytime
cmp si,dx
jle loopdel
delay_exit_12:
pop di si dx cx bx ax
ret
endp
delaytime dw 0
|