summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/micropin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/micropin.cpp')
-rw-r--r--src/mame/drivers/micropin.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/micropin.cpp b/src/mame/drivers/micropin.cpp
index 59b3a27b162..476ba8b7ed1 100644
--- a/src/mame/drivers/micropin.cpp
+++ b/src/mame/drivers/micropin.cpp
@@ -52,10 +52,10 @@ public:
DECLARE_DRIVER_INIT(micropin);
TIMER_DEVICE_CALLBACK_MEMBER(timer_a);
private:
- UINT8 m_row;
- UINT8 m_counter;
- UINT8 m_beep_time;
- UINT8 m_led_time[8];
+ uint8_t m_row;
+ uint8_t m_counter;
+ uint8_t m_beep_time;
+ uint8_t m_led_time[8];
virtual void machine_reset() override;
optional_device<m6800_cpu_device> m_v1cpu;
optional_device<i8085a_cpu_device> m_v2cpu;
@@ -188,7 +188,7 @@ WRITE8_MEMBER( micropin_state::p50a_w )
m_counter++;
if (m_counter == 1)
{
- static const UINT8 patterns[16] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7c, 0x07, 0x7f, 0x67, 0x58, 0x4c, 0x62, 0x69, 0x78, 0 }; // 7448
+ static const uint8_t patterns[16] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7c, 0x07, 0x7f, 0x67, 0x58, 0x4c, 0x62, 0x69, 0x78, 0 }; // 7448
output().set_digit_value(m_row, patterns[data&15]);
output().set_digit_value(m_row+20, patterns[data>>4]);
}
@@ -199,7 +199,7 @@ WRITE8_MEMBER( micropin_state::p50b_w )
m_counter++;
if (m_counter == 2)
{
- static const UINT8 patterns[16] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7c, 0x07, 0x7f, 0x67, 0x58, 0x4c, 0x62, 0x69, 0x78, 0 }; // 7448
+ static const uint8_t patterns[16] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7c, 0x07, 0x7f, 0x67, 0x58, 0x4c, 0x62, 0x69, 0x78, 0 }; // 7448
output().set_digit_value(m_row+40, patterns[data&15]);
output().set_digit_value(m_row+60, patterns[data>>4]);
}
@@ -224,7 +224,7 @@ WRITE_LINE_MEMBER( micropin_state::p50ca2_w )
// make the tones, and turn it off if no new commands arrive within .1 second.
WRITE8_MEMBER( micropin_state::p51a_w )
{
- static UINT16 frequency[16] = { 387, 435, 488, 517, 581, 652, 691, 775, 870, 977, 1035, 1161, 1304, 1381, 1550, 1740 };
+ static uint16_t frequency[16] = { 387, 435, 488, 517, 581, 652, 691, 775, 870, 977, 1035, 1161, 1304, 1381, 1550, 1740 };
m_beep->set_clock(frequency[data & 15]);
m_beep_time = 10; // number of 10ms intervals before it is silenced
m_beep->set_state(1);
@@ -248,7 +248,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( micropin_state::timer_a )
// turn off round leds that aren't being refreshed
- UINT8 i;
+ uint8_t i;
char wordnum[8];
for (i = 0; i < 8; i++)
@@ -267,7 +267,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( micropin_state::timer_a )
void micropin_state::machine_reset()
{
- UINT8 i;
+ uint8_t i;
m_row = 0;
m_beep_time = 5;
for (i = 0; i < 8; i++)