home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / microcrn / issue_45.arc / TECHTP45.ARC / TECHTIPS.1 next >
Text File  |  1988-03-23  |  573b  |  17 lines

  1. ; TECHTIPS Figure 1  Micro Cornucopia Magazine Issue #45
  2. ; I/O Device Control
  3.  
  4. mov     ax, 3C00H
  5. mov     dx, offset _device       ; get pointer to device name
  6. mov     cx, 0
  7. int     21H                      ; open output device
  8. jc      ERROR                    ; if error, exit
  9. mov     bx, ax                   ; get device handle in BX
  10. mov     ax, 4400H
  11. int     21H                      ; get device status in DX
  12. or      dx, 0A0H                 ; set raw bit in status word
  13. mov     ax, 4401H
  14. int     21H                      ; put device in raw mode
  15. ret
  16.  
  17.