diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2020-06-15 18:09:06 +0200 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2020-06-15 18:09:06 +0200 |
commit | 351479f33f298ecfe98bfbd8f6e0eea92e06ff72 (patch) | |
tree | df4642c7b930c6b314fc6d646e3a99963b608a4e /src/mame/drivers/segaxbd.cpp | |
parent | 6224f5059f7322ed2e4779a516538de9032f8c7b (diff) |
drivers starting with s: removed read* and write* macros (nw)
Diffstat (limited to 'src/mame/drivers/segaxbd.cpp')
-rw-r--r-- | src/mame/drivers/segaxbd.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mame/drivers/segaxbd.cpp b/src/mame/drivers/segaxbd.cpp index 1478342320c..2c0e024f2ca 100644 --- a/src/mame/drivers/segaxbd.cpp +++ b/src/mame/drivers/segaxbd.cpp @@ -537,7 +537,7 @@ void segaxbd_state::pd_0_w(uint8_t data) // port //------------------------------------------------- -WRITE16_MEMBER( segaxbd_state::iocontrol_w ) +void segaxbd_state::iocontrol_w(offs_t offset, uint16_t data, uint16_t mem_mask) { if (ACCESSING_BITS_0_7) { @@ -558,7 +558,7 @@ WRITE16_MEMBER( segaxbd_state::iocontrol_w ) // writes to this address for Line of Fire //------------------------------------------------- -WRITE16_MEMBER( segaxbd_state::loffire_sync0_w ) +void segaxbd_state::loffire_sync0_w(offs_t offset, uint16_t data, uint16_t mem_mask) { COMBINE_DATA(&m_loffire_sync[offset]); machine().scheduler().boost_interleave(attotime::zero, attotime::from_usec(10)); @@ -570,7 +570,7 @@ WRITE16_MEMBER( segaxbd_state::loffire_sync0_w ) // Super Monaco GP //------------------------------------------------- -READ16_MEMBER( segaxbd_state::smgp_excs_r ) +uint16_t segaxbd_state::smgp_excs_r(offs_t offset) { //logerror("%06X:smgp_excs_r(%04X)\n", m_maincpu->pc(), offset*2); return 0xffff; @@ -582,7 +582,7 @@ READ16_MEMBER( segaxbd_state::smgp_excs_r ) // Super Monaco GP //------------------------------------------------- -WRITE16_MEMBER( segaxbd_state::smgp_excs_w ) +void segaxbd_state::smgp_excs_w(offs_t offset, uint16_t data, uint16_t mem_mask) { //logerror("%06X:smgp_excs_w(%04X) = %04X & %04X\n", m_maincpu->pc(), offset*2, data, mem_mask); } @@ -721,7 +721,7 @@ void segaxbd_state::smgp_motor_w(uint8_t data) // dual-port communications RAM for Royal Ascot //------------------------------------------------- -READ8_MEMBER(segaxbd_rascot_state::commram_r) +uint8_t segaxbd_rascot_state::commram_r(offs_t offset) { return m_commram->right_r(m_commram_bank << 3 | offset); } @@ -732,7 +732,7 @@ READ8_MEMBER(segaxbd_rascot_state::commram_r) // dual-port communications RAM for Royal Ascot //------------------------------------------------- -WRITE8_MEMBER(segaxbd_rascot_state::commram_w) +void segaxbd_rascot_state::commram_w(offs_t offset, uint8_t data) { m_commram->right_w(m_commram_bank << 3 | offset, data); } @@ -743,7 +743,7 @@ WRITE8_MEMBER(segaxbd_rascot_state::commram_w) // of 8 bytes //------------------------------------------------- -WRITE8_MEMBER(segaxbd_rascot_state::commram_bank_w) +void segaxbd_rascot_state::commram_bank_w(uint8_t data) { m_commram_bank = data; } @@ -889,7 +889,7 @@ void segaxbd_state::palette_init() // paletteram_w - handle writes to palette RAM //------------------------------------------------- -WRITE16_MEMBER( segaxbd_state::paletteram_w ) +void segaxbd_state::paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask) { // compute the number of entries if (m_palette_entries == 0) @@ -4665,7 +4665,7 @@ void segaxbd_state::install_loffire(void) m_adc_reverse[1] = m_adc_reverse[3] = true; // install sync hack on core shared memory - m_maincpu->space(AS_PROGRAM).install_write_handler(0x29c000, 0x29c011, write16_delegate(*this, FUNC(segaxbd_state::loffire_sync0_w))); + m_maincpu->space(AS_PROGRAM).install_write_handler(0x29c000, 0x29c011, write16s_delegate(*this, FUNC(segaxbd_state::loffire_sync0_w))); m_loffire_sync = m_subram0; } @@ -4678,7 +4678,8 @@ void segaxbd_new_state::init_loffire() void segaxbd_state::install_smgp(void) { // map /EXCS space - m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0x2f0000, 0x2f3fff, read16_delegate(*this, FUNC(segaxbd_state::smgp_excs_r)), write16_delegate(*this, FUNC(segaxbd_state::smgp_excs_w))); + m_maincpu->space(AS_PROGRAM).install_read_handler(0x2f0000, 0x2f3fff, read16sm_delegate(*this, FUNC(segaxbd_state::smgp_excs_r))); + m_maincpu->space(AS_PROGRAM).install_write_handler(0x2f0000, 0x2f3fff, write16s_delegate(*this, FUNC(segaxbd_state::smgp_excs_w))); } void segaxbd_new_state::init_smgp() |