home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / dos_ency / section5 / fxn05h.asm < prev    next >
Encoding:
Assembly Source File  |  1988-08-11  |  1001 b   |  20 lines

  1.         ;************************************************************;
  2.         ;                                                            ;
  3.         ;                Function 05H: Print Character               ;
  4.         ;                                                            ;
  5.         ;                int print_ch(c)                             ;
  6.         ;                    char c;                                 ;
  7.         ;                                                            ;
  8.         ;                Returns 0.                                  ;
  9.         ;                                                            ;
  10.         ;************************************************************;
  11.  
  12. cProc   print_ch,PUBLIC
  13. parmB   c
  14. cBegin
  15.         mov     dl,c            ; Get character into DL.
  16.         mov     ah,05h          ; Set function code.
  17.         int     21h             ; Write character to standard printer.
  18.         xor     ax,ax           ; Return 0.
  19. cEnd
  20.