summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers')
-rw-r--r--src/mame/drivers/intellec4.cpp1
-rw-r--r--src/mame/drivers/playch10.cpp10
2 files changed, 6 insertions, 5 deletions
diff --git a/src/mame/drivers/intellec4.cpp b/src/mame/drivers/intellec4.cpp
index d8941c8edd5..cff6bc9b716 100644
--- a/src/mame/drivers/intellec4.cpp
+++ b/src/mame/drivers/intellec4.cpp
@@ -101,6 +101,7 @@ public:
DECLARE_INPUT_CHANGED_MEMBER(sw_do_enable);
void intellec4(machine_config &config);
+
protected:
intellec4_state(machine_config const &mconfig, device_type type, char const *tag)
: driver_device(mconfig, type, tag)
diff --git a/src/mame/drivers/playch10.cpp b/src/mame/drivers/playch10.cpp
index 4f018c76736..da21bba2c21 100644
--- a/src/mame/drivers/playch10.cpp
+++ b/src/mame/drivers/playch10.cpp
@@ -304,6 +304,8 @@ Notes & Todo:
#include "screen.h"
#include "speaker.h"
+#include "playch10.lh"
+
/******************************************************************************/
@@ -339,12 +341,10 @@ WRITE8_MEMBER(playch10_state::sprite_dma_w)
WRITE8_MEMBER(playch10_state::time_w)
{
- if(data == 0xf)
- data = 0;
+ constexpr static uint8_t DIGIT_MAP[16] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7c, 0x07, 0x7f, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
m_timedata[offset] = data;
-
- popmessage("Time: %d%d%d%d",m_timedata[3],m_timedata[2],m_timedata[1],m_timedata[0]);
+ m_timedigits[offset] = DIGIT_MAP[data & 0x0f];
}
@@ -669,7 +669,7 @@ MACHINE_CONFIG_START(playch10_state::playch10)
MCFG_GFXDECODE_ADD("gfxdecode", "palette", playch10)
MCFG_PALETTE_ADD("palette", 256+8*4*16)
MCFG_PALETTE_INIT_OWNER(playch10_state, playch10)
- MCFG_DEFAULT_LAYOUT(layout_dualhuov)
+ MCFG_DEFAULT_LAYOUT(layout_playch10)
MCFG_SCREEN_ADD("top", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)