home *** CD-ROM | disk | FTP | other *** search
- ;-------------------------routine begins--------------------------+
- ; ROUTINE FOR DIRECT CONSOLE OUTPUT
- ;
- ; FUNCTION: This routine sends individual out the standard output
- ; device using direct output.
- ; INPUT: Upon entry an ASII char is in AL.
- ; OUTPUT: A single character is output through the direct standard
- ; output.
- ; REGISTERS USED: AH is modified. AL is used for input.
- ; SEGMENTS REFERENCED: None
- ; ROUTINES CALLED: DOS call number 6 (direct console I/O) is used.
- ; SPECIAL NOTES: None
- ;
- stdoutdr proc far
- push dx ; save registers
- ;
- cmp al,0FFh ; check for the one case of input.
- je stdoutdrexit
- mov dl,al ; in DL for DOS call
- mov ah,6 ; direct console input
- int 21h ; DOS call
- ;
- stdoutdrexit:
- pop dx ; restore registers
- ret ; return
- stdoutdr endp
- ;-------------------------routine ends---------------------------+