summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/mekd2.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 13:13:17 +0200
commitddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch)
treea70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/drivers/mekd2.cpp
parent333bff8de64dfaeb98134000412796b4fdef970b (diff)
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/mame/drivers/mekd2.cpp')
-rw-r--r--src/mame/drivers/mekd2.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/mekd2.cpp b/src/mame/drivers/mekd2.cpp
index f4f08addf85..62cfc782b1b 100644
--- a/src/mame/drivers/mekd2.cpp
+++ b/src/mame/drivers/mekd2.cpp
@@ -115,10 +115,10 @@ protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
private:
- UINT8 m_cass_data[4];
- UINT8 m_segment;
- UINT8 m_digit;
- UINT8 m_keydata;
+ uint8_t m_cass_data[4];
+ uint8_t m_segment;
+ uint8_t m_digit;
+ uint8_t m_keydata;
bool m_cass_state;
bool m_cassold;
required_device<cpu_device> m_maincpu;
@@ -234,7 +234,7 @@ READ_LINE_MEMBER( mekd2_state::mekd2_key40_r )
READ8_MEMBER( mekd2_state::mekd2_key_r )
{
char kbdrow[4];
- UINT8 i;
+ uint8_t i;
m_keydata = 0xff;
for (i = 0; i < 6; i++)
@@ -276,7 +276,7 @@ WRITE8_MEMBER( mekd2_state::mekd2_segment_w )
WRITE8_MEMBER( mekd2_state::mekd2_digit_w )
{
- UINT8 i;
+ uint8_t i;
if (data < 0x3f)
{
for (i = 0; i < 6; i++)
@@ -305,8 +305,8 @@ QUICKLOAD_LOAD_MEMBER( mekd2_state, mekd2_quik )
{
static const char magic[] = "MEK6800D2";
char buff[9];
- UINT16 addr, size;
- UINT8 ident, *RAM = memregion("maincpu")->base();
+ uint16_t addr, size;
+ uint8_t ident, *RAM = memregion("maincpu")->base();
image.fread(buff, sizeof (buff));
if (memcmp(buff, magic, sizeof (buff)))
@@ -346,7 +346,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(mekd2_state::mekd2_p)
{
/* cassette - turn 1200/2400Hz to a bit */
m_cass_data[1]++;
- UINT8 cass_ws = (m_cass->input() > +0.03) ? 1 : 0;
+ uint8_t cass_ws = (m_cass->input() > +0.03) ? 1 : 0;
if (cass_ws != m_cass_data[0])
{