The reason why am asking is I am trying to compile a program and I am getting this error(i thought it might be a bad dos.h file):
***********************************
Error: Unresolved external 'biosdisk(int, char, int, int, int, int, void *)' referenced from C:\STUFF\ABC\COPYBOOT.OBJ
this is the code
***********************************
#include <bios.h>
#include <stdio.h>
#define _floppy1 0x0
#define _floppy2 0x1
#define _hd1 0x80
#define _hd2 0x81
#define _hd3 0x82
void writebootsector(char *buffer,int drive = _floppy1)
{ printf("\nWriting...."

;
int result;
if((result=biosdisk(3,drive,0,0,1,1,buffer))==0)
{ printf("1 sector copied successfully !"

; }
else
{ printf("Error %d",result); }
}
int main(int argc,char* argv[])
{ if(argc>1)
{ FILE *fin = fopen(argv[1],"rb"

;
if(fin)
{ /* Buffer which stores the data */
char buffer[512];
/* Read 512 bytes into the buffer */
fread(&buffer,512,1,fin);
/* Write the 512 bytes */
writebootsector(buffer,_floppy1);
fclose(fin);
return 1;
}
}
printf("\ncopyboot.exe <filename>"

;
return 0;
}
***********************************
whats wrong with this...
and one more question. I need something called TASM to compile a .ASM file. What is this and where can I get it
thanks in advance