home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Graphics 16,000
/
graphics-16000.iso
/
msdos
/
animutil
/
flilib
/
flisrc
/
jseek.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-02-26
|
391b
|
21 lines
#include "aai86.h"
#include "aados.h"
/* Reposition file pointer */
long dos_seek (Jfile f, long offset, int mode)
{
union i86_regs reg;
reg.b.ah = 0x42;
reg.b.al = mode;
reg.w.bx = f;
reg.w.cx = i86_ptr_seg((void *)offset);
reg.w.dx = i86_ptr_offset((void *)offset);
if (i86_sysint(0x21,®,®)&1)
return(-1);
else
return(i86_make_long(reg.w.ax, reg.w.dx));
}