summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/mmc3_clones.h
diff options
context:
space:
mode:
author 0kmg <9137159+0kmg@users.noreply.github.com>2022-04-09 16:51:16 -0800
committer GitHub <noreply@github.com>2022-04-09 20:51:16 -0400
commit0270ca721b9b28dfcb597a52ca6f34c813f719de (patch)
tree9ef3a49a6caea75d60199991c17ea47111cf4d94 /src/devices/bus/nes/mmc3_clones.h
parent07b5dc9d4754a10edea50cc3b376eb89c4cbdc0d (diff)
bus/nes: Added support for Sachen's Zhōngguó Dàhēng cartridge. (#9540)
Diffstat (limited to 'src/devices/bus/nes/mmc3_clones.h')
-rw-r--r--src/devices/bus/nes/mmc3_clones.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/devices/bus/nes/mmc3_clones.h b/src/devices/bus/nes/mmc3_clones.h
index d6da92864d6..c9cd8b0e57a 100644
--- a/src/devices/bus/nes/mmc3_clones.h
+++ b/src/devices/bus/nes/mmc3_clones.h
@@ -476,6 +476,30 @@ private:
u8 m_reg;
};
+// ======================> nes_sachen_zgdh_device
+
+class nes_sachen_zgdh_device : public nes_txrom_device
+{
+public:
+ // construction/destruction
+ nes_sachen_zgdh_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+
+ virtual void write_l(offs_t offset, u8 data) override;
+ virtual u8 nt_r(offs_t offset) override;
+ virtual void nt_w(offs_t offset, u8 data) override;
+
+ virtual void pcb_reset() override;
+
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+
+ virtual void set_chr(u8 chr, int chr_base, int chr_mask) override;
+
+private:
+ u8 m_reg;
+};
+
// ======================> nes_a9746_device
class nes_a9746_device : public nes_txrom_device
@@ -1229,6 +1253,7 @@ DECLARE_DEVICE_TYPE(NES_COCOMA, nes_cocoma_device)
DECLARE_DEVICE_TYPE(NES_GOUDER, nes_gouder_device)
DECLARE_DEVICE_TYPE(NES_SA9602B, nes_sa9602b_device)
DECLARE_DEVICE_TYPE(NES_SACHEN_SHERO, nes_sachen_shero_device)
+DECLARE_DEVICE_TYPE(NES_SACHEN_ZGDH, nes_sachen_zgdh_device)
DECLARE_DEVICE_TYPE(NES_A9746, nes_a9746_device)
DECLARE_DEVICE_TYPE(NES_A88S1, nes_a88s1_device)