home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
SNPD9404.ZIP
/
ISWPROT.C
< prev
next >
Wrap
Text File
|
1994-04-03
|
399b
|
15 lines
.I 3 1
** public domain by Bob Stout w/ corrections & additions by Wayne King
.D 4 1
.I 43 6
{
regs.h.ah = 0x00; /* reset diskette subsystem */
regs.h.dl = drive & 0x7f;
int86x(0x13, ®s, ®s, &sregs);
return -1;
}
.D 44 1
.I 72 1
printf("isWprot(%c:) returned %d\n", drive + 'A', isWprot(drive));
.D 73 1