summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/nes/mmc3.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/nes/mmc3.h')
-rw-r--r--src/devices/bus/nes/mmc3.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/devices/bus/nes/mmc3.h b/src/devices/bus/nes/mmc3.h
index 6436b247cea..17578b92adf 100644
--- a/src/devices/bus/nes/mmc3.h
+++ b/src/devices/bus/nes/mmc3.h
@@ -12,8 +12,8 @@ class nes_txrom_device : public nes_nrom_device
{
public:
// construction/destruction
- nes_txrom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
- nes_txrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ nes_txrom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source);
+ nes_txrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// device-level overrides
virtual void device_start() override { mmc3_start(); }
@@ -29,13 +29,13 @@ public:
protected:
virtual void set_prg(int prg_base, int prg_mask);
- virtual void set_chr(UINT8 chr, int chr_base, int chr_mask);
+ virtual void set_chr(uint8_t chr, int chr_base, int chr_mask);
void mmc3_start();
void mmc3_common_initialize(int prg_mask, int chr_mask, int IRQ_type);
// are there MMC3 clones which need more regs?
- UINT16 m_mmc_prg_bank[4];
- UINT16 m_mmc_vrom_bank[8]; // a few clones need more than the 6 banks used by base MMC3 (e.g. waixing_g)
+ uint16_t m_mmc_prg_bank[4];
+ uint16_t m_mmc_vrom_bank[8]; // a few clones need more than the 6 banks used by base MMC3 (e.g. waixing_g)
int m_prg_base, m_prg_mask; // MMC3 based multigame carts select a block of banks by using these (and then act like normal MMC3),
int m_chr_base, m_chr_mask; // while MMC3 and clones (mapper 118 & 119) simply set them as 0 and 0xff resp.
@@ -44,8 +44,8 @@ protected:
int m_wram_protect;
int m_alt_irq;
- UINT16 m_irq_count, m_irq_count_latch;
- UINT8 m_irq_clear;
+ uint16_t m_irq_count, m_irq_count_latch;
+ uint8_t m_irq_clear;
int m_irq_enable;
};
@@ -56,7 +56,7 @@ class nes_hkrom_device : public nes_txrom_device
{
public:
// construction/destruction
- nes_hkrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ nes_hkrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// device-level overrides
virtual void device_start() override;
@@ -68,10 +68,10 @@ public:
protected:
int m_wram_enable;
- UINT8 m_mmc6_reg;
+ uint8_t m_mmc6_reg;
// MMC-6 contains 1K of internal ram, battery backed up
- UINT8 m_mmc6_ram[0x400];
+ uint8_t m_mmc6_ram[0x400];
};
@@ -81,7 +81,7 @@ class nes_txsrom_device : public nes_txrom_device
{
public:
// construction/destruction
- nes_txsrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ nes_txsrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// device-level overrides
virtual DECLARE_WRITE8_MEMBER(write_h) override;
@@ -98,10 +98,10 @@ class nes_tqrom_device : public nes_txrom_device
{
public:
// construction/destruction
- nes_tqrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ nes_tqrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected:
- virtual void set_chr( UINT8 chr, int chr_base, int chr_mask ) override;
+ virtual void set_chr( uint8_t chr, int chr_base, int chr_mask ) override;
};
@@ -111,7 +111,7 @@ class nes_qj_device : public nes_txrom_device
{
public:
// construction/destruction
- nes_qj_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ nes_qj_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// device-level overrides
virtual DECLARE_WRITE8_MEMBER(write_m) override;
@@ -125,7 +125,7 @@ class nes_zz_device : public nes_txrom_device
{
public:
// construction/destruction
- nes_zz_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+ nes_zz_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// device-level overrides
virtual DECLARE_WRITE8_MEMBER(write_m) override;