diff options
Diffstat (limited to 'src/mame/drivers/segag80v.cpp')
-rw-r--r-- | src/mame/drivers/segag80v.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/mame/drivers/segag80v.cpp b/src/mame/drivers/segag80v.cpp index a7a7b8ea5ba..0019926832d 100644 --- a/src/mame/drivers/segag80v.cpp +++ b/src/mame/drivers/segag80v.cpp @@ -189,7 +189,7 @@ void segag80v_state::machine_start() * *************************************/ -READ8_MEMBER(segag80v_state::g80v_opcode_r) +uint8_t segag80v_state::g80v_opcode_r(offs_t offset) { // opcodes themselves are not scrambled uint8_t op = m_maincpu->space(AS_PROGRAM).read_byte(offset); @@ -213,13 +213,13 @@ offs_t segag80v_state::decrypt_offset(offs_t offset) return (offset & 0xff00) | (*m_decrypt)(pc, offset & 0xff); } -WRITE8_MEMBER(segag80v_state::mainram_w) +void segag80v_state::mainram_w(offs_t offset, uint8_t data) { m_mainram[decrypt_offset(offset)] = data; } -WRITE8_MEMBER(segag80v_state::usb_ram_w){ m_usb->ram_w(decrypt_offset(offset), data); } -WRITE8_MEMBER(segag80v_state::vectorram_w) +void segag80v_state::usb_ram_w(offs_t offset, uint8_t data){ m_usb->ram_w(decrypt_offset(offset), data); } +void segag80v_state::vectorram_w(offs_t offset, uint8_t data) { m_vectorram[decrypt_offset(offset)] = data; } @@ -241,7 +241,7 @@ inline uint8_t segag80v_state::demangle(uint8_t d7d6, uint8_t d5d4, uint8_t d3d2 } -READ8_MEMBER(segag80v_state::mangled_ports_r) +uint8_t segag80v_state::mangled_ports_r(offs_t offset) { /* The input ports are odd. Neighboring lines are read via a mux chip */ /* one bit at a time. This means that one bank of DIP switches will be */ @@ -264,13 +264,13 @@ READ8_MEMBER(segag80v_state::mangled_ports_r) * *************************************/ -WRITE8_MEMBER(segag80v_state::spinner_select_w) +void segag80v_state::spinner_select_w(uint8_t data) { m_spinner_select = data; } -READ8_MEMBER(segag80v_state::spinner_input_r) +uint8_t segag80v_state::spinner_input_r() { int8_t delta; @@ -308,7 +308,7 @@ READ_LINE_MEMBER(segag80v_state::elim4_joint_coin_r) } -READ8_MEMBER(segag80v_state::elim4_input_r) +uint8_t segag80v_state::elim4_input_r() { uint8_t result = 0; @@ -341,7 +341,7 @@ READ8_MEMBER(segag80v_state::elim4_input_r) * *************************************/ -WRITE8_MEMBER(segag80v_state::multiply_w) +void segag80v_state::multiply_w(offs_t offset, uint8_t data) { m_mult_data[offset] = data; if (offset == 1) @@ -349,7 +349,7 @@ WRITE8_MEMBER(segag80v_state::multiply_w) } -READ8_MEMBER(segag80v_state::multiply_r) +uint8_t segag80v_state::multiply_r() { uint8_t result = m_mult_result; m_mult_result >>= 8; @@ -364,14 +364,14 @@ READ8_MEMBER(segag80v_state::multiply_r) * *************************************/ -WRITE8_MEMBER(segag80v_state::coin_count_w) +void segag80v_state::coin_count_w(uint8_t data) { machine().bookkeeping().coin_counter_w(0, (data >> 7) & 1); machine().bookkeeping().coin_counter_w(1, (data >> 6) & 1); } -WRITE8_MEMBER(segag80v_state::unknown_w) +void segag80v_state::unknown_w(uint8_t data) { /* writing an 0x04 here enables interrupts */ /* some games write 0x00/0x01 here as well */ @@ -1303,8 +1303,8 @@ void segag80v_state::init_elim2() m_decrypt = segag80_security(70); /* configure sound */ - iospace.install_write_handler(0x3e, 0x3e, write8_delegate(*this, FUNC(segag80v_state::elim1_sh_w))); - iospace.install_write_handler(0x3f, 0x3f, write8_delegate(*this, FUNC(segag80v_state::elim2_sh_w))); + iospace.install_write_handler(0x3e, 0x3e, write8smo_delegate(*this, FUNC(segag80v_state::elim1_sh_w))); + iospace.install_write_handler(0x3f, 0x3f, write8smo_delegate(*this, FUNC(segag80v_state::elim2_sh_w))); } @@ -1316,12 +1316,12 @@ void segag80v_state::init_elim4() m_decrypt = segag80_security(76); /* configure sound */ - iospace.install_write_handler(0x3e, 0x3e, write8_delegate(*this, FUNC(segag80v_state::elim1_sh_w))); - iospace.install_write_handler(0x3f, 0x3f, write8_delegate(*this, FUNC(segag80v_state::elim2_sh_w))); + iospace.install_write_handler(0x3e, 0x3e, write8smo_delegate(*this, FUNC(segag80v_state::elim1_sh_w))); + iospace.install_write_handler(0x3f, 0x3f, write8smo_delegate(*this, FUNC(segag80v_state::elim2_sh_w))); /* configure inputs */ - iospace.install_write_handler(0xf8, 0xf8, write8_delegate(*this, FUNC(segag80v_state::spinner_select_w))); - iospace.install_read_handler(0xfc, 0xfc, read8_delegate(*this, FUNC(segag80v_state::elim4_input_r))); + iospace.install_write_handler(0xf8, 0xf8, write8smo_delegate(*this, FUNC(segag80v_state::spinner_select_w))); + iospace.install_read_handler(0xfc, 0xfc, read8smo_delegate(*this, FUNC(segag80v_state::elim4_input_r))); } @@ -1335,8 +1335,8 @@ void segag80v_state::init_spacfury() /* configure sound */ iospace.install_write_handler(0x38, 0x38, write8smo_delegate(*m_speech, FUNC(speech_sound_device::data_w))); iospace.install_write_handler(0x3b, 0x3b, write8smo_delegate(*m_speech, FUNC(speech_sound_device::control_w))); - iospace.install_write_handler(0x3e, 0x3e, write8_delegate(*this, FUNC(segag80v_state::spacfury1_sh_w))); - iospace.install_write_handler(0x3f, 0x3f, write8_delegate(*this, FUNC(segag80v_state::spacfury2_sh_w))); + iospace.install_write_handler(0x3e, 0x3e, write8smo_delegate(*this, FUNC(segag80v_state::spacfury1_sh_w))); + iospace.install_write_handler(0x3f, 0x3f, write8smo_delegate(*this, FUNC(segag80v_state::spacfury2_sh_w))); } @@ -1351,12 +1351,12 @@ void segag80v_state::init_zektor() iospace.install_write_handler(0x38, 0x38, write8smo_delegate(*m_speech, FUNC(speech_sound_device::data_w))); iospace.install_write_handler(0x3b, 0x3b, write8smo_delegate(*m_speech, FUNC(speech_sound_device::control_w))); iospace.install_write_handler(0x3c, 0x3d, write8sm_delegate(*m_aysnd, FUNC(ay8912_device::address_data_w))); - iospace.install_write_handler(0x3e, 0x3e, write8_delegate(*this, FUNC(segag80v_state::zektor1_sh_w))); - iospace.install_write_handler(0x3f, 0x3f, write8_delegate(*this, FUNC(segag80v_state::zektor2_sh_w))); + iospace.install_write_handler(0x3e, 0x3e, write8smo_delegate(*this, FUNC(segag80v_state::zektor1_sh_w))); + iospace.install_write_handler(0x3f, 0x3f, write8smo_delegate(*this, FUNC(segag80v_state::zektor2_sh_w))); /* configure inputs */ - iospace.install_write_handler(0xf8, 0xf8, write8_delegate(*this, FUNC(segag80v_state::spinner_select_w))); - iospace.install_read_handler(0xfc, 0xfc, read8_delegate(*this, FUNC(segag80v_state::spinner_input_r))); + iospace.install_write_handler(0xf8, 0xf8, write8smo_delegate(*this, FUNC(segag80v_state::spinner_select_w))); + iospace.install_read_handler(0xfc, 0xfc, read8smo_delegate(*this, FUNC(segag80v_state::spinner_input_r))); } @@ -1371,11 +1371,11 @@ void segag80v_state::init_tacscan() /* configure sound */ iospace.install_readwrite_handler(0x3f, 0x3f, read8smo_delegate(*m_usb, FUNC(usb_sound_device::status_r)), write8smo_delegate(*m_usb, FUNC(usb_sound_device::data_w))); pgmspace.install_read_handler(0xd000, 0xdfff, read8sm_delegate(*m_usb, FUNC(usb_sound_device::ram_r))); - pgmspace.install_write_handler(0xd000, 0xdfff, write8_delegate(*this, FUNC(segag80v_state::usb_ram_w))); + pgmspace.install_write_handler(0xd000, 0xdfff, write8sm_delegate(*this, FUNC(segag80v_state::usb_ram_w))); /* configure inputs */ - iospace.install_write_handler(0xf8, 0xf8, write8_delegate(*this, FUNC(segag80v_state::spinner_select_w))); - iospace.install_read_handler(0xfc, 0xfc, read8_delegate(*this, FUNC(segag80v_state::spinner_input_r))); + iospace.install_write_handler(0xf8, 0xf8, write8smo_delegate(*this, FUNC(segag80v_state::spinner_select_w))); + iospace.install_read_handler(0xfc, 0xfc, read8smo_delegate(*this, FUNC(segag80v_state::spinner_input_r))); } @@ -1393,11 +1393,11 @@ void segag80v_state::init_startrek() iospace.install_readwrite_handler(0x3f, 0x3f, read8smo_delegate(*m_usb, FUNC(usb_sound_device::status_r)), write8smo_delegate(*m_usb, FUNC(usb_sound_device::data_w))); pgmspace.install_read_handler(0xd000, 0xdfff, read8sm_delegate(*m_usb, FUNC(usb_sound_device::ram_r))); - pgmspace.install_write_handler(0xd000, 0xdfff, write8_delegate(*this, FUNC(segag80v_state::usb_ram_w))); + pgmspace.install_write_handler(0xd000, 0xdfff, write8sm_delegate(*this, FUNC(segag80v_state::usb_ram_w))); /* configure inputs */ - iospace.install_write_handler(0xf8, 0xf8, write8_delegate(*this, FUNC(segag80v_state::spinner_select_w))); - iospace.install_read_handler(0xfc, 0xfc, read8_delegate(*this, FUNC(segag80v_state::spinner_input_r))); + iospace.install_write_handler(0xf8, 0xf8, write8smo_delegate(*this, FUNC(segag80v_state::spinner_select_w))); + iospace.install_read_handler(0xfc, 0xfc, read8smo_delegate(*this, FUNC(segag80v_state::spinner_input_r))); } |