summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/mmc3_clones.h
diff options
context:
space:
mode:
author 0kmg <9137159+0kmg@users.noreply.github.com>2021-11-20 09:06:56 -0900
committer GitHub <noreply@github.com>2021-11-20 13:06:56 -0500
commitc55b1ec88816b10cd62ffcd3bd88aef97a3632da (patch)
tree90ca808315bc021492c047d471df0a33b52613ed /src/devices/bus/nes/mmc3_clones.h
parentb774465e41ab0a5f1df477bafc6708201cbff894 (diff)
bus/nes: Added support for boards using the SMD133 ASIC. (#8840)
* bus/nes: Added support for boards using the SMD133 ASIC. New working software list additions (nes.xml) ----------------------------------- Data East All-Star Collection [anonymous] Mega Man 8 in 1 (PL-0006) [anonymous] Super Games 143 in 1 (The Best Games of NES) [anonymous] Software list items promoted to working (nes.xml) --------------------------------------- CoolBoy 198 in 1 CoolBoy 400 in 1 CoolBoy 400 in 1 (alt, 403 games) Game 450 in 1 Game 500 in 1 Pocket Games 150 in 1 Super Game 218 in 1 (JF2181) Super Game 360 in 1 Super Game 402 in 1
Diffstat (limited to 'src/devices/bus/nes/mmc3_clones.h')
-rw-r--r--src/devices/bus/nes/mmc3_clones.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/devices/bus/nes/mmc3_clones.h b/src/devices/bus/nes/mmc3_clones.h
index faeacccb091..f71adaac9ef 100644
--- a/src/devices/bus/nes/mmc3_clones.h
+++ b/src/devices/bus/nes/mmc3_clones.h
@@ -1123,21 +1123,29 @@ private:
uint8_t m_reg[4];
};
-// ======================> nes_coolboy_device
-class nes_coolboy_device : public nes_txrom_device
+// ======================> nes_smd133_device
+
+class nes_smd133_device : public nes_txrom_device
{
public:
// construction/destruction
- nes_coolboy_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ nes_smd133_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
- // device-level overrides
- virtual void write_m(offs_t offset, uint8_t data) override;
+ virtual void write_l(offs_t offset, u8 data) override;
+ virtual void write_m(offs_t offset, u8 data) override;
virtual void prg_cb(int start, int bank) override;
virtual void chr_cb(int start, int bank, int source) override;
+ virtual void pcb_reset() override;
+
+protected:
+ // device-level overrides
+ virtual void device_start() override;
+
private:
- uint8_t m_reg[4];
+ void smd133_write(offs_t offset, u8 data);
+ u8 m_reg[6];
};
@@ -1200,6 +1208,6 @@ DECLARE_DEVICE_TYPE(NES_BMC_830832C, nes_bmc_830832c_device)
DECLARE_DEVICE_TYPE(NES_BMC_YY841101C, nes_bmc_yy841101c_device)
DECLARE_DEVICE_TYPE(NES_BMC_YY841155C, nes_bmc_yy841155c_device)
DECLARE_DEVICE_TYPE(NES_PJOY84, nes_pjoy84_device)
-DECLARE_DEVICE_TYPE(NES_COOLBOY, nes_coolboy_device)
+DECLARE_DEVICE_TYPE(NES_SMD133, nes_smd133_device)
#endif // MAME_BUS_NES_MMC3_CLONES_H