summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/msx_cart/superloderunner.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/msx_cart/superloderunner.h')
-rw-r--r--src/devices/bus/msx_cart/superloderunner.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/devices/bus/msx_cart/superloderunner.h b/src/devices/bus/msx_cart/superloderunner.h
new file mode 100644
index 00000000000..f3737081b98
--- /dev/null
+++ b/src/devices/bus/msx_cart/superloderunner.h
@@ -0,0 +1,35 @@
+// license:BSD-3-Clause
+// copyright-holders:Wilbert Pol
+#ifndef __MSX_CART_SUPERLODERUNNER_H
+#define __MSX_CART_SUPERLODERUNNER_H
+
+#include "bus/msx_cart/cartridge.h"
+
+
+extern const device_type MSX_CART_SUPERLODERUNNER;
+
+
+class msx_cart_superloderunner : public device_t
+ , public msx_cart_interface
+{
+public:
+ msx_cart_superloderunner(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // device-level overrides
+ virtual void device_start();
+
+ virtual void initialize_cartridge();
+
+ virtual DECLARE_READ8_MEMBER(read_cart);
+
+ DECLARE_WRITE8_MEMBER(banking);
+
+ void restore_banks();
+
+private:
+ UINT8 m_selected_bank;
+ UINT8 *m_bank_base;
+};
+
+
+#endif