diff options
author | 2016-03-30 23:08:23 +0200 | |
---|---|---|
committer | 2016-03-30 23:08:23 +0200 | |
commit | f15f97e5d85adaafc81c515d17aa75167a1b3bb9 (patch) | |
tree | d1dc19c7916d3e985d6664923ebd3d726b80ecba /src/devices/machine/tms9901.cpp | |
parent | bd1f1358a5d1f68c6a203f78346a995fd17a7a59 (diff) |
Add RST1 reset line
Diffstat (limited to 'src/devices/machine/tms9901.cpp')
-rw-r--r-- | src/devices/machine/tms9901.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/devices/machine/tms9901.cpp b/src/devices/machine/tms9901.cpp index 8ca2f4b2bf7..3da7028baa8 100644 --- a/src/devices/machine/tms9901.cpp +++ b/src/devices/machine/tms9901.cpp @@ -574,6 +574,19 @@ void tms9901_device::device_stop(void) void tms9901_device::device_reset(void) { + do_reset(); +} + +/* + RST1 input line (active low; using ASSERT/CLEAR). +*/ +WRITE_LINE_MEMBER( tms9901_device::rst1_line ) +{ + if (state==ASSERT_LINE) do_reset(); +} + +void tms9901_device::do_reset() +{ m_timer_int_pending = false; m_enabled_ints = 0; |