home *** CD-ROM | disk | FTP | other *** search
- include compiler.inc
- ttl LSEEK, 1.05, 10-20-86 jwk
-
- ;low-level seek - long lseek(handle, offsetL, base);
-
- dseg
- exterr
-
- cseg
- procdef lseek, <<handle, word>, <offlo, word>, <offhi, word>, <base, byte>>
-
- mov bx,handle
- mov cx,offhi
- mov dx,offlo
- mov al,base
- mov ah,42h
- int 21h
- jnc ex
- moverr ax ;if error save it
- mov ax,-1 ;and return -1L
- mov dx,ax
- ex:
- pret ;else return DOS value
-
- pend lseek
-
- finish
-