diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-09-16 20:44:28 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-09-16 20:48:43 -0400 |
commit | e15011b974e3ddb4704beb32a6a6a33d284cac3a (patch) | |
tree | 2a84c6683806cb29bb6e149e8d2a0602c6fe5d58 /src/mame/drivers/model2.cpp | |
parent | 383c4c530c152ed2d797b233e92b6a9be1ab20f2 (diff) |
i8251: Provide standard read/write handlers; eliminate memory space as argument (nw)
swa, wingwar, netmerc: Fix crashes due to reading from nonexistent memory region
tandy2k: Correct 8251 register mapping (nw)
Diffstat (limited to 'src/mame/drivers/model2.cpp')
-rw-r--r-- | src/mame/drivers/model2.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/model2.cpp b/src/mame/drivers/model2.cpp index aa84d4c004a..e3487f79106 100644 --- a/src/mame/drivers/model2.cpp +++ b/src/mame/drivers/model2.cpp @@ -990,9 +990,9 @@ READ32_MEMBER(model2_state::model2_serial_r) { u32 result = 0; if (ACCESSING_BITS_0_7 && (offset == 0)) - result |= m_uart->data_r(space, 0); + result |= m_uart->data_r(); if (ACCESSING_BITS_16_23 && (offset == 0)) - result |= m_uart->status_r(space, 0) << 16; + result |= m_uart->status_r() << 16; return result; } @@ -1004,7 +1004,7 @@ WRITE32_MEMBER(model2_state::model2_serial_w) { if (ACCESSING_BITS_0_7 && (offset == 0)) { - m_uart->data_w(space, 0, data & 0xff); + m_uart->data_w(data & 0xff); if (m_scsp.found()) { @@ -1017,7 +1017,7 @@ WRITE32_MEMBER(model2_state::model2_serial_w) } if (ACCESSING_BITS_16_23 && (offset == 0)) { - m_uart->control_w(space, 0, (data >> 16) & 0xff); + m_uart->control_w((data >> 16) & 0xff); } } |