summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vsmile/rom.cpp
diff options
context:
space:
mode:
author andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
committer andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
commitb380514764cf857469bae61c11143a19f79a74c5 (patch)
tree63c8012e262618f08a332da31dd714281aa2c5ed /src/devices/bus/vsmile/rom.cpp
parentc24473ddff715ecec2e258a6eb38960cf8c8e98e (diff)
Revert "conflict resolution (nw)"
This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
Diffstat (limited to 'src/devices/bus/vsmile/rom.cpp')
-rw-r--r--src/devices/bus/vsmile/rom.cpp86
1 files changed, 0 insertions, 86 deletions
diff --git a/src/devices/bus/vsmile/rom.cpp b/src/devices/bus/vsmile/rom.cpp
deleted file mode 100644
index 584a8cfe058..00000000000
--- a/src/devices/bus/vsmile/rom.cpp
+++ /dev/null
@@ -1,86 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Ryan Holtz
-/***********************************************************************************************************
-
- V.Smile cart emulation
-
- We support standard carts and one with on-board NVRAM
-
- ***********************************************************************************************************/
-
-
-#include "emu.h"
-#include "rom.h"
-
-
-//-------------------------------------------------
-// vsmile_rom_device - constructor
-//-------------------------------------------------
-
-DEFINE_DEVICE_TYPE(VSMILE_ROM_STD, vsmile_rom_device, "vsmile_rom", "V.Smile Cart")
-DEFINE_DEVICE_TYPE(VSMILE_ROM_NVRAM, vsmile_rom_nvram_device, "vsmile_rom_nvram", "V.Smile Cart + NVRAM")
-
-
-vsmile_rom_device::vsmile_rom_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, type, tag, owner, clock)
- , device_vsmile_cart_interface(mconfig, *this)
-{
-}
-
-vsmile_rom_device::vsmile_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : vsmile_rom_device(mconfig, VSMILE_ROM_STD, tag, owner, clock)
-{
-}
-
-vsmile_rom_nvram_device::vsmile_rom_nvram_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
- : vsmile_rom_device(mconfig, type, tag, owner, clock)
-{
-}
-
-vsmile_rom_nvram_device::vsmile_rom_nvram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : vsmile_rom_nvram_device(mconfig, VSMILE_ROM_NVRAM, tag, owner, clock)
-{
-}
-
-
-//-------------------------------------------------
-// mapper specific start/reset
-//-------------------------------------------------
-
-void vsmile_rom_device::device_start()
-{
- save_item(NAME(m_bank_offset));
-}
-
-void vsmile_rom_device::device_reset()
-{
- m_bank_offset = 0;
-}
-
-
-/*-------------------------------------------------
- Cart with NVRAM
- -------------------------------------------------*/
-
-READ16_MEMBER(vsmile_rom_nvram_device::bank2_r)
-{
- if (!m_nvram.empty() && offset < m_nvram.size())
- return m_nvram[offset];
- else // this cannot actually happen...
- return 0;
-}
-
-WRITE16_MEMBER(vsmile_rom_nvram_device::bank2_w)
-{
- if (!m_nvram.empty() && offset < m_nvram.size())
- COMBINE_DATA(&m_nvram[offset]);
-}
-
-/*-------------------------------------------------
- CS2 bankswitching
- -------------------------------------------------*/
-
-void vsmile_rom_device::set_cs2(bool cs2)
-{
- m_bank_offset = cs2 ? 0x400000 : 0x000000;
-}