tms9901: Add output state accessor; undo some search-and-replace corruption (nw)

This commit is contained in:
AJR 2018-10-12 18:00:32 -04:00
parent 6043fdfb48
commit 5be1f787fd
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,7 @@
CE*| 5 36| S1 CE*| 5 36| S1
INT6*| 6 35| S2 INT6*| 6 35| S2
INT5*| 7 34| INT7* / P15 INT5*| 7 34| INT7* / P15
INT4*| 8 33| int8_t* / P14 INT4*| 8 33| INT8* / P14
INT3*| 9 32| INT9* / P13 INT3*| 9 32| INT9* / P13
Phi*|10 31| INT10* / P12 Phi*|10 31| INT10* / P12
INTREQ*|11 30| INT11* / P11 INTREQ*|11 30| INT11* / P11
@ -311,7 +311,7 @@ READ8_MEMBER( tms9901_device::read )
answer &= ~(m_pio_direction_mirror >> 8); answer &= ~(m_pio_direction_mirror >> 8);
answer |= (m_pio_output_mirror & 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; break;
case 2: case 2:
/* exit timer mode */ /* exit timer mode */

View File

@ -67,6 +67,8 @@ public:
auto read_cb() { return m_read_block.bind(); } auto read_cb() { return m_read_block.bind(); }
auto intlevel_cb() { return m_interrupt.bind(); } auto intlevel_cb() { return m_interrupt.bind(); }
uint16_t pio_outputs() const { return m_pio_output | ~m_pio_direction; }
private: private:
static constexpr device_timer_id DECREMENTER = 0; static constexpr device_timer_id DECREMENTER = 0;