2 * DOS interrupt 25h handler
12 #include "debugtools.h"
14 DEFAULT_DEBUG_CHANNEL(int);
17 /**********************************************************************
18 * INT_Int25Handler (WPROCS.137)
20 * Handler for int 25h (absolute disk read).
22 void WINAPI
INT_Int25Handler( CONTEXT86
*context
)
24 BYTE
*dataptr
= CTX_SEG_OFF_TO_LIN( context
, context
->SegDs
, context
->Ebx
);
27 if (!DRIVE_IsValid(LOBYTE(context
->Eax
)))
30 AX_reg(context
) = 0x0201; /* unknown unit */
34 if (LOWORD(context
->Ecx
) == 0xffff)
36 begin
= *(DWORD
*)dataptr
;
37 length
= *(WORD
*)(dataptr
+ 4);
38 dataptr
= (BYTE
*)CTX_SEG_OFF_TO_LIN( context
,
39 *(WORD
*)(dataptr
+ 8), *(DWORD
*)(dataptr
+ 6) );
43 begin
= LOWORD(context
->Edx
);
44 length
= LOWORD(context
->Ecx
);
46 TRACE("int25: abs diskread, drive %d, sector %ld, "
47 "count %ld, buffer %p\n",
48 LOBYTE(context
->Eax
), begin
, length
, dataptr
);
50 DRIVE_RawRead(LOBYTE(context
->Eax
), begin
, length
, dataptr
, TRUE
);