Category : Assembly Language Source Code
Archive   : ASM-SUBR.ZIP
Filename : COMOFF

 
Output of file : COMOFF contained in archive : ASM-SUBR.ZIP
;-------------------------comoff routine begins--------------------------+
; from BLUEBOOK OF ASSEMBLY ROUTINES FOR IBM PC & XT.
; page : 38
;
; NAME COMOFF
; ROUTINE FOR COMMUNICATIONS LINE OFF
;
; FUNCTION: This routine turns off the handshaking signal DTR (line 20)
; on the specified communications line. RTS (line 4) is kept as it was.
; INPUT: Upon entry DX contains the unit number (0 for comm1: and 1 for
; comm2:).
; OUTPUT: Just to the communications line.
; REGISTERS USED: No registers modified. DX is used for input.
; SEGMENTS REFERENCED: During the routine the system data segment is
; referenced.
; ROUTINES CALLED: None
; SPECIAL NOTES: None
;
; ROUTINE TO TURN OFF INPUT FROM A COMMUNICATIONS LINE
;
comoff proc far
;
push ds ; save registers
push dx
push si
;
mov si,dx ; look up address of comm line
add si,si ; double to index into table
mov dx,40h ; segment of system I/O table
mov ds,dx ; set data segment to this table
mov dx,[si] ; look up data
add dx,4 ; modem control register
mov al,2 ; clear DTR (line 20)
out dx,al ; send out control byte
;
pop si ; restore registers
pop dx
pop ds
ret ; return
;
comoff endp
;-------------------------comoff routine ends---------------------------+


  3 Responses to “Category : Assembly Language Source Code
Archive   : ASM-SUBR.ZIP
Filename : COMOFF

  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/