summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/gts80.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/gts80.cpp')
-rw-r--r--src/mame/drivers/gts80.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/gts80.cpp b/src/mame/drivers/gts80.cpp
index 58d014d4c08..09e1adc3500 100644
--- a/src/mame/drivers/gts80.cpp
+++ b/src/mame/drivers/gts80.cpp
@@ -47,10 +47,10 @@ public:
DECLARE_WRITE8_MEMBER(port3a_w);
DECLARE_WRITE8_MEMBER(port3b_w);
private:
- UINT8 m_port2;
- UINT8 m_segment;
- UINT8 m_lamprow;
- UINT8 m_swrow;
+ uint8_t m_port2;
+ uint8_t m_segment;
+ uint8_t m_lamprow;
+ uint8_t m_swrow;
virtual void machine_reset() override;
required_device<cpu_device> m_maincpu;
optional_device<gottlieb_sound_r0_device> m_r0_sound;
@@ -261,7 +261,7 @@ INPUT_PORTS_END
READ8_MEMBER( gts80_state::port1a_r )
{
char kbdrow[8];
- UINT8 data = 0;
+ uint8_t data = 0;
if ((m_lamprow < 4) && (m_segment==0x80))
{
sprintf(kbdrow,"DSW.%d",m_lamprow);
@@ -291,9 +291,9 @@ WRITE8_MEMBER( gts80_state::port1b_w )
WRITE8_MEMBER( gts80_state::port2a_w )
{
m_port2 = data;
- static const UINT8 patterns[16] = { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7c,0x07,0x7f,0x67,0x58,0x4c,0x62,0x69,0x78,0 }; // 7448
- UINT16 seg1 = (UINT16)patterns[m_segment & 15];
- UINT16 seg2 = BITSWAP16(seg1, 8, 8, 8, 8, 8, 8, 7, 7, 6, 6, 5, 4, 3, 2, 1, 0);
+ static const uint8_t patterns[16] = { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7c,0x07,0x7f,0x67,0x58,0x4c,0x62,0x69,0x78,0 }; // 7448
+ uint16_t seg1 = (uint16_t)patterns[m_segment & 15];
+ uint16_t seg2 = BITSWAP16(seg1, 8, 8, 8, 8, 8, 8, 7, 7, 6, 6, 5, 4, 3, 2, 1, 0);
switch (data & 0x70)
{
case 0x10: // player 1&2
@@ -325,7 +325,7 @@ WRITE8_MEMBER( gts80_state::port3a_w )
//pb0-3 = sound; pb4-7 = lamprow
WRITE8_MEMBER( gts80_state::port3b_w )
{
- UINT8 sndcmd = data & 15;
+ uint8_t sndcmd = data & 15;
m_lamprow = data >> 4;
if (m_r0_sound)
m_r0_sound->write(space, offset, sndcmd);