home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / mscwattc / elib / outch.asm < prev    next >
Encoding:
Assembly Source File  |  1992-01-14  |  806 b   |  55 lines

  1. PAGE    66,132
  2. ;
  3. ;
  4. ;
  5. ;
  6. ;
  7. ;
  8. ;
  9. ;
  10. ;  outch.asm
  11. ;
  12. ;  print a character to stdio, ttymode, does \n to \n\r
  13. ;
  14. ;
  15. ;  Usage :
  16. ;        outch( ch )
  17. ;
  18. ;  (c) 1990 University of Waterloo,
  19. ;           Faculty of Engineering,
  20. ;           Engineering Microcomputer Network Development Office
  21. ;
  22. ;  version
  23. ;
  24. ;    0.1    7-Nov -1990   E. P. Engelke
  25. ;
  26. ;
  27.     include masmdefs.hsm
  28.     include    model.hsm
  29.  
  30. codedef OUTCH
  31. datadef
  32.  
  33. cstart  OUTCH
  34. cpublic outch
  35.         push    BP
  36.         push    di
  37.         push    si
  38.         mov     BL, 1           ; colour
  39.         mov     AL, +@AB [BP]   ; character
  40.         mov     AH, 0eh
  41.         int     10h
  42.  
  43.         pop        si
  44.         pop        di
  45.         pop     BP
  46.  
  47. ;        mov     DL, +@AB [BP]
  48. ;        mov     AH, 2
  49. ;        int     21h
  50.  
  51. creturn    outch
  52. cend    OUTCH
  53.         end
  54.  
  55.