summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers')
-rw-r--r--src/mame/drivers/aristmk4.c8
-rw-r--r--src/mame/drivers/megadriv.c26
-rw-r--r--src/mame/drivers/mirax.c8
-rw-r--r--src/mame/drivers/triforce.c2
4 files changed, 21 insertions, 23 deletions
diff --git a/src/mame/drivers/aristmk4.c b/src/mame/drivers/aristmk4.c
index 7dd46e0b7f5..0ae62fc5af3 100644
--- a/src/mame/drivers/aristmk4.c
+++ b/src/mame/drivers/aristmk4.c
@@ -382,10 +382,10 @@ static const ay8910_interface ay8910_config2 =
/*
static const via6522_interface via_interface =
{
- // DEVCB_HANDLER(via_a_in), DEVCB_HANDLER(via_b_in),
- // DEVCB_HANDLER(input_ca1), DEVCB_HANDLER(input_cb1), DEVCB_HANDLER(input_ca2), DEVCB_HANDLER(input_cb2),
- /// DEVCB_NULL, DEVCB_HANDLER(output_b),
- // DEVCB_HANDLER(output_ca1), DEVCB_HANDLER(output_cb1), DEVCB_HANDLER(output_ca2), DEVCB_HANDLER(output_cb2),
+ // DEVCB_HANDLER(via_a_in), DEVCB_HANDLER(via_b_in),
+ // DEVCB_HANDLER(input_ca1), DEVCB_HANDLER(input_cb1), DEVCB_HANDLER(input_ca2), DEVCB_HANDLER(input_cb2),
+ /// DEVCB_NULL, DEVCB_HANDLER(output_b),
+ // DEVCB_HANDLER(output_ca1), DEVCB_HANDLER(output_cb1), DEVCB_HANDLER(output_ca2), DEVCB_HANDLER(output_cb2),
// DEVCB_CPU_INPUT_LINE("maincpu", M6809_FIRQ_LINE)
}; */
diff --git a/src/mame/drivers/megadriv.c b/src/mame/drivers/megadriv.c
index 97ec475513b..9d3635eaaeb 100644
--- a/src/mame/drivers/megadriv.c
+++ b/src/mame/drivers/megadriv.c
@@ -1637,7 +1637,7 @@ INPUT_PORTS_START( aladbl )
PORT_DIPSETTING( 0x05, DEF_STR( 1C_5C ) )
PORT_DIPSETTING( 0x06, DEF_STR( 1C_6C ) )
PORT_DIPSETTING( 0x07, DEF_STR( 1C_7C ) )
-// PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* to avoid it being changed and corrupting Coinage settings */
+// PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* to avoid it being changed and corrupting Coinage settings */
PORT_DIPNAME( 0x30, 0x00, DEF_STR( Difficulty ) ) /* code at 0x1b2680 */
PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) /* "PRACTICE" */
PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) /* "NORMAL" */
@@ -1683,14 +1683,14 @@ static UINT8 megadrive_io_read_data_port_6button(running_machine *machine, int p
if (io_stage[portnum] == 2)
{
/* here we read B, C & the additional buttons */
- retdata = (megadrive_io_data_regs[portnum] & helper) |
- (((input_port_read_safe(machine, pad3names[portnum], 0) & 0x30) |
+ retdata = (megadrive_io_data_regs[portnum] & helper) |
+ (((input_port_read_safe(machine, pad3names[portnum], 0) & 0x30) |
(input_port_read_safe(machine, pad6names[portnum], 0) & 0x0f)) & ~helper);
}
else
{
/* here we read B, C & the directional buttons */
- retdata = (megadrive_io_data_regs[portnum] & helper) |
+ retdata = (megadrive_io_data_regs[portnum] & helper) |
((input_port_read_safe(machine, pad3names[portnum], 0) & 0x3f) & ~helper);
}
}
@@ -1699,20 +1699,20 @@ static UINT8 megadrive_io_read_data_port_6button(running_machine *machine, int p
if (io_stage[portnum] == 1)
{
/* here we read ((Start & A) >> 2) | 0x00 */
- retdata = (megadrive_io_data_regs[portnum] & helper) |
+ retdata = (megadrive_io_data_regs[portnum] & helper) |
(((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) & ~helper);
}
else if (io_stage[portnum]==2)
{
/* here we read ((Start & A) >> 2) | 0x0f */
- retdata = (megadrive_io_data_regs[portnum] & helper) |
+ retdata = (megadrive_io_data_regs[portnum] & helper) |
((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) | 0x0f) & ~helper);
}
else
{
/* here we read ((Start & A) >> 2) | Up and Down */
- retdata = (megadrive_io_data_regs[portnum] & helper) |
- ((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
+ retdata = (megadrive_io_data_regs[portnum] & helper) |
+ ((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
(input_port_read_safe(machine, pad3names[portnum], 0) & 0x03)) & ~helper);
}
}
@@ -1732,14 +1732,14 @@ static UINT8 megadrive_io_read_data_port_3button(running_machine *machine, int p
if (megadrive_io_data_regs[portnum] & 0x40)
{
/* here we read B, C & the directional buttons */
- retdata = (megadrive_io_data_regs[portnum] & helper) |
+ retdata = (megadrive_io_data_regs[portnum] & helper) |
(((input_port_read_safe(machine, pad3names[portnum], 0) & 0x3f) | 0x40) & ~helper);
}
else
{
/* here we read ((Start & A) >> 2) | Up and Down */
- retdata = (megadrive_io_data_regs[portnum] & helper) |
- ((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
+ retdata = (megadrive_io_data_regs[portnum] & helper) |
+ ((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
(input_port_read_safe(machine, pad3names[portnum], 0) & 0x03) | 0x40) & ~helper);
}
@@ -1754,7 +1754,7 @@ UINT8 megatech_bios_port_cc_dc_r(running_machine *machine, int offset, int ctrl)
if (ctrl == 0x55)
{
/* A keys */
- retdata = ((input_port_read(machine, "PAD1") & 0x40) >> 2) |
+ retdata = ((input_port_read(machine, "PAD1") & 0x40) >> 2) |
((input_port_read(machine, "PAD2") & 0x40) >> 4) | 0xeb;
}
else
@@ -5925,7 +5925,7 @@ VIDEO_EOF(megadriv)
megadrive_imode_odd_frame^=1;
// cputag_set_input_line(machine, "genesis_snd_z80", 0, CLEAR_LINE); // if the z80 interrupt hasn't happened by now, clear it..
- if (input_port_read_safe(machine, "RESET", 0x00) & 0x01)
+ if (input_port_read_safe(machine, "RESET", 0x00) & 0x01)
cputag_set_input_line(machine, "maincpu", INPUT_LINE_RESET, PULSE_LINE);
/*
diff --git a/src/mame/drivers/mirax.c b/src/mame/drivers/mirax.c
index bc3d9e534e9..95d5a47cb2f 100644
--- a/src/mame/drivers/mirax.c
+++ b/src/mame/drivers/mirax.c
@@ -212,12 +212,12 @@ static ADDRESS_MAP_START( mirax_main_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0xf200, 0xf200) AM_READ_PORT("DSW1")
AM_RANGE(0xf300, 0xf300) AM_READ(unk_r) //watchdog? value is always read then discarded
AM_RANGE(0xf400, 0xf400) AM_READ_PORT("DSW2")
-// AM_RANGE(0xf500, 0xf500) //coin counter
+// AM_RANGE(0xf500, 0xf500) //coin counter
AM_RANGE(0xf501, 0xf501) AM_WRITE(nmi_mask_w)
-// AM_RANGE(0xf506, 0xf506)
-// AM_RANGE(0xf507, 0xf507)
+// AM_RANGE(0xf506, 0xf506)
+// AM_RANGE(0xf507, 0xf507)
AM_RANGE(0xf800, 0xf800) AM_WRITE(mirax_sound_cmd_w)
-// AM_RANGE(0xf900, 0xf900) //sound cmd mirror? ack?
+// AM_RANGE(0xf900, 0xf900) //sound cmd mirror? ack?
ADDRESS_MAP_END
static ADDRESS_MAP_START( mirax_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
diff --git a/src/mame/drivers/triforce.c b/src/mame/drivers/triforce.c
index 05f85f97792..06920a8c8e5 100644
--- a/src/mame/drivers/triforce.c
+++ b/src/mame/drivers/triforce.c
@@ -707,5 +707,3 @@ GAME( 2004, vs4j, triforce, triforcegd, triforce, 0, ROT0, "Sega",
GAME( 2004, vs4, triforce, triforcegd, triforce, 0, ROT0, "Sega", "Virtua Striker 4 (Export) (GDT-0015)", GAME_NO_SOUND|GAME_NOT_WORKING )
GAME( 2004, avalon20, triforce, triforcegd, triforce, 0, ROT0, "Sega", "The Key Of Avalon 2.0 - Eutaxy and Commandment - Client (GDT-0017B) (V3.001)", GAME_NO_SOUND|GAME_NOT_WORKING )
GAME( 2006, vs42006, triforce, triforcegd, triforce, 0, ROT0, "Sega", "Virtua Striker 4 ver. 2006 (Rev D) (Japan) (GDT-0020D)", GAME_NO_SOUND|GAME_NOT_WORKING )
-
-