Technical information
Serial Solutions Aterm
Figure 8-2. Subroutine Uncook.___________________________
;********************************************************************
;* *
;* uncook-routine sets mode of file to raw data. I/O *
;* is performed as many bytes as possible at a time, and *
;* control characters are not trapped. *
;* *
;********************************************************************
;
; On entry
; AX = valid file handle (note this routine does no checking)
;
; On exit
; AX undefined
; DX undefined
; BX = file handle
;
; Flags undefined
; All other regs unaffected.
; Stack useage-as DOS functions 44H
;
;
uncook proc near
mov bx,ax
mov ah,44H ;DOS IOCTL
mov al,0 ;Get device data
int dos
xor dh,dh
or dl,00100000b ;Set bit 5 of data
mov ah,44H ;DOS IOCTL
mov al,1 ;Set device data
int dos
ret
uncook endp
;
Uncook uses DOS service 044H to read alter, and set the
device data that DOS maintains.
Reading From The File._____________________
The subroutine inpstr below reads from the serial port.
Page 132 Chapter 8