Made this file DOSMOD friendly.
This commit is contained in:
parent
5fa740af1d
commit
a01bab7772
|
@ -1069,6 +1069,7 @@ void WINAPI DOS3Call( CONTEXT *context )
|
|||
LPSTR data = CTX_SEG_OFF_TO_LIN(context,DS_reg(context),DX_reg(context));
|
||||
LONG length = strchr(data,'$')-data;
|
||||
_hwrite16( 1, data, length);
|
||||
AL_reg(context) = '$'; /* yes, '$' (0x24) gets returned in AL */
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
*/
|
||||
void WINAPI INT_Int25Handler( CONTEXT *context )
|
||||
{
|
||||
BYTE *dataptr = PTR_SEG_OFF_TO_LIN( DS_reg(context), BX_reg(context) );
|
||||
BYTE *dataptr = CTX_SEG_OFF_TO_LIN( context, DS_reg(context), BX_reg(context) );
|
||||
DWORD begin, length;
|
||||
int fd;
|
||||
|
||||
|
@ -34,7 +34,8 @@ void WINAPI INT_Int25Handler( CONTEXT *context )
|
|||
{
|
||||
begin = *(DWORD *)dataptr;
|
||||
length = *(WORD *)(dataptr + 4);
|
||||
dataptr = (BYTE *)PTR_SEG_TO_LIN( *(SEGPTR *)(dataptr + 6) );
|
||||
dataptr = (BYTE *)CTX_SEG_OFF_TO_LIN( context,
|
||||
*(WORD *)(dataptr + 8), *(WORD *)(dataptr + 6) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue