2 * DOS interrupt 25h handler
15 DEFAULT_DEBUG_CHANNEL(int)
18 /**********************************************************************
21 * Handler for int 25h (absolute disk read).
23 void WINAPI INT_Int25Handler( CONTEXT *context )
25 BYTE *dataptr = CTX_SEG_OFF_TO_LIN( context, DS_reg(context), EBX_reg(context) );
28 if (!DRIVE_IsValid(AL_reg(context)))
31 AX_reg(context) = 0x0201; /* unknown unit */
35 if (CX_reg(context) == 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 = DX_reg(context);
45 length = CX_reg(context);
47 TRACE(int, "int25: abs diskread, drive %d, sector %ld, "
48 "count %ld, buffer %p\n",
49 AL_reg(context), begin, length, dataptr);
51 DRIVE_RawRead(AL_reg(context), begin, length, dataptr, TRUE);