home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / hamradio / wattcp.zip / OUTCH.ASM < prev    next >
Assembly Source File  |  1991-05-08  |  762b  |  51 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.         mov     BL, 1           ; colour
  37.         mov     AL, +@AB [BP]   ; character
  38.         mov     AH, 0eh
  39.         int     10h
  40.  
  41.         pop     BP
  42.  
  43. ;        mov     DL, +@AB [BP]
  44. ;        mov     AH, 2
  45. ;        int     21h
  46.  
  47. creturn    outch
  48. cend    OUTCH
  49.         end
  50.  
  51.