summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/nanjing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/nanjing.h')
-rw-r--r--src/devices/bus/nes/nanjing.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/devices/bus/nes/nanjing.h b/src/devices/bus/nes/nanjing.h
new file mode 100644
index 00000000000..40fb8c2e714
--- /dev/null
+++ b/src/devices/bus/nes/nanjing.h
@@ -0,0 +1,38 @@
+// license:BSD-3-Clause
+// copyright-holders:Fabio Priuli
+#ifndef __NES_NANJING_H
+#define __NES_NANJING_H
+
+#include "nxrom.h"
+
+
+// ======================> nes_nanjing_device
+
+class nes_nanjing_device : public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_nanjing_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ // device-level overrides
+ virtual void device_start();
+ virtual DECLARE_READ8_MEMBER(read_l);
+ virtual DECLARE_WRITE8_MEMBER(write_l);
+
+ virtual void hblank_irq(int scanline, int vblank, int blanked);
+ virtual void pcb_reset();
+
+private:
+ UINT8 m_count;
+ UINT8 m_reg[2];
+ UINT8 m_latch1, m_latch2;
+};
+
+
+
+
+
+// device type definition
+extern const device_type NES_NANJING;
+
+#endif