[NTVDM]: Code formatting and DPRINT fix.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 15 May 2014 01:13:44 +0000 (01:13 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Thu, 15 May 2014 01:13:44 +0000 (01:13 +0000)
svn path=/trunk/; revision=63303

reactos/subsystems/ntvdm/bios/vidbios.c
reactos/subsystems/ntvdm/callback.c

index 41d22d3..c5d94e0 100644 (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;
         }
index 0cffdfd..7566a94 100644 (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)