summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/subor.h
diff options
context:
space:
mode:
author kazblox <>2017-03-12 19:42:44 -0400
committer kazblox <>2017-03-21 07:46:36 -0400
commitc488308495840ae060f4c8953c4a7be601b0c8ca (patch)
treef0062957f11dc63b0ec6c78d73673b73485b67ee /src/devices/bus/nes/subor.h
parente78708c1c8c85c34103211f5cf6e03784b4e3c9c (diff)
nes: Add Subor Type 2 board. (nw)
nes: Fix debug output when reading iNES headers. (nw) nes/ppu2c0x: Improved PAL clone timings. (nw) nes/n2a03: Refactored clock definitions [includes other drivers using the N2A03] (nw) nes: Improved refresh rates and timings to reflect nesdev (nw) nes: Softlist improvements and corrections [koko, mkgoogoo and others] (nw) nes: Verified koko in the softlist as a good dump (nw) nes: Softlist additions [subor5, subor6, subor10, subor11, subor13, doolybld] (nw) New not working machines added: Subor SB-486, M82 Display Unit (PAL) (nw) nes: Marked drpcjr as NOT WORKING due to missing hardware. (nw) New working machines added: Micro Genius IQ-501, Micro Genius IQ-502, Dendy Classic 2 (nw) nes: marked dendy as a clone of iq501 (nw)
Diffstat (limited to 'src/devices/bus/nes/subor.h')
-rw-r--r--src/devices/bus/nes/subor.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/devices/bus/nes/subor.h b/src/devices/bus/nes/subor.h
new file mode 100644
index 00000000000..167561f3b36
--- /dev/null
+++ b/src/devices/bus/nes/subor.h
@@ -0,0 +1,78 @@
+// license:BSD-3-Clause
+// copyright-holders:Kaz
+#ifndef MAME_BUS_NES_SUBOR_H
+#define MAME_BUS_NES_SUBOR_H
+
+#include "nxrom.h"
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> nes_subor0_device
+
+class nes_subor0_device :
+ public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_subor0_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+ // device-level overrides
+ virtual void device_start() override;
+ virtual DECLARE_WRITE8_MEMBER(write_h) override;
+
+ virtual void pcb_reset() override;
+
+private:
+ uint8_t m_reg[4];
+};
+
+// ======================> nes_subor1_device
+
+class nes_subor1_device :
+ public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_subor1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+ // device-level overrides
+ virtual void device_start() override;
+ virtual DECLARE_WRITE8_MEMBER(write_h) override;
+
+ virtual void pcb_reset() override;
+
+private:
+ uint8_t m_reg[4];
+};
+
+// ======================> nes_subor2_device
+
+class nes_subor2_device :
+ public nes_nrom_device
+{
+public:
+ // construction/destruction
+ nes_subor2_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+
+ // device-level overrides
+ virtual void device_start() override;
+ virtual DECLARE_READ8_MEMBER(nt_r) override;
+ virtual DECLARE_WRITE8_MEMBER(write_l) override;
+ virtual DECLARE_READ8_MEMBER(read_l) override;
+
+ virtual void ppu_latch(offs_t offset) override;
+ virtual void pcb_reset() override;
+
+private:
+ void update_banks();
+ uint8_t m_switch_reg, m_bank_reg, m_chr_banking, m_page;
+};
+
+// device type definition
+extern const device_type NES_SUBOR0;
+extern const device_type NES_SUBOR1;
+extern const device_type NES_SUBOR2;
+
+#endif /* MAME_BUS_NES_SUBOR_H */ \ No newline at end of file