summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/playch10.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/playch10.cpp')
-rw-r--r--src/mame/machine/playch10.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/mame/machine/playch10.cpp b/src/mame/machine/playch10.cpp
index 89d21e15212..c6ef69d0149 100644
--- a/src/mame/machine/playch10.cpp
+++ b/src/mame/machine/playch10.cpp
@@ -42,7 +42,7 @@ void playch10_state::machine_start()
/* allocate 4K of nametable ram here */
/* move to individual boards as documentation of actual boards allows */
- m_nt_ram = std::make_unique<UINT8[]>(0x1000);
+ m_nt_ram = std::make_unique<uint8_t[]>(0x1000);
machine().device("ppu")->memory().space(AS_PROGRAM).install_readwrite_handler(0, 0x1fff, read8_delegate(FUNC(playch10_state::pc10_chr_r),this), write8_delegate(FUNC(playch10_state::pc10_chr_w),this));
machine().device("ppu")->memory().space(AS_PROGRAM).install_readwrite_handler(0x2000, 0x3eff, read8_delegate(FUNC(playch10_state::pc10_nt_r),this),write8_delegate(FUNC(playch10_state::pc10_nt_w),this));
@@ -62,10 +62,10 @@ MACHINE_START_MEMBER(playch10_state,playch10_hboard)
/* allocate 4K of nametable ram here */
/* move to individual boards as documentation of actual boards allows */
- m_nt_ram = std::make_unique<UINT8[]>(0x1000);
+ m_nt_ram = std::make_unique<uint8_t[]>(0x1000);
/* allocate vram */
- m_vram = std::make_unique<UINT8[]>(0x2000);
+ m_vram = std::make_unique<uint8_t[]>(0x2000);
machine().device("ppu")->memory().space(AS_PROGRAM).install_readwrite_handler(0, 0x1fff, read8_delegate(FUNC(playch10_state::pc10_chr_r),this), write8_delegate(FUNC(playch10_state::pc10_chr_w),this));
machine().device("ppu")->memory().space(AS_PROGRAM).install_readwrite_handler(0x2000, 0x3eff, read8_delegate(FUNC(playch10_state::pc10_nt_r),this), write8_delegate(FUNC(playch10_state::pc10_nt_w),this));
@@ -230,7 +230,7 @@ READ8_MEMBER(playch10_state::pc10_in1_r)
int trigger = ioport("P1")->read();
int x = ioport("GUNX")->read();
int y = ioport("GUNY")->read();
- UINT32 pix, color_base;
+ uint32_t pix, color_base;
/* no sprite hit (yet) */
ret |= 0x08;
@@ -520,7 +520,7 @@ WRITE8_MEMBER(playch10_state::mmc1_rom_switch_w)
case 3: /* program banking */
{
int bank = (m_mmc1_shiftreg & m_mmc1_rom_mask) * 0x4000;
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
if (!size16k)
{
@@ -576,14 +576,14 @@ DRIVER_INIT_MEMBER(playch10_state,pcaboard)
WRITE8_MEMBER(playch10_state::bboard_rom_switch_w)
{
int bankoffset = 0x10000 + ((data & 7) * 0x4000);
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
memcpy(&prg[0x08000], &prg[bankoffset], 0x4000);
}
DRIVER_INIT_MEMBER(playch10_state,pcbboard)
{
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
/* We do manual banking, in case the code falls through */
/* Copy the initial banks */
@@ -596,7 +596,7 @@ DRIVER_INIT_MEMBER(playch10_state,pcbboard)
DRIVER_INIT_CALL(playch10);
/* allocate vram */
- m_vram = std::make_unique<UINT8[]>(0x2000);
+ m_vram = std::make_unique<uint8_t[]>(0x2000);
/* set the mirroring here */
m_mirroring = PPU_MIRROR_VERT;
@@ -629,7 +629,7 @@ DRIVER_INIT_MEMBER(playch10_state,pccboard)
DRIVER_INIT_MEMBER(playch10_state,pcdboard)
{
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
/* We do manual banking, in case the code falls through */
/* Copy the initial banks */
@@ -644,7 +644,7 @@ DRIVER_INIT_MEMBER(playch10_state,pcdboard)
/* common init */
DRIVER_INIT_CALL(playch10);
/* allocate vram */
- m_vram = std::make_unique<UINT8[]>(0x2000);
+ m_vram = std::make_unique<uint8_t[]>(0x2000);
/* special init */
set_videoram_bank(0, 8, 0, 8);
}
@@ -660,7 +660,7 @@ DRIVER_INIT_MEMBER(playch10_state,pcdboard_2)
DRIVER_INIT_CALL(pcdboard);
/* allocate vram */
- m_vram = std::make_unique<UINT8[]>(0x2000);
+ m_vram = std::make_unique<uint8_t[]>(0x2000);
/* special init */
set_videoram_bank(0, 8, 0, 8);
}
@@ -701,7 +701,7 @@ WRITE8_MEMBER(playch10_state::eboard_rom_switch_w)
case 0x2000: /* code bank switching */
{
int bankoffset = 0x10000 + (data & 0x0f) * 0x2000;
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
memcpy(&prg[0x08000], &prg[bankoffset], 0x2000);
}
break;
@@ -739,7 +739,7 @@ WRITE8_MEMBER(playch10_state::eboard_rom_switch_w)
DRIVER_INIT_MEMBER(playch10_state,pceboard)
{
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
/* we have no vram, make sure switching games doesn't point to an old allocation */
m_vram = nullptr;
@@ -766,8 +766,8 @@ DRIVER_INIT_MEMBER(playch10_state,pceboard)
DRIVER_INIT_MEMBER(playch10_state,pcfboard)
{
- UINT8 *prg = memregion("cart")->base();
- UINT32 len = memregion("cart")->bytes();
+ uint8_t *prg = memregion("cart")->base();
+ uint32_t len = memregion("cart")->bytes();
/* we have no vram, make sure switching games doesn't point to an old allocation */
m_vram = nullptr;
@@ -831,7 +831,7 @@ WRITE8_MEMBER(playch10_state::gboard_rom_switch_w)
if (m_gboard_last_bank != (data & 0xc0))
{
int bank;
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
/* reset the banks */
if (m_gboard_command & 0x40)
@@ -861,7 +861,7 @@ WRITE8_MEMBER(playch10_state::gboard_rom_switch_w)
case 0x0001:
{
- UINT8 cmd = m_gboard_command & 0x07;
+ uint8_t cmd = m_gboard_command & 0x07;
int page = (m_gboard_command & 0x80) >> 5;
int bank;
@@ -884,7 +884,7 @@ WRITE8_MEMBER(playch10_state::gboard_rom_switch_w)
case 6: /* program banking */
{
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
if (m_gboard_command & 0x40)
{
/* high bank */
@@ -909,7 +909,7 @@ WRITE8_MEMBER(playch10_state::gboard_rom_switch_w)
case 7: /* program banking */
{
/* mid bank */
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
m_gboard_banks[1] = data & 0x1f;
bank = m_gboard_banks[1] * 0x2000 + 0x10000;
@@ -954,7 +954,7 @@ WRITE8_MEMBER(playch10_state::gboard_rom_switch_w)
DRIVER_INIT_MEMBER(playch10_state,pcgboard)
{
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
m_vram = nullptr;
/* We do manual banking, in case the code falls through */
@@ -998,7 +998,7 @@ DRIVER_INIT_MEMBER(playch10_state,pcgboard_type2)
WRITE8_MEMBER(playch10_state::iboard_rom_switch_w)
{
int bank = data & 7;
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
if (data & 0x10)
pc10_set_mirroring(PPU_MIRROR_HIGH);
@@ -1010,7 +1010,7 @@ WRITE8_MEMBER(playch10_state::iboard_rom_switch_w)
DRIVER_INIT_MEMBER(playch10_state,pciboard)
{
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
/* We do manual banking, in case the code falls through */
/* Copy the initial banks */
@@ -1023,7 +1023,7 @@ DRIVER_INIT_MEMBER(playch10_state,pciboard)
DRIVER_INIT_CALL(playch10);
/* allocate vram */
- m_vram = std::make_unique<UINT8[]>(0x2000);
+ m_vram = std::make_unique<uint8_t[]>(0x2000);
/* special init */
set_videoram_bank(0, 8, 0, 8);
}
@@ -1037,7 +1037,7 @@ WRITE8_MEMBER(playch10_state::hboard_rom_switch_w)
{
case 0x0001:
{
- UINT8 cmd = m_gboard_command & 0x07;
+ uint8_t cmd = m_gboard_command & 0x07;
int page = (m_gboard_command & 0x80) >> 5;
switch (cmd)
@@ -1079,7 +1079,7 @@ WRITE8_MEMBER(playch10_state::hboard_rom_switch_w)
DRIVER_INIT_MEMBER(playch10_state,pchboard)
{
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
memcpy(&prg[0x08000], &prg[0x4c000], 0x4000);
memcpy(&prg[0x0c000], &prg[0x4c000], 0x4000);
@@ -1107,7 +1107,7 @@ DRIVER_INIT_MEMBER(playch10_state,pchboard)
DRIVER_INIT_MEMBER(playch10_state,pckboard)
{
- UINT8 *prg = memregion("cart")->base();
+ uint8_t *prg = memregion("cart")->base();
/* We do manual banking, in case the code falls through */
/* Copy the initial banks */
@@ -1125,7 +1125,7 @@ DRIVER_INIT_MEMBER(playch10_state,pckboard)
DRIVER_INIT_CALL(playch10);
/* allocate vram */
- m_vram = std::make_unique<UINT8[]>(0x2000);
+ m_vram = std::make_unique<uint8_t[]>(0x2000);
/* special init */
set_videoram_bank(0, 8, 0, 8);
}