mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[NTVDM]
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user