home *** CD-ROM | disk | FTP | other *** search
- ; TECHTIPS Figure 1 Micro Cornucopia Magazine Issue #45
- ; I/O Device Control
-
- mov ax, 3C00H
- mov dx, offset _device ; get pointer to device name
- mov cx, 0
- int 21H ; open output device
- jc ERROR ; if error, exit
- mov bx, ax ; get device handle in BX
- mov ax, 4400H
- int 21H ; get device status in DX
- or dx, 0A0H ; set raw bit in status word
- mov ax, 4401H
- int 21H ; put device in raw mode
- ret
-