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

  1. ;-------------------------routine begins--------------------------+
  2. ; ROUTINE FOR DIRECT CONSOLE OUTPUT
  3. ;
  4. ; FUNCTION: This routine sends individual out the standard output
  5. ; device using direct output.
  6. ; INPUT: Upon entry an ASII char is in AL.
  7. ; OUTPUT: A single character is output through the direct standard
  8. ; output.
  9. ; REGISTERS USED:  AH is modified.  AL is used for input.
  10. ; SEGMENTS REFERENCED:  None
  11. ; ROUTINES CALLED:  DOS call number 6 (direct console I/O) is used.
  12. ; SPECIAL NOTES: None
  13. ;
  14. stdoutdr    proc    far
  15.     push    dx        ; save registers
  16. ;
  17.     cmp    al,0FFh        ; check for the one case of input.
  18.     je    stdoutdrexit
  19.     mov    dl,al        ; in DL for DOS call
  20.     mov    ah,6        ; direct console input
  21.     int    21h        ; DOS call
  22. ;
  23. stdoutdrexit:
  24.     pop    dx        ; restore registers
  25.     ret            ; return
  26. stdoutdr    endp
  27. ;-------------------------routine ends---------------------------+
  28.