summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/msx_cart/arc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/msx_cart/arc.cpp')
-rw-r--r--src/devices/bus/msx_cart/arc.cpp63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/devices/bus/msx_cart/arc.cpp b/src/devices/bus/msx_cart/arc.cpp
deleted file mode 100644
index 406ec8f4de3..00000000000
--- a/src/devices/bus/msx_cart/arc.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Wilbert Pol
-#include "emu.h"
-#include "arc.h"
-
-
-DEFINE_DEVICE_TYPE(MSX_CART_ARC, msx_cart_arc_device, "msx_cart_arc", "MSX Cartridge - Arc")
-
-
-msx_cart_arc_device::msx_cart_arc_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : device_t(mconfig, MSX_CART_ARC, tag, owner, clock)
- , msx_cart_interface(mconfig, *this)
- , m_7f(0)
-{
-}
-
-
-void msx_cart_arc_device::device_start()
-{
- // Install IO read/write handlers
- io_space().install_write_handler(0x7f, 0x7f, write8smo_delegate(FUNC(msx_cart_arc_device::io_7f_w), this));
- io_space().install_read_handler(0x7f, 0x7f, read8smo_delegate(FUNC(msx_cart_arc_device::io_7f_r), this));
-}
-
-
-void msx_cart_arc_device::device_reset()
-{
- m_7f = 0;
-}
-
-
-void msx_cart_arc_device::initialize_cartridge()
-{
- if (get_rom_size() != 0x8000)
- {
- fatalerror("arc: Invalid ROM size\n");
- }
-}
-
-
-uint8_t msx_cart_arc_device::read_cart(offs_t offset)
-{
- if (offset >= 0x4000 && offset < 0xc000)
- {
- return get_rom_base()[offset - 0x4000];
- }
- return 0xff;
-}
-
-
-void msx_cart_arc_device::io_7f_w(uint8_t data)
-{
- if (data == 0x35)
- {
- m_7f++;
- }
-}
-
-
-uint8_t msx_cart_arc_device::io_7f_r()
-{
- return ((m_7f & 0x03) == 0x03) ? 0xda : 0xff;
-}