mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
Cleanups and version bump.
This commit is contained in:
parent
ef0a31ca13
commit
31d3633838
@ -247,7 +247,7 @@ const char *device_inherit_tag(astring *dest, const char *sourcetag, const char
|
||||
|
||||
|
||||
/*-------------------------------------------------
|
||||
device_get_contract - find a given contract
|
||||
device_get_contract - find a given contract
|
||||
on a device
|
||||
-------------------------------------------------*/
|
||||
|
||||
@ -258,7 +258,7 @@ const device_contract *device_get_contract(const device_config *device, const ch
|
||||
/* if no contracts, obviously we don't have it */
|
||||
if (contract == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
/* scan forward through the array looking for a match */
|
||||
for ( ; contract->name != NULL; contract++)
|
||||
if (strcmp(name, contract->name) == 0)
|
||||
|
@ -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)
|
||||
}; */
|
||||
|
||||
|
@ -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);
|
||||
|
||||
/*
|
||||
|
@ -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 )
|
||||
|
@ -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 )
|
||||
|
||||
|
||||
|
@ -368,6 +368,7 @@ $(MAMEOBJ)/amiga.a: \
|
||||
$(MAMEOBJ)/aristocr.a: \
|
||||
$(DRIVERS)/86lions.o \
|
||||
$(DRIVERS)/caswin.o \
|
||||
$(DRIVERS)/aristmk4.o \
|
||||
$(DRIVERS)/aristmk5.o \
|
||||
$(MACHINE)/archimds.o \
|
||||
|
||||
|
@ -9085,11 +9085,14 @@ Other Sun games
|
||||
DRIVER( 86lions ) /* (c) 1985? */
|
||||
DRIVER( caswin ) /* (c) 1985 */
|
||||
|
||||
/* Aristocrat Mk4 hardware */
|
||||
DRIVER( eforest ) /* (c) 1994 */
|
||||
|
||||
/* Aristocrat Mk5 hardware */
|
||||
DRIVER( swthrt2v ) /* (c) 1995 */
|
||||
DRIVER( enchfrst ) /* (c) 1995 */
|
||||
DRIVER( dolphntr ) /* (c) 1996 */
|
||||
DRIVER( dolphtra ) /* (c) 1996 */
|
||||
DRIVER( dolphtra ) /* (c) 1996 */
|
||||
DRIVER( dmdtouch ) /* (c) 1997 */
|
||||
DRIVER( goldprmd ) /* (c) 1997 */
|
||||
DRIVER( qotn ) /* (c) 1997 */
|
||||
|
@ -10,4 +10,4 @@
|
||||
***************************************************************************/
|
||||
|
||||
extern const char build_version[];
|
||||
const char build_version[] = "0.131u4 ("__DATE__")";
|
||||
const char build_version[] = "0.132 ("__DATE__")";
|
||||
|
Loading…
Reference in New Issue
Block a user