mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
Add RST1 reset line
This commit is contained in:
parent
bd1f1358a5
commit
f15f97e5d8
@ -573,6 +573,19 @@ void tms9901_device::device_stop(void)
|
|||||||
-------------------------------------------------*/
|
-------------------------------------------------*/
|
||||||
|
|
||||||
void tms9901_device::device_reset(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_timer_int_pending = false;
|
||||||
m_enabled_ints = 0;
|
m_enabled_ints = 0;
|
||||||
|
@ -60,6 +60,8 @@ public:
|
|||||||
|
|
||||||
void set_single_int(int pin_number, int state);
|
void set_single_int(int pin_number, int state);
|
||||||
|
|
||||||
|
DECLARE_WRITE_LINE_MEMBER( rst1_line );
|
||||||
|
|
||||||
DECLARE_READ8_MEMBER( read );
|
DECLARE_READ8_MEMBER( read );
|
||||||
DECLARE_WRITE8_MEMBER( write );
|
DECLARE_WRITE8_MEMBER( write );
|
||||||
|
|
||||||
@ -95,6 +97,9 @@ private:
|
|||||||
void device_stop(void) override;
|
void device_stop(void) override;
|
||||||
void device_reset(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)
|
// State of the INT1-INT15 lines (must be inverted when queried)
|
||||||
// Note that the levels must also be delivered when reading the pins, which
|
// Note that the levels must also be delivered when reading the pins, which
|
||||||
// may require to latch the int levels.
|
// may require to latch the int levels.
|
||||||
|
Loading…
Reference in New Issue
Block a user