Category : Assembly Language Source Code
Archive   : ASM_SUBR.ZIP
Filename : DELAY

 
Output of file : DELAY contained in archive : ASM_SUBR.ZIP
;-------------------------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---------------------------+


  3 Responses to “Category : Assembly Language Source Code
Archive   : ASM_SUBR.ZIP
Filename : DELAY

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/