Author: hbelusca Date: Sat Jan 25 16:23:27 2014 New Revision: 61809
URL: http://svn.reactos.org/svn/reactos?rev=61809&view=rev Log: [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").
Modified: branches/ntvdm/subsystems/ntvdm/bios/bios.c
Modified: branches/ntvdm/subsystems/ntvdm/bios/bios.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/bios/bios... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/bios/bios.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/bios/bios.c [iso-8859-1] Sat Jan 25 16:23:27 2014 @@ -269,10 +269,23 @@ 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); }