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

 
Output of file : COMINIT contained in archive : ASM-SUBR.ZIP
;-------------------------routine begins--------------------------+
; ROUTINE TO INITIALIZE COMMUNICATIONS LINE
;
; FUNCTION: This routine initializes one of the two communications
; LINES.
; INPUT: Upon entry AL contains the initialization byte as follows:
;
; 7 6 5 4 3 2 1 0
; -baud rate----- --parity---- -stop bit- -wordlength-
; 000 = 110 00 = none 0 = 1 10 = 7 bits
; 001 = 150 01 = odd 1 = 2 11 = 8 bits
; 010 = 300 10 = none
; 011 = 600 11 = even
; 100 = 1200
; 101 = 2400
; 110 = 4800
; 111 = 9600
;
; DX contains the unit number (0 for com1: and 1 for com2:).
;
; OUTPUT: Output is sent to the hardware controlling the specified
; communications line.
; REGISTERS USED: No registers are modified.
; SEGMENTS REFERENCED: None
; ROUTINES CALLED: BIOS interrupt 14h (RS232 I/O) is used.
; SPECIAL NOTES: None
;
cominit proc far
;
mov ah,0 ; initialize
int 14h ; RS232 BIOS call
ret ; return
;
cominit endp
;-------------------------routine ends---------------------------+


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

  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/