diff options
author | 2018-10-12 18:00:32 -0400 | |
---|---|---|
committer | 2018-10-12 18:00:32 -0400 | |
commit | 5be1f787fd234acd4fcdd0cc2ad6079f41ec2ebd (patch) | |
tree | 97cd7d1a14e8bb6375f532915e587beabf67e10f | |
parent | 6043fdfb48a0667b182619b755cbee59b7dfb7fe (diff) |
tms9901: Add output state accessor; undo some search-and-replace corruption (nw)
-rw-r--r-- | src/devices/machine/tms9901.cpp | 4 | ||||
-rw-r--r-- | src/devices/machine/tms9901.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/machine/tms9901.cpp b/src/devices/machine/tms9901.cpp index b0d557b3abf..5282dd6f9f5 100644 --- a/src/devices/machine/tms9901.cpp +++ b/src/devices/machine/tms9901.cpp @@ -12,7 +12,7 @@ CE*| 5 36| S1 INT6*| 6 35| S2 INT5*| 7 34| INT7* / P15 - INT4*| 8 33| int8_t* / P14 + INT4*| 8 33| INT8* / P14 INT3*| 9 32| INT9* / P13 Phi*|10 31| INT10* / P12 INTREQ*|11 30| INT11* / P11 @@ -311,7 +311,7 @@ READ8_MEMBER( tms9901_device::read ) answer &= ~(m_pio_direction_mirror >> 8); answer |= (m_pio_output_mirror & m_pio_direction_mirror) >> 8; } - LOGPINS("input on lines INT15..int8_t = %02x\n", answer); + LOGPINS("input on lines INT15..INT8 = %02x\n", answer); break; case 2: /* exit timer mode */ diff --git a/src/devices/machine/tms9901.h b/src/devices/machine/tms9901.h index eadd549f79e..86a2c6852e3 100644 --- a/src/devices/machine/tms9901.h +++ b/src/devices/machine/tms9901.h @@ -67,6 +67,8 @@ public: auto read_cb() { return m_read_block.bind(); } auto intlevel_cb() { return m_interrupt.bind(); } + uint16_t pio_outputs() const { return m_pio_output | ~m_pio_direction; } + private: static constexpr device_timer_id DECREMENTER = 0; |