summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/dai3wksi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/dai3wksi.cpp')
-rw-r--r--src/mame/drivers/dai3wksi.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mame/drivers/dai3wksi.cpp b/src/mame/drivers/dai3wksi.cpp
index 879163b3fb9..a068d5722c9 100644
--- a/src/mame/drivers/dai3wksi.cpp
+++ b/src/mame/drivers/dai3wksi.cpp
@@ -73,15 +73,15 @@ public:
required_device<palette_device> m_palette;
/* video */
- required_shared_ptr<UINT8> m_dai3wksi_videoram;
+ required_shared_ptr<uint8_t> m_dai3wksi_videoram;
int m_dai3wksi_flipscreen;
int m_dai3wksi_redscreen;
int m_dai3wksi_redterop;
- UINT32 screen_update_dai3wksi(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_dai3wksi(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
/* sound */
- UINT8 m_port_last1;
- UINT8 m_port_last2;
+ uint8_t m_port_last1;
+ uint8_t m_port_last2;
int m_enabled_sound;
int m_sound3_counter;
DECLARE_WRITE8_MEMBER(dai3wksi_audio_1_w);
@@ -102,7 +102,7 @@ public:
*
*************************************/
-static const UINT8 vr_prom1[64*8*2]={
+static const uint8_t vr_prom1[64*8*2]={
6, 6,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, 3,3,3,3,3,3,3,3, 5,5,5,5,5,5,5,5, 3,3,3,3,3,3,3,3, 2,2,2,2,2,2,2,2, 6,6,6,6,6,6,6,6, 4,4,4,4,4,4,4,
6, 6,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, 3,3,3,3,3,3,3,3, 5,5,5,5,5,5,5,5, 3,3,3,3,3,3,3,3, 2,2,2,2,2,2,2,2, 6,6,6,6,6,6,6,6, 4,4,4,4,4,4,4,
6, 6,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, 3,3,3,3,3,3,3,3, 5,5,5,5,5,5,5,5, 3,3,3,3,3,3,3,3, 2,2,2,2,2,2,2,2, 6,6,6,6,6,6,6,6, 4,4,4,4,4,4,4,
@@ -122,7 +122,7 @@ static const UINT8 vr_prom1[64*8*2]={
3, 3,3,2,2,6,6,6,6, 6,6,6,6,6,6,6,6, 3,3,3,3,3,3,3,3, 5,5,5,5,5,5,5,5, 3,3,3,3,3,3,3,3, 2,2,2,2,2,2,2,2, 6,6,6,6,6,6,6,6, 4,4,4,4,4,4,4,
};
-static const UINT8 vr_prom2[64*8*2]={
+static const uint8_t vr_prom2[64*8*2]={
6, 6,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, 3,3,3,3,3,3,3,3, 7,7,7,7,7,7,7,7, 3,3,3,3,3,3,3,3, 2,2,2,2,2,2,2,2, 6,6,6,6,6,6,6,6, 4,4,4,4,4,4,4,
6, 6,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, 3,3,3,3,3,3,3,3, 7,7,7,7,7,7,7,7, 3,3,3,3,3,3,3,3, 2,2,2,2,2,2,2,2, 6,6,6,6,6,6,6,6, 4,4,4,4,4,4,4,
6, 6,6,6,6,6,6,6,6, 6,6,6,6,6,6,6,6, 3,3,3,3,3,3,3,3, 7,7,7,7,7,7,7,7, 3,3,3,3,3,3,3,3, 2,2,2,2,2,2,2,2, 6,6,6,6,6,6,6,6, 4,4,4,4,4,4,4,
@@ -142,14 +142,14 @@ static const UINT8 vr_prom2[64*8*2]={
3, 3,3,2,2,6,6,6,6, 6,6,6,6,6,6,6,6, 3,3,3,3,3,3,3,3, 7,7,7,7,7,7,7,7, 3,3,3,3,3,3,3,3, 2,2,2,2,2,2,2,2, 6,6,6,6,6,6,6,6, 4,4,4,4,4,4,4,
};
-UINT32 dai3wksi_state::screen_update_dai3wksi(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
+uint32_t dai3wksi_state::screen_update_dai3wksi(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
for (offs_t offs = 0; offs < m_dai3wksi_videoram.bytes(); offs++)
{
- UINT8 x = offs << 2;
- UINT8 y = offs >> 6;
- UINT8 data = m_dai3wksi_videoram[offs];
- UINT8 color;
+ uint8_t x = offs << 2;
+ uint8_t y = offs >> 6;
+ uint8_t data = m_dai3wksi_videoram[offs];
+ uint8_t color;
int value = (x >> 2) + ((y >> 5) << 6) + 64 * 8 * (m_dai3wksi_redterop ? 1 : 0);
if (m_dai3wksi_redscreen)
@@ -207,7 +207,7 @@ UINT32 dai3wksi_state::screen_update_dai3wksi(screen_device &screen, bitmap_rgb3
#if (USE_SAMPLES)
WRITE8_MEMBER(dai3wksi_state::dai3wksi_audio_1_w)
{
- UINT8 rising_bits = data & ~m_port_last1;
+ uint8_t rising_bits = data & ~m_port_last1;
m_enabled_sound = data & 0x80;
@@ -226,7 +226,7 @@ WRITE8_MEMBER(dai3wksi_state::dai3wksi_audio_1_w)
WRITE8_MEMBER(dai3wksi_state::dai3wksi_audio_2_w)
{
- UINT8 rising_bits = data & ~m_port_last2;
+ uint8_t rising_bits = data & ~m_port_last2;
m_dai3wksi_flipscreen = data & 0x10;
m_dai3wksi_redscreen = ~data & 0x20;