Use the virtual real-mode interrupt table if low DOS memory isn't
mapped.
This commit is contained in:
parent
b27ee9b89d
commit
f39a69a51d
|
@ -64,7 +64,7 @@ void INT_SetPMHandler( BYTE intnum, FARPROC16 handler )
|
||||||
*/
|
*/
|
||||||
FARPROC16 INT_GetRMHandler( BYTE intnum )
|
FARPROC16 INT_GetRMHandler( BYTE intnum )
|
||||||
{
|
{
|
||||||
return ((FARPROC16*)DOSMEM_MemoryBase())[intnum];
|
return ((FARPROC16*)DOSMEM_SystemBase())[intnum];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ void INT_SetRMHandler( BYTE intnum, FARPROC16 handler )
|
||||||
{
|
{
|
||||||
TRACE("Set real mode interrupt vector %02x <- %04x:%04x\n",
|
TRACE("Set real mode interrupt vector %02x <- %04x:%04x\n",
|
||||||
intnum, HIWORD(handler), LOWORD(handler) );
|
intnum, HIWORD(handler), LOWORD(handler) );
|
||||||
((FARPROC16*)DOSMEM_MemoryBase())[intnum] = handler;
|
((FARPROC16*)DOSMEM_SystemBase())[intnum] = handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue