diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2019-06-12 19:44:59 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2019-06-12 19:51:03 -0400 |
commit | c92a21ebb9edf428c8011ac727491a11dd511c8c (patch) | |
tree | b53254fa9ed19880c02b54a390d4e9047f23ed0a /src/mame/drivers/interpro.cpp | |
parent | 788409adea53a4e7711d26405aab95fd8655d1ce (diff) |
z80scc: Read/write handler cleanups (nw)
- Simplify handler signatures
- Rename cd_ab_r/w and ba_cd_inv_r/w to dc_ab_r/w and ab_dc_r/w to be more hardware-accurate
- Eliminate cd_ba_r/w and ba_cd_r/w (no legitimate uses in existing code)
mvme162: Fix SCC addressing (nw)
Note that the SCC's address inputs are A/~B and D/~C, rather than the Z80 SIO's B/~A and C/~D.
Diffstat (limited to 'src/mame/drivers/interpro.cpp')
-rw-r--r-- | src/mame/drivers/interpro.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/interpro.cpp b/src/mame/drivers/interpro.cpp index 9fe4fba37bd..c91aba9d9fe 100644 --- a/src/mame/drivers/interpro.cpp +++ b/src/mame/drivers/interpro.cpp @@ -529,8 +529,8 @@ void interpro_state::interpro_common_map(address_map &map) map(0x7f000308, 0x7f000309).rw(FUNC(interpro_state::ctrl1_r), FUNC(interpro_state::ctrl1_w)); map(0x7f00030c, 0x7f00030d).rw(FUNC(interpro_state::ctrl2_r), FUNC(interpro_state::ctrl2_w)); - map(0x7f000400, 0x7f00040f).rw(m_scc1, FUNC(z80scc_device::ba_cd_inv_r), FUNC(z80scc_device::ba_cd_inv_w)).umask32(0x000000ff); - map(0x7f000410, 0x7f00041f).rw(m_scc2, FUNC(z80scc_device::ba_cd_inv_r), FUNC(z80scc_device::ba_cd_inv_w)).umask32(0x000000ff); + map(0x7f000400, 0x7f00040f).rw(m_scc1, FUNC(z80scc_device::ab_dc_r), FUNC(z80scc_device::ab_dc_w)).umask32(0x000000ff); + map(0x7f000410, 0x7f00041f).rw(m_scc2, FUNC(z80scc_device::ab_dc_r), FUNC(z80scc_device::ab_dc_w)).umask32(0x000000ff); map(0x7f000500, 0x7f000503).lrw8("rtc_rw", [this](offs_t offset) { return m_rtc->read(offset^1); |