Add RST1 reset line

This commit is contained in:
Michael Zapf 2016-03-30 23:08:23 +02:00
parent bd1f1358a5
commit f15f97e5d8
2 changed files with 18 additions and 0 deletions

View File

@ -573,6 +573,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;

View File

@ -60,6 +60,8 @@ public:
void set_single_int(int pin_number, int state);
DECLARE_WRITE_LINE_MEMBER( rst1_line );
DECLARE_READ8_MEMBER( read );
DECLARE_WRITE8_MEMBER( write );
@ -95,6 +97,9 @@ private:
void device_stop(void) override;
void device_reset(void) override;
// Common method for device_reset and rst1_line
void do_reset();
// State of the INT1-INT15 lines (must be inverted when queried)
// Note that the levels must also be delivered when reading the pins, which
// may require to latch the int levels.