diff options
author | 2017-12-16 13:21:01 +0100 | |
---|---|---|
committer | 2017-12-16 13:22:21 +0100 | |
commit | 0932b9c2ae7c59681144e8b65862ed541a01c47f (patch) | |
tree | 0294d40bffb0520ea178057318ed03c3a15d4d77 /src/mame/drivers/firebeat.cpp | |
parent | 77829f86719aa73ec3eddf08a9c7dfa71c89f5f3 (diff) |
ide: Add non-space cs access methods, use them wherever possible [O. Galibert]
Diffstat (limited to 'src/mame/drivers/firebeat.cpp')
-rw-r--r-- | src/mame/drivers/firebeat.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/firebeat.cpp b/src/mame/drivers/firebeat.cpp index 30611940fe5..c2a8341c9e5 100644 --- a/src/mame/drivers/firebeat.cpp +++ b/src/mame/drivers/firebeat.cpp @@ -448,12 +448,12 @@ READ32_MEMBER(firebeat_state::ata_command_r ) // printf("ata_command_r: %08X, %08X\n", offset, mem_mask); if (ACCESSING_BITS_16_31) { - r = m_ata->read16_cs0(space, offset*2, BYTESWAP16((mem_mask >> 16) & 0xffff)); + r = m_ata->read16_cs0(offset*2, BYTESWAP16((mem_mask >> 16) & 0xffff)); return BYTESWAP16(r) << 16; } else { - r = m_ata->read16_cs0(space, (offset*2) + 1, BYTESWAP16((mem_mask >> 0) & 0xffff)); + r = m_ata->read16_cs0((offset*2) + 1, BYTESWAP16((mem_mask >> 0) & 0xffff)); return BYTESWAP16(r) << 0; } } @@ -464,11 +464,11 @@ WRITE32_MEMBER(firebeat_state::ata_command_w ) if (ACCESSING_BITS_16_31) { - m_ata->write16_cs0(space, offset*2, BYTESWAP16((data >> 16) & 0xffff), BYTESWAP16((mem_mask >> 16) & 0xffff)); + m_ata->write16_cs0(offset*2, BYTESWAP16((data >> 16) & 0xffff), BYTESWAP16((mem_mask >> 16) & 0xffff)); } else { - m_ata->write16_cs0(space, (offset*2) + 1, BYTESWAP16((data >> 0) & 0xffff), BYTESWAP16((mem_mask >> 0) & 0xffff)); + m_ata->write16_cs0((offset*2) + 1, BYTESWAP16((data >> 0) & 0xffff), BYTESWAP16((mem_mask >> 0) & 0xffff)); } } @@ -480,12 +480,12 @@ READ32_MEMBER(firebeat_state::ata_control_r ) if (ACCESSING_BITS_16_31) { - r = m_ata->read16_cs1(space, offset*2, BYTESWAP16((mem_mask >> 16) & 0xffff)); + r = m_ata->read16_cs1(offset*2, BYTESWAP16((mem_mask >> 16) & 0xffff)); return BYTESWAP16(r) << 16; } else { - r = m_ata->read16_cs1(space, (offset*2) + 1, BYTESWAP16((mem_mask >> 0) & 0xffff)); + r = m_ata->read16_cs1((offset*2) + 1, BYTESWAP16((mem_mask >> 0) & 0xffff)); return BYTESWAP16(r) << 0; } } @@ -494,11 +494,11 @@ WRITE32_MEMBER(firebeat_state::ata_control_w ) { if (ACCESSING_BITS_16_31) { - m_ata->write16_cs1(space, offset*2, BYTESWAP16(data >> 16) & 0xffff, BYTESWAP16((mem_mask >> 16) & 0xffff)); + m_ata->write16_cs1(offset*2, BYTESWAP16(data >> 16) & 0xffff, BYTESWAP16((mem_mask >> 16) & 0xffff)); } else { - m_ata->write16_cs1(space, (offset*2) + 1, BYTESWAP16(data >> 0) & 0xffff, BYTESWAP16((mem_mask >> 0) & 0xffff)); + m_ata->write16_cs1((offset*2) + 1, BYTESWAP16(data >> 0) & 0xffff, BYTESWAP16((mem_mask >> 0) & 0xffff)); } } |