summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/playch10.h
diff options
context:
space:
mode:
author 0kmg <9137159+0kmg@users.noreply.github.com>2022-02-28 03:29:21 -0900
committer GitHub <noreply@github.com>2022-02-28 07:29:21 -0500
commit7aebdc99d8510f34fc9d4cdb02fbe743d4f33ac7 (patch)
treea1ca9a69bb344c244fc10bc56b34645ff9dccc7c /src/mame/includes/playch10.h
parentfba39f5b01b9b7c15a4744d7c478a0ab4bec8390 (diff)
playch10.cpp: Various cleanups. (#9349)
- Modernized PRG ROM banking. - Cleaned up cart daughter board initialization code. - Fixed daughter board RAM sizes for Baseball Star, Pinbot, and Punch-Out. Punch-Out's is NVRAM and it now saves properly.
Diffstat (limited to 'src/mame/includes/playch10.h')
-rw-r--r--src/mame/includes/playch10.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mame/includes/playch10.h b/src/mame/includes/playch10.h
index 6eef1bd1c3e..d2e8985acf5 100644
--- a/src/mame/includes/playch10.h
+++ b/src/mame/includes/playch10.h
@@ -23,6 +23,8 @@ public:
, m_ram_8w(*this, "ram_8w")
, m_videoram(*this, "videoram")
, m_gfxdecode(*this, "gfxdecode")
+ , m_prg_banks(*this, "prg%u", 0U)
+ , m_prg_view(*this, "prg_view")
, m_vrom_region(*this, "gfx2")
, m_timedigits(*this, "digit_%u", 0U)
{
@@ -48,10 +50,8 @@ public:
void init_pcbboard();
void init_pccboard();
void init_pcdboard();
- void init_pcdboard_2();
void init_pceboard();
void init_pcfboard();
- void init_pcfboard_2();
void init_virus();
void init_ttoon();
void init_pcgboard();
@@ -150,6 +150,14 @@ private:
required_shared_ptr<uint8_t> m_videoram;
required_device<gfxdecode_device> m_gfxdecode;
+ void init_prg_banking();
+ void prg32(int bank);
+ void prg16(int slot, int bank);
+ void prg8(int slot, int bank);
+ memory_bank_array_creator<4> m_prg_banks;
+ memory_view m_prg_view;
+ int m_prg_chunks;
+
optional_memory_region m_vrom_region;
output_finder<4> m_timedigits;
@@ -173,14 +181,11 @@ private:
std::unique_ptr<uint8_t[]> m_vram;
uint8_t* m_nametable[4];
std::unique_ptr<uint8_t[]> m_nt_ram;
- std::unique_ptr<uint8_t[]> m_extra_ram;
chr_bank m_chr_page[8];
int m_mmc1_shiftreg;
int m_mmc1_shiftcount;
- int m_mmc1_rom_mask;
int m_gboard_banks[2];
int m_gboard_4screen;
- int m_gboard_last_bank;
int m_gboard_command;
int m_IRQ_count;
uint8_t m_IRQ_count_latch;