home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / library / bluebook / asm-subr / cominit < prev    next >
Encoding:
Text File  |  1985-09-24  |  1.1 KB  |  36 lines

  1. ;-------------------------routine begins--------------------------+
  2. ; ROUTINE TO INITIALIZE COMMUNICATIONS LINE
  3. ;
  4. ; FUNCTION: This routine initializes one of the two communications
  5. ;           LINES.
  6. ; INPUT: Upon entry AL contains the initialization byte as follows:
  7. ;
  8. ;   7    6    5    4    3    2    1    0
  9. ; -baud rate-----     --parity----  -stop bit- -wordlength-
  10. ; 000 = 110        00 = none    0 = 1    10 = 7 bits
  11. ; 001 = 150        01 = odd    1 = 2    11 = 8 bits
  12. ; 010 = 300        10 = none
  13. ; 011 = 600        11 = even
  14. ; 100 = 1200
  15. ; 101 = 2400
  16. ; 110 = 4800
  17. ; 111 = 9600
  18. ;
  19. ; DX contains the unit number (0 for com1: and 1 for com2:).
  20. ; OUTPUT: Output is sent to the hardware controlling the specified
  21. ;         communications line.
  22. ; REGISTERS USED:  No registers are modified.
  23. ; SEGMENTS REFERENCED:  None
  24. ; ROUTINES CALLED:  BIOS interrupt 14h (RS232 I/O) is used.
  25. ; SPECIAL NOTES: None
  26. ;
  27. cominit    proc    far
  28. ;
  29.     mov    ah,0        ; initialize
  30.     int    14h        ; RS232 BIOS call
  31.     ret            ; return
  32. ;
  33. cominit    endp
  34. ;-------------------------routine ends---------------------------+
  35.