summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/segas24.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/segas24.cpp')
-rw-r--r--src/mame/drivers/segas24.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mame/drivers/segas24.cpp b/src/mame/drivers/segas24.cpp
index 92058189954..75e27d04679 100644
--- a/src/mame/drivers/segas24.cpp
+++ b/src/mame/drivers/segas24.cpp
@@ -515,7 +515,7 @@ WRITE16_MEMBER( segas24_state::fdc_ctrl_w )
// I/O Mappers
-UINT8 segas24_state::hotrod_io_r(UINT8 port)
+uint8_t segas24_state::hotrod_io_r(uint8_t port)
{
switch(port)
{
@@ -539,20 +539,20 @@ UINT8 segas24_state::hotrod_io_r(UINT8 port)
return 0x00;
}
-UINT8 segas24_state::dcclub_io_r(UINT8 port)
+uint8_t segas24_state::dcclub_io_r(uint8_t port)
{
switch(port)
{
case 0:
{
- static const UINT8 pos[16] = { 0, 1, 3, 2, 6, 4, 12, 8, 9, 0, 0, 0 };
+ static const uint8_t pos[16] = { 0, 1, 3, 2, 6, 4, 12, 8, 9, 0, 0, 0 };
return (m_p1->read() & 0xf) | ((~pos[m_paddle->read()>>4]<<4) & 0xf0);
}
case 1:
return m_p2->read();
case 2:
{
- static const UINT8 pos[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 2 };
+ static const uint8_t pos[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 2 };
return(~pos[m_paddle->read()>>4] & 0x03) | 0xfc;
}
case 3:
@@ -570,7 +570,7 @@ UINT8 segas24_state::dcclub_io_r(UINT8 port)
}
-UINT8 segas24_state::mahmajn_io_r(UINT8 port)
+uint8_t segas24_state::mahmajn_io_r(uint8_t port)
{
switch(port)
{
@@ -594,7 +594,7 @@ UINT8 segas24_state::mahmajn_io_r(UINT8 port)
return 0x00;
}
-void segas24_state::mahmajn_io_w(UINT8 port, UINT8 data)
+void segas24_state::mahmajn_io_w(uint8_t port, uint8_t data)
{
switch(port)
{
@@ -610,7 +610,7 @@ void segas24_state::mahmajn_io_w(UINT8 port, UINT8 data)
}
}
-void segas24_state::hotrod_io_w(UINT8 port, UINT8 data)
+void segas24_state::hotrod_io_w(uint8_t port, uint8_t data)
{
switch(port)
{
@@ -766,7 +766,7 @@ void segas24_state::reset_reset()
prev_resetcontrol = resetcontrol;
}
-void segas24_state::reset_control_w(UINT8 data)
+void segas24_state::reset_control_w(uint8_t data)
{
resetcontrol = data;
reset_reset();
@@ -812,7 +812,7 @@ WRITE8_MEMBER( segas24_state::frc_mode_w )
READ8_MEMBER( segas24_state::frc_r )
{
- INT32 result = (frc_cnt_timer->time_elapsed() * (frc_mode ? FRC_CLOCK_MODE1 : FRC_CLOCK_MODE0)).as_double();
+ int32_t result = (frc_cnt_timer->time_elapsed() * (frc_mode ? FRC_CLOCK_MODE1 : FRC_CLOCK_MODE0)).as_double();
result %= ((frc_mode) ? 0x67 : 0x100);
@@ -829,13 +829,13 @@ WRITE8_MEMBER( segas24_state::frc_w )
// Protection magic latch
-const UINT8 segas24_state::mahmajn_mlt[8] = { 5, 1, 6, 2, 3, 7, 4, 0 };
-const UINT8 segas24_state::mahmajn2_mlt[8] = { 6, 0, 5, 3, 1, 4, 2, 7 };
-const UINT8 segas24_state::qgh_mlt[8] = { 3, 7, 4, 0, 2, 6, 5, 1 };
-const UINT8 segas24_state::bnzabros_mlt[8] = { 2, 4, 0, 5, 7, 3, 1, 6 };
-const UINT8 segas24_state::qrouka_mlt[8] = { 1, 6, 4, 7, 0, 5, 3, 2 };
-const UINT8 segas24_state::quizmeku_mlt[8] = { 0, 3, 2, 4, 6, 1, 7, 5 };
-const UINT8 segas24_state::dcclub_mlt[8] = { 4, 7, 3, 0, 2, 6, 5, 1 };
+const uint8_t segas24_state::mahmajn_mlt[8] = { 5, 1, 6, 2, 3, 7, 4, 0 };
+const uint8_t segas24_state::mahmajn2_mlt[8] = { 6, 0, 5, 3, 1, 4, 2, 7 };
+const uint8_t segas24_state::qgh_mlt[8] = { 3, 7, 4, 0, 2, 6, 5, 1 };
+const uint8_t segas24_state::bnzabros_mlt[8] = { 2, 4, 0, 5, 7, 3, 1, 6 };
+const uint8_t segas24_state::qrouka_mlt[8] = { 1, 6, 4, 7, 0, 5, 3, 2 };
+const uint8_t segas24_state::quizmeku_mlt[8] = { 0, 3, 2, 4, 6, 1, 7, 5 };
+const uint8_t segas24_state::dcclub_mlt[8] = { 4, 7, 3, 0, 2, 6, 5, 1 };
READ16_MEMBER( segas24_state::mlatch_r )
@@ -847,7 +847,7 @@ WRITE16_MEMBER( segas24_state::mlatch_w )
{
if(ACCESSING_BITS_0_7) {
int i;
- UINT8 mxor = 0;
+ uint8_t mxor = 0;
if(!mlatch_table) {
logerror("Protection: magic latch accessed but no table loaded (%s:%x)\n", space.device().tag(), space.device().safe_pc());
return;
@@ -996,7 +996,7 @@ WRITE16_MEMBER(segas24_state::irq_w)
}
case 1:
if(ACCESSING_BITS_0_7) {
- UINT8 old_tmode = irq_tmode;
+ uint8_t old_tmode = irq_tmode;
irq_timer_sync();
irq_tmode = data & 3;
irq_timer_start(old_tmode);
@@ -1329,7 +1329,7 @@ void segas24_state::machine_start()
if (m_romboard != nullptr)
{
- UINT8 *usr1 = m_romboard->base();
+ uint8_t *usr1 = m_romboard->base();
membank("bank1")->configure_entries(0, 16, usr1, 0x40000);
membank("bank2")->configure_entries(0, 16, usr1, 0x40000);
}