;-------------------------delay routine begins--------------------------+
; from BLUEBOOK OF ASSEMBLY ROUTINES FOR IBM PC & XT.
;         page :169
; NAME DELAY
; ROUTINE FOR delaying a specified number of milliseconds
;
; FUNCTION: This routine delays a specified number of milliseconds
; INPUT: Upon call CX contains the number of milliseconds to delay
; OUTPUT: None
; REGISTERS USED:  None modified
; SEGMENTS REFERENCED:  None
; ROUTINES CALLED:  None
; SPECIAL NOTES: None
;
; Routine to delay a specified number of milliseconds
;
delay	proc	far
;
	push	cx		; save registers
;
delay1:
	push	cx		; save counter
	mov	cx,260		; timing constant
delay2:
	loop	delay2		; small loop
	pop	cx		; restore counter
	loop	delay1		; loop to count milliseconds
;
	pop	cx		; restore registers
	ret			; return
;
delay	endp
;-------------------------delay routine ends---------------------------+
