English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Can anyone help me??

2007-06-08 04:14:33 · 1 answers · asked by sugata g 1 in Computers & Internet Programming & Design

1 answers

BOOL ReadSect(BYTE disk, int nsects,DWORD lsects,void* data)
{
union REGS iregs, oregs;
struct SREGS sregs;

iregs.h.ah = 0×02;
iregs.h.al = nsects;
iregs.x.bx = FP_OFF (data);
sregs.es = FP_SEG (data);
iregs.h.ch = (BYTE) track;
iregs.h.cl = (BYTE) sector;
iregs.h.dh = (BYTE) head;
iregs.h.dl = disk;

int86x (0×13, &iregs, &iregs, &sregs);

if (iregs.x.cflag)
Return FALSE;
Else
Return TRUE;
}

2007-06-08 05:24:32 · answer #1 · answered by Chris C 7 · 0 0

fedest.com, questions and answers