2 * DOS interrupt 25h handler
13 #include "debugtools.h"
15 DEFAULT_DEBUG_CHANNEL(int);
18 /**********************************************************************
21 * Handler for int 25h (absolute disk read).
23 void WINAPI
INT_Int25Handler( CONTEXT86
*context
)
25 BYTE
*dataptr
= CTX_SEG_OFF_TO_LIN( context
, context
->SegDs
, context
->Ebx
);
28 if (!DRIVE_IsValid(LOBYTE(context
->Eax
)))
31 AX_reg(context
) = 0x0201; /* unknown unit */
35 if (LOWORD(context
->Ecx
) == 0xffff)
37 begin
= *(DWORD
*)dataptr
;
38 length
= *(WORD
*)(dataptr
+ 4);
39 dataptr
= (BYTE
*)CTX_SEG_OFF_TO_LIN( context
,
40 *(WORD
*)(dataptr
+ 8), *(DWORD
*)(dataptr
+ 6) );
44 begin
= LOWORD(context
->Edx
);
45 length
= LOWORD(context
->Ecx
);
47 TRACE("int25: abs diskread, drive %d, sector %ld, "
48 "count %ld, buffer %p\n",
49 LOBYTE(context
->Eax
), begin
, length
, dataptr
);
51 DRIVE_RawRead(LOBYTE(context
->Eax
), begin
, length
, dataptr
, TRUE
);