summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/racermate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/racermate.h')
-rw-r--r--src/devices/bus/nes/racermate.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/devices/bus/nes/racermate.h b/src/devices/bus/nes/racermate.h
new file mode 100644
index 00000000000..209c2f56601
--- /dev/null
+++ b/src/devices/bus/nes/racermate.h
@@ -0,0 +1,35 @@
+// license:BSD-3-Clause
+// copyright-holders:Fabio Priuli
+#ifndef __NES_RACERMATE_H
+#define __NES_RACERMATE_H
+
+#include "nxrom.h"
+
+
+// ======================> nes_racermate_device
+
+class nes_racermate_device : public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_racermate_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // device-level overrides
+ virtual void device_start();
+ virtual DECLARE_WRITE8_MEMBER(write_h);
+
+ virtual void pcb_reset();
+
+private:
+ void update_banks();
+ UINT8 m_latch;
+};
+
+
+
+
+
+// device type definition
+extern const device_type NES_RACERMATE;
+
+#endif