Welcome sound in Advanced NetWars!
However it won't work totally due to problems in the PIT or in the sound emulation (and as a result, the emulator will "hang").

svn path=/branches/ntvdm/; revision=61809
This commit is contained in:
Hermès Bélusca-Maïto
2014-01-25 16:23:27 +00:00
parent a3a28181c2
commit f878b8abae
+14 -1
View File
@@ -269,10 +269,23 @@ static VOID BiosHwSetup(VOID)
IOWriteB(PIC_SLAVE_DATA , 0xFF);
/* Initialize the PIT */
/* Initialize PIT Counter 0 */
IOWriteB(PIT_COMMAND_PORT, 0x34);
IOWriteB(PIT_DATA_PORT(0), 0x00);
IOWriteB(PIT_DATA_PORT(0), 0x00);
// PitSetGate(0, TRUE);
/* Initialize PIT Counter 1 */
IOWriteB(PIT_COMMAND_PORT, 0x74);
IOWriteB(PIT_DATA_PORT(1), 0x00);
IOWriteB(PIT_DATA_PORT(1), 0x00);
// PitSetGate(1, TRUE);
/* Initialize PIT Counter 2 */
IOWriteB(PIT_COMMAND_PORT, 0xB4);
IOWriteB(PIT_DATA_PORT(2), 0x00);
IOWriteB(PIT_DATA_PORT(2), 0x00);
// PitSetGate(2, FALSE); // PitSetGate(2, TRUE);
EnableHwIRQ(0, BiosTimerIrq);
}