10 /* #define DEBUG_INT */
13 /**********************************************************************
16 * Handler for int 26h (absolute disk read).
18 void INT_Int26Handler( struct sigcontext_struct context
)
20 BYTE
*dataptr
= PTR_SEG_OFF_TO_LIN( DS_reg(&context
), BX_reg(&context
) );
23 if (!DRIVE_IsValid(AL_reg(&context
)))
26 AX_reg(&context
) = 0x0101; /* unknown unit */
30 if (CX_reg(&context
) == 0xffff)
32 begin
= *(DWORD
*)dataptr
;
33 length
= *(WORD
*)(dataptr
+ 4);
34 dataptr
= (BYTE
*)PTR_SEG_TO_LIN( *(SEGPTR
*)(dataptr
+ 6) );
38 begin
= DX_reg(&context
);
39 length
= CX_reg(&context
);
42 dprintf_int( stdnimp
,"int26: abs diskwrite, drive %d, sector %ld, "
43 "count %ld, buffer %d\n",
44 AL_reg(&context
), begin
, length
, (int) dataptr
);
46 RESET_CFLAG(&context
);