summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pit8253.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/pit8253.cpp')
-rw-r--r--src/devices/machine/pit8253.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/devices/machine/pit8253.cpp b/src/devices/machine/pit8253.cpp
index d9f2bf913d6..c75c8b6a9cc 100644
--- a/src/devices/machine/pit8253.cpp
+++ b/src/devices/machine/pit8253.cpp
@@ -21,7 +21,7 @@
*****************************************************************************/
#include "emu.h"
-#include "machine/pit8253.h"
+#include "pit8253.h"
/***************************************************************************
@@ -292,9 +292,6 @@ void pit_counter_device::load_counter_value()
{
m_value = m_count;
m_null_count = 0;
-
- if (CTRL_MODE(m_control) == 3 && m_output == 0)
- m_value &= 0xfffe;
}
@@ -769,9 +766,8 @@ void pit_counter_device::update()
}
-/* We recycle bit 0 of m_value to hold the phase in mode 3 when count is
- odd. Since read commands in mode 3 always return even numbers, we need to
- mask this bit off. */
+/* Since read commands in mode 3 always return even numbers,
+ we need to mask bit 0 off. */
uint16_t pit_counter_device::masked_value() const
{
if ((CTRL_MODE(m_control) == 3) && (downcast<pit8253_device *>(owner())->m_type != pit_type::FE2010))