[NTVDM]: Code formatting and DPRINT fix.

svn path=/trunk/; revision=63303
This commit is contained in:
Hermès Bélusca-Maïto 2014-05-15 01:13:44 +00:00
parent 5f6ac9ac39
commit 8afc11c2e4
2 changed files with 15 additions and 11 deletions

View file

@ -1494,7 +1494,7 @@ VOID WINAPI VidBiosVideoService(LPWORD Stack)
/* Alternate Function Select */
case 0x12:
{
DPRINT1("BIOS Function INT 12h (Alternate Function Select), BX = 0x%04X NOT IMPLEMENTED\n",
DPRINT1("BIOS Function INT 10h, AH = 12h (Alternate Function Select), BX = 0x%04X NOT IMPLEMENTED\n",
getBX());
break;
}

View file

@ -27,10 +27,8 @@ EMULATOR_INT32_PROC Int32Proc[EMULATOR_MAX_INT32_NUM] = { NULL };
/* BOP Identifiers */
#define BOP_CONTROL 0xFF // Control BOP Handler
#define BOP_CONTROL_DEFFUNC 0x00 // Default Control BOP Function
/* 32-bit Interrupt dispatcher function code for the Control BOP Handler */
#define BOP_CONTROL_INT32 0xFF
#define BOP_CONTROL_INT32 0xFF // 32-bit Interrupt dispatcher
// function code for the Control BOP Handler
#define BOP(num) LOBYTE(EMULATOR_BOP), HIBYTE(EMULATOR_BOP), (num)
#define UnSimulate16(trap) \
@ -89,7 +87,7 @@ InitializeContext(IN PCALLBACK16 Context,
Context->TrampolineFarPtr = MAKELONG(Offset, Segment);
Context->Segment = Segment;
Context->NextOffset = Offset + max(CALL16_TRAMPOLINE_SIZE,
INT16_TRAMPOLINE_SIZE);
INT16_TRAMPOLINE_SIZE);
}
VOID
@ -280,11 +278,17 @@ static VOID WINAPI ControlBop(LPWORD Stack)
BYTE FuncNum = *(PBYTE)SEG_OFF_TO_PTR(getCS(), getIP());
setIP(getIP() + 1);
if (FuncNum == BOP_CONTROL_INT32)
Int32Dispatch(Stack);
else
// DPRINT1("Unassigned Control BOP Function: 0x%02X\n", FuncNum);
DisplayMessage(L"Unassigned Control BOP Function: 0x%02X\n", FuncNum);
switch (FuncNum)
{
case BOP_CONTROL_INT32:
Int32Dispatch(Stack);
break;
default:
// DPRINT1("Unassigned Control BOP Function: 0x%02X\n", FuncNum);
DisplayMessage(L"Unassigned Control BOP Function: 0x%02X", FuncNum);
break;
}
}
VOID InitializeCallbacks(VOID)