home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / modem / byepc300.arc / BYEXLIB.ARC / STDOUT.ASM < prev    next >
Assembly Source File  |  1987-10-25  |  932b  |  35 lines

  1.            INCLUDE MODEL.INC
  2. ;
  3. ;---------------------------------------------------------------------------
  4. ;   Function:    void _bye_stdout(flag)
  5. ;
  6. ;   Parms:    flag = 1 Chars written to stdout are sent to modem
  7. ;        flag = 0 Chars written to stdout are not sent to mdm
  8. ;
  9. ;   Purpose:    This is used to control the video bios writes to
  10. ;        stdout from being sent to the modem. If this is
  11. ;        disabled, all data must be received from the modem
  12. ;        using the '__bye_getc()' function.
  13. ;
  14. ;   Return:    void
  15. ;---------------------------------------------------------------------------
  16. ;
  17.            PUBLIC __bye_stdout
  18.  
  19. __bye_stdout   PROC
  20.  
  21.            push bp            ;standard 'C' function entry
  22.            mov  bp,sp
  23.  
  24.            mov  ax,ARG1        ;stdout state in AL
  25.            mov  ah,10        ;AH=10 for set stdout mode
  26.            int  BYE_VECT
  27.  
  28.            mov  sp,bp        ;standard 'C' exit
  29.            pop  bp
  30.            ret
  31.  
  32. __bye_stdout   ENDP
  33.            END
  34.  
  35.