summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/mmc3_clones.h
diff options
context:
space:
mode:
author 0kmg <9137159+0kmg@users.noreply.github.com>2022-01-18 17:26:47 -0900
committer GitHub <noreply@github.com>2022-01-18 21:26:47 -0500
commit023b854a88255f7362ea915e93a4bad9a5a719fa (patch)
tree3a56fe79d6156b5bbb7a95fef2bd54a1ebda5f5f /src/devices/bus/nes/mmc3_clones.h
parentf5072370b0d22802f71b17a449d18243de39a9e7 (diff)
bus/nes: Simplified H2288 board a bit. (#9135)
Software list items promoted to working (nes.xml) --------------------------------------- Ultimate Mortal Kombat 3 (Asia, 14 characters) [kmg]
Diffstat (limited to 'src/devices/bus/nes/mmc3_clones.h')
-rw-r--r--src/devices/bus/nes/mmc3_clones.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/devices/bus/nes/mmc3_clones.h b/src/devices/bus/nes/mmc3_clones.h
index b0d6dfee3bd..812b953c249 100644
--- a/src/devices/bus/nes/mmc3_clones.h
+++ b/src/devices/bus/nes/mmc3_clones.h
@@ -278,11 +278,13 @@ class nes_h2288_device : public nes_txrom_device
{
public:
// construction/destruction
- nes_h2288_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
+ nes_h2288_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
- virtual uint8_t read_l(offs_t offset) override;
- virtual void write_l(offs_t offset, uint8_t data) override;
- virtual void write_h(offs_t offset, uint8_t data) override;
+// FIXME: This is a hack and should be removed once open bus behavior is properly working. UMK3 depends on an open bus read (F51F: lda $5f74) at bootup.
+ virtual u8 read_l(offs_t offset) override { return 0x5f; }
+
+ virtual void write_l(offs_t offset, u8 data) override;
+ virtual void write_h(offs_t offset, u8 data) override;
virtual void prg_cb(int start, int bank) override;
virtual void pcb_reset() override;
@@ -292,7 +294,7 @@ protected:
virtual void device_start() override;
private:
- uint8_t m_reg[2]; // reg 1 is unused?
+ bool m_mmc3_mode;
};