diff options
| author | 2010-08-27 12:17:06 +0000 | |
|---|---|---|
| committer | 2010-08-27 12:17:06 +0000 | |
| commit | 2c3b3b9d5e4e31305ba62a6a1d2d76bcfda261cf (patch) | |
| tree | 625c041f85113c645ecf13c96526f284fe0bda53 | |
| parent | 44bbd47830f10890bcac3de4197247b18b92265f (diff) | |
Similar issue as with ins8154. No whatsnew.
| -rw-r--r-- | src/emu/machine/i8243.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/machine/i8243.c b/src/emu/machine/i8243.c index afbff9c2ba5..70bb448afb3 100644 --- a/src/emu/machine/i8243.c +++ b/src/emu/machine/i8243.c @@ -141,7 +141,10 @@ WRITE8_DEVICE_HANDLER_TRAMPOLINE(i8243, i8243_prog_w) /* if this is a read opcode, copy result to p2out */ if((m_opcode >> 2) == MCS48_EXPANDER_OP_READ) { - m_p[m_opcode & 3] = devcb_call_read8(&m_readhandler, m_opcode & 3); + if (m_readhandler.read != NULL) + { + m_p[m_opcode & 3] = devcb_call_read8(&m_readhandler, m_opcode & 3); + } m_p2out = m_p[m_opcode & 3] & 0x0f; } } |
