summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vsmile/rom.cpp
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2019-02-03 18:07:39 +0100
committer MooglyGuy <therealmogminer@gmail.com>2019-02-03 18:08:03 +0100
commit3cc0f27d8951c3aebc5d43d22862f8f812c8b167 (patch)
tree591712b5361ea52178fccd1e3a5541eaf1bbdbb0 /src/devices/bus/vsmile/rom.cpp
parentb6fb151b5e66fe7cb5692cd6012bbc4af3eeadbb (diff)
New machines marked as NOT_WORKING
---------------------------------- V.Smile Motion (US) New NOT_WORKING software list additions --------------------------------------- vsmilem_cart: Für immer Shrek (Ger), Toy Story 3 (Ger) -devices/bus/vsmile/vsmile_cart: Added support for later 8MWord cartridges. [Ryan Holtz] -vsmile: Added separate machine driver for V.Smile Motion. Needs proper BIOS dump, currently using the V.Smile US BIOS. [Ryan Holtz]
Diffstat (limited to 'src/devices/bus/vsmile/rom.cpp')
-rw-r--r--src/devices/bus/vsmile/rom.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/devices/bus/vsmile/rom.cpp b/src/devices/bus/vsmile/rom.cpp
index 49740bc7f37..584a8cfe058 100644
--- a/src/devices/bus/vsmile/rom.cpp
+++ b/src/devices/bus/vsmile/rom.cpp
@@ -49,10 +49,12 @@ vsmile_rom_nvram_device::vsmile_rom_nvram_device(const machine_config &mconfig,
void vsmile_rom_device::device_start()
{
+ save_item(NAME(m_bank_offset));
}
void vsmile_rom_device::device_reset()
{
+ m_bank_offset = 0;
}
@@ -73,3 +75,12 @@ 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;
+}