summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/embargo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/embargo.cpp')
-rw-r--r--src/mame/drivers/embargo.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mame/drivers/embargo.cpp b/src/mame/drivers/embargo.cpp
index 586b96e16af..3d373805bb8 100644
--- a/src/mame/drivers/embargo.cpp
+++ b/src/mame/drivers/embargo.cpp
@@ -19,12 +19,12 @@ public:
m_maincpu(*this, "maincpu") { }
/* memory pointers */
- required_shared_ptr<UINT8> m_videoram;
+ required_shared_ptr<uint8_t> m_videoram;
/* misc */
- UINT8 m_dial_enable_1;
- UINT8 m_dial_enable_2;
- UINT8 m_input_select;
+ uint8_t m_dial_enable_1;
+ uint8_t m_dial_enable_2;
+ uint8_t m_input_select;
DECLARE_READ8_MEMBER(input_port_bit_r);
DECLARE_READ8_MEMBER(dial_r);
DECLARE_WRITE8_MEMBER(port_1_w);
@@ -32,7 +32,7 @@ public:
DECLARE_WRITE8_MEMBER(input_select_w);
virtual void machine_start() override;
virtual void machine_reset() override;
- UINT32 screen_update_embargo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_embargo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
};
@@ -43,7 +43,7 @@ public:
*
*************************************/
-UINT32 embargo_state::screen_update_embargo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
+uint32_t embargo_state::screen_update_embargo(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
offs_t offs;
@@ -51,9 +51,9 @@ UINT32 embargo_state::screen_update_embargo(screen_device &screen, bitmap_rgb32
{
int i;
- UINT8 x = offs << 3;
- UINT8 y = offs >> 5;
- UINT8 data = m_videoram[offs];
+ uint8_t x = offs << 3;
+ uint8_t y = offs >> 5;
+ uint8_t data = m_videoram[offs];
for (i = 0; i < 8; i++)
{
@@ -84,17 +84,17 @@ READ8_MEMBER(embargo_state::input_port_bit_r)
READ8_MEMBER(embargo_state::dial_r)
{
- UINT8 lo = 0;
- UINT8 hi = 0;
+ uint8_t lo = 0;
+ uint8_t hi = 0;
- UINT8 mapped_lo = 0;
- UINT8 mapped_hi = 0;
+ uint8_t mapped_lo = 0;
+ uint8_t mapped_hi = 0;
int i;
/* game reads 4 bits per dial and maps them onto clock directions */
- static const UINT8 map[] =
+ static const uint8_t map[] =
{
0x00, 0x0b, 0x01, 0x02, 0x04, 0x04, 0x02, 0x03,
0x09, 0x0a, 0x08, 0x09, 0x08, 0x05, 0x07, 0x06