mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
merged tiger road / f1-dream and pushman / bouncing balls drivers - as usual Comad cloned the hardware when they made the games.
moved the protection sims for f1dream / bbballs to machine/tigeroad.c also marked f1dream as not working, it's never worked, the protection simulation is incomplete. (the bootleg has some original bugs too due to their workarounds, so technically there isn't a perfectly working version of this game supported by MAME)
This commit is contained in:
parent
872f13b470
commit
425f05bc75
4
.gitattributes
vendored
4
.gitattributes
vendored
@ -5039,7 +5039,6 @@ src/mame/drivers/psychic5.c svneol=native#text/plain
|
||||
src/mame/drivers/pturn.c svneol=native#text/plain
|
||||
src/mame/drivers/puckpkmn.c svneol=native#text/plain
|
||||
src/mame/drivers/punchout.c svneol=native#text/plain
|
||||
src/mame/drivers/pushman.c svneol=native#text/plain
|
||||
src/mame/drivers/pyson.c svneol=native#text/plain
|
||||
src/mame/drivers/pzletime.c svneol=native#text/plain
|
||||
src/mame/drivers/qdrmfgp.c svneol=native#text/plain
|
||||
@ -5916,7 +5915,6 @@ src/mame/includes/psikyo4.h svneol=native#text/plain
|
||||
src/mame/includes/psikyosh.h svneol=native#text/plain
|
||||
src/mame/includes/psychic5.h svneol=native#text/plain
|
||||
src/mame/includes/punchout.h svneol=native#text/plain
|
||||
src/mame/includes/pushman.h svneol=native#text/plain
|
||||
src/mame/includes/qdrmfgp.h svneol=native#text/plain
|
||||
src/mame/includes/qix.h svneol=native#text/plain
|
||||
src/mame/includes/quasar.h svneol=native#text/plain
|
||||
@ -6711,6 +6709,7 @@ src/mame/machine/tecmosys.c svneol=native#text/plain
|
||||
src/mame/machine/theglobp.c svneol=native#text/plain
|
||||
src/mame/machine/ticket.c svneol=native#text/plain
|
||||
src/mame/machine/ticket.h svneol=native#text/plain
|
||||
src/mame/machine/tigeroad.c svneol=native#text/plain
|
||||
src/mame/machine/tnzs.c svneol=native#text/plain
|
||||
src/mame/machine/toaplan1.c svneol=native#text/plain
|
||||
src/mame/machine/twincobr.c svneol=native#text/plain
|
||||
@ -7267,7 +7266,6 @@ src/mame/video/psikyo4.c svneol=native#text/plain
|
||||
src/mame/video/psikyosh.c svneol=native#text/plain
|
||||
src/mame/video/psychic5.c svneol=native#text/plain
|
||||
src/mame/video/punchout.c svneol=native#text/plain
|
||||
src/mame/video/pushman.c svneol=native#text/plain
|
||||
src/mame/video/qdrmfgp.c svneol=native#text/plain
|
||||
src/mame/video/qix.c svneol=native#text/plain
|
||||
src/mame/video/quasar.c svneol=native#text/plain
|
||||
|
@ -1,701 +0,0 @@
|
||||
/***************************************************************************
|
||||
|
||||
Pushman (c) 1990 Comad
|
||||
|
||||
With 'Debug Mode' on button 2 advances a level, button 3 goes back.
|
||||
|
||||
The microcontroller mainly controls the animation of the enemy robots,
|
||||
the communication between the 68000 and MCU is probably not emulated
|
||||
100% correct but it works. Later levels (using the cheat mode) seem
|
||||
to have some corrupt tilemaps, I'm not sure if this is a driver bug
|
||||
or a game bug from using the cheat mode.
|
||||
|
||||
Emulation by Bryan McPhail, mish@tendril.co.uk
|
||||
|
||||
The hardware is actually very similar to F1-Dream and Tiger Road but
|
||||
with a 68705 for protection.
|
||||
|
||||
Pushman is known to be released in a 2 PCB stack as well as a large
|
||||
single plane board.
|
||||
|
||||
**************************************************************************
|
||||
|
||||
Bouncing Balls (c) 1991 Comad
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "cpu/m6805/m6805.h"
|
||||
#include "includes/pushman.h"
|
||||
#include "sound/2203intf.h"
|
||||
|
||||
WRITE16_MEMBER(pushman_state::pushman_flipscreen_w)
|
||||
{
|
||||
if (ACCESSING_BITS_8_15)
|
||||
{
|
||||
flip_screen_set(data & 0x0200);
|
||||
coin_counter_w(machine(), 0, data & 0x4000);
|
||||
coin_counter_w(machine(), 1, data & 0x8000);
|
||||
}
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(pushman_state::pushman_control_w)
|
||||
{
|
||||
if (ACCESSING_BITS_8_15)
|
||||
soundlatch_byte_w(space, 0, (data >> 8) & 0xff);
|
||||
}
|
||||
|
||||
READ16_MEMBER(pushman_state::pushman_68705_r)
|
||||
{
|
||||
if (offset == 0)
|
||||
return m_latch;
|
||||
|
||||
if (offset == 3 && m_new_latch)
|
||||
{
|
||||
m_new_latch = 0;
|
||||
return 0;
|
||||
}
|
||||
if (offset == 3 && !m_new_latch)
|
||||
return 0xff;
|
||||
|
||||
return (m_shared_ram[2 * offset + 1] << 8) + m_shared_ram[2 * offset];
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(pushman_state::pushman_68705_w)
|
||||
{
|
||||
if (ACCESSING_BITS_8_15)
|
||||
m_shared_ram[2 * offset] = data >> 8;
|
||||
if (ACCESSING_BITS_0_7)
|
||||
m_shared_ram[2 * offset + 1] = data & 0xff;
|
||||
|
||||
if (offset == 1)
|
||||
{
|
||||
m_mcu->set_input_line(M68705_IRQ_LINE, HOLD_LINE);
|
||||
space.device().execute().spin();
|
||||
m_new_latch = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* ElSemi - Bouncing balls protection. */
|
||||
READ16_MEMBER(pushman_state::bballs_68705_r)
|
||||
{
|
||||
if (offset == 0)
|
||||
return m_latch;
|
||||
if (offset == 3 && m_new_latch)
|
||||
{
|
||||
m_new_latch = 0;
|
||||
return 0;
|
||||
}
|
||||
if (offset == 3 && !m_new_latch)
|
||||
return 0xff;
|
||||
|
||||
return (m_shared_ram[2 * offset + 1] << 8) + m_shared_ram[2 * offset];
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(pushman_state::bballs_68705_w)
|
||||
{
|
||||
if (ACCESSING_BITS_8_15)
|
||||
m_shared_ram[2 * offset] = data >> 8;
|
||||
if (ACCESSING_BITS_0_7)
|
||||
m_shared_ram[2 * offset + 1] = data & 0xff;
|
||||
|
||||
if (offset == 0)
|
||||
{
|
||||
m_latch = 0;
|
||||
if (m_shared_ram[0] <= 0xf)
|
||||
{
|
||||
m_latch = m_shared_ram[0] << 2;
|
||||
if (m_shared_ram[1])
|
||||
m_latch |= 2;
|
||||
m_new_latch = 1;
|
||||
}
|
||||
else if (m_shared_ram[0])
|
||||
{
|
||||
if (m_shared_ram[1])
|
||||
m_latch |= 2;
|
||||
m_new_latch = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
READ8_MEMBER(pushman_state::pushman_68000_r)
|
||||
{
|
||||
return m_shared_ram[offset];
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(pushman_state::pushman_68000_w)
|
||||
{
|
||||
if (offset == 2 && (m_shared_ram[2] & 2) == 0 && data & 2)
|
||||
{
|
||||
m_latch = (m_shared_ram[1] << 8) | m_shared_ram[0];
|
||||
m_new_latch = 1;
|
||||
}
|
||||
m_shared_ram[offset] = data;
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
static ADDRESS_MAP_START( pushman_map, AS_PROGRAM, 16, pushman_state )
|
||||
AM_RANGE(0x000000, 0x01ffff) AM_ROM
|
||||
AM_RANGE(0x060000, 0x060007) AM_READWRITE(pushman_68705_r, pushman_68705_w)
|
||||
AM_RANGE(0xfe0800, 0xfe17ff) AM_RAM AM_SHARE("spriteram")
|
||||
AM_RANGE(0xfe4000, 0xfe4001) AM_READ_PORT("INPUTS") AM_WRITE(pushman_flipscreen_w)
|
||||
AM_RANGE(0xfe4002, 0xfe4003) AM_READ_PORT("SYSTEM") AM_WRITE(pushman_control_w)
|
||||
AM_RANGE(0xfe4004, 0xfe4005) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0xfe8000, 0xfe8003) AM_WRITE(pushman_scroll_w)
|
||||
AM_RANGE(0xfe800e, 0xfe800f) AM_WRITENOP /* ? */
|
||||
AM_RANGE(0xfec000, 0xfec7ff) AM_RAM_WRITE(pushman_videoram_w) AM_SHARE("videoram")
|
||||
AM_RANGE(0xff8000, 0xff87ff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette")
|
||||
AM_RANGE(0xffc000, 0xffffff) AM_RAM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( mcu_map, AS_PROGRAM, 8, pushman_state )
|
||||
AM_RANGE(0x0000, 0x0007) AM_READWRITE(pushman_68000_r, pushman_68000_w)
|
||||
AM_RANGE(0x0010, 0x007f) AM_RAM
|
||||
AM_RANGE(0x0080, 0x0fff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, pushman_state )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||
AM_RANGE(0xc000, 0xc7ff) AM_RAM
|
||||
AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_byte_r)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( sound_io_map, AS_IO, 8, pushman_state )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x01) AM_DEVWRITE("ym1", ym2203_device, write)
|
||||
AM_RANGE(0x80, 0x81) AM_DEVWRITE("ym2", ym2203_device, write)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( bballs_map, AS_PROGRAM, 16, pushman_state )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xfffff)
|
||||
AM_RANGE(0x00000, 0x1ffff) AM_ROM
|
||||
AM_RANGE(0x60000, 0x60007) AM_READWRITE(bballs_68705_r, bballs_68705_w)
|
||||
AM_RANGE(0xe0800, 0xe17ff) AM_RAM AM_SHARE("spriteram")
|
||||
AM_RANGE(0xe4000, 0xe4001) AM_READ_PORT("INPUTS") AM_WRITE(pushman_flipscreen_w)
|
||||
AM_RANGE(0xe4002, 0xe4003) AM_READ_PORT("SYSTEM") AM_WRITE(pushman_control_w)
|
||||
AM_RANGE(0xe4004, 0xe4005) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0xe8000, 0xe8003) AM_WRITE(pushman_scroll_w)
|
||||
AM_RANGE(0xe800e, 0xe800f) AM_WRITENOP /* ? */
|
||||
AM_RANGE(0xec000, 0xec7ff) AM_RAM_WRITE(pushman_videoram_w) AM_SHARE("videoram")
|
||||
AM_RANGE(0xf8000, 0xf87ff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette")
|
||||
AM_RANGE(0xfc000, 0xfffff) AM_RAM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
static INPUT_PORTS_START( pushman )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("SYSTEM")
|
||||
PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 )
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen") /* not sure, probably wrong */
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 )
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Debug Mode (Cheat)") PORT_DIPLOCATION("SW1:1") /* Listed as "Screen Skip" */
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x0002, 0x0002, "Pull Option" ) PORT_DIPLOCATION("SW1:2")
|
||||
PORT_DIPSETTING( 0x0002, "5" )
|
||||
PORT_DIPSETTING( 0x0000, "9" )
|
||||
PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Level_Select ) ) PORT_DIPLOCATION("SW1:3")
|
||||
PORT_DIPSETTING( 0x0004, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:4")
|
||||
PORT_DIPSETTING( 0x0008, DEF_STR( Upright ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) )
|
||||
PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:5")
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0010, DEF_STR( On ) )
|
||||
PORT_SERVICE_DIPLOC( 0x0020, IP_ACTIVE_LOW, "SW1:6" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW1:7" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW1:8" )
|
||||
PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:1,2,3")
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) )
|
||||
PORT_DIPSETTING( 0x0100, DEF_STR( 4C_1C ) )
|
||||
PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) )
|
||||
PORT_DIPSETTING( 0x0300, DEF_STR( 2C_1C ) )
|
||||
PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) )
|
||||
PORT_DIPSETTING( 0x0600, DEF_STR( 1C_2C ) )
|
||||
PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) )
|
||||
PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) )
|
||||
PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4")
|
||||
PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Hard ) )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x1000, 0x1000, "SW2:5" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x2000, 0x2000, "SW2:6" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x4000, 0x4000, "SW2:7" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x8000, 0x8000, "SW2:8" )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( bballs )
|
||||
PORT_START("INPUTS")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Open/Close Gate") // Open/Close gate
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("P1 Zap") // Use Zap
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) // BUTTON3 in "test mode"
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("P2 Open/Close Gate") // Open/Close gate
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 Zap") // Use Zap
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // BUTTON3 in "test mode"
|
||||
|
||||
PORT_START("SYSTEM")
|
||||
PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 )
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen") /* not sure, probably wrong */
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 )
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2,3")
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) )
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) )
|
||||
PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) )
|
||||
PORT_DIPSETTING( 0x0003, DEF_STR( 2C_1C ) )
|
||||
PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) )
|
||||
PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) )
|
||||
PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) )
|
||||
PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) )
|
||||
PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4")
|
||||
PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) // less bubbles before cycling
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Hard ) ) // more bubbles before cycling
|
||||
PORT_DIPNAME( 0x0010, 0x0000, "Music (In-game)" ) PORT_DIPLOCATION("SW1:5")
|
||||
PORT_DIPSETTING( 0x0010, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x0020, 0x0000, "Music (Attract Mode)" ) PORT_DIPLOCATION("SW1:6")
|
||||
PORT_DIPSETTING( 0x0020, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:7,8")
|
||||
PORT_DIPSETTING( 0x00c0, "1" )
|
||||
PORT_DIPSETTING( 0x0080, "2" )
|
||||
PORT_DIPSETTING( 0x0040, "3" )
|
||||
PORT_DIPSETTING( 0x0000, "4" )
|
||||
PORT_DIPNAME( 0x0100, 0x0100, "Zaps" ) PORT_DIPLOCATION("SW2:1")
|
||||
PORT_DIPSETTING( 0x0100, "1" )
|
||||
PORT_DIPSETTING( 0x0000, "2" )
|
||||
PORT_DIPNAME( 0x0200, 0x0000, "Display Next Ball" ) PORT_DIPLOCATION("SW2:2")
|
||||
PORT_DIPSETTING( 0x0200, DEF_STR( No ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0400, 0x0400, "SW2:3" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0800, 0x0800, "SW2:4" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x1000, 0x1000, "SW2:5" )
|
||||
PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:6") // code at 0x0054ac, 0x0054f2, 0x0056fc
|
||||
PORT_DIPSETTING( 0x2000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Service_Mode ) ) PORT_DIPLOCATION("SW2:7,8")
|
||||
PORT_DIPSETTING( 0xc000, DEF_STR( Off ) )
|
||||
// PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x4000, "Inputs/Outputs" )
|
||||
PORT_DIPSETTING( 0x0000, "Graphics" )
|
||||
INPUT_PORTS_END
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
static const gfx_layout charlayout =
|
||||
{
|
||||
8,8,
|
||||
RGN_FRAC(1,1),
|
||||
2,
|
||||
{ 4, 0 },
|
||||
{ 0, 1, 2, 3, 8+0, 8+1, 8+2, 8+3 },
|
||||
{ 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16 },
|
||||
16*8
|
||||
};
|
||||
|
||||
static const gfx_layout spritelayout =
|
||||
{
|
||||
16,16,
|
||||
RGN_FRAC(1,4),
|
||||
4,
|
||||
{ RGN_FRAC(0,4), RGN_FRAC(1,4), RGN_FRAC(2,4), RGN_FRAC(3,4) },
|
||||
{ 0, 1, 2, 3, 4, 5, 6, 7,
|
||||
16*8+0, 16*8+1, 16*8+2, 16*8+3, 16*8+4, 16*8+5, 16*8+6, 16*8+7 },
|
||||
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
|
||||
8*8, 9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
|
||||
32*8
|
||||
};
|
||||
|
||||
static const gfx_layout tilelayout =
|
||||
{
|
||||
32,32,
|
||||
RGN_FRAC(1,2),
|
||||
4,
|
||||
{ 4, 0, RGN_FRAC(1,2)+4, RGN_FRAC(1,2)+0 },
|
||||
{ 0, 1, 2, 3, 8+0, 8+1, 8+2, 8+3,
|
||||
64*8+0, 64*8+1, 64*8+2, 64*8+3, 65*8+0, 65*8+1, 65*8+2, 65*8+3,
|
||||
128*8+0, 128*8+1, 128*8+2, 128*8+3, 129*8+0, 129*8+1, 129*8+2, 129*8+3,
|
||||
192*8+0, 192*8+1, 192*8+2, 192*8+3, 193*8+0, 193*8+1, 193*8+2, 193*8+3 },
|
||||
{ 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,
|
||||
8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16,
|
||||
16*16, 17*16, 18*16, 19*16, 20*16, 21*16, 22*16, 23*16,
|
||||
24*16, 25*16, 26*16, 27*16, 28*16, 29*16, 30*16, 31*16 },
|
||||
256*8
|
||||
};
|
||||
|
||||
static GFXDECODE_START( pushman )
|
||||
GFXDECODE_ENTRY( "gfx1", 0x000000, charlayout, 0x300, 16 ) /* colors 0x300-0x33f */
|
||||
GFXDECODE_ENTRY( "gfx2", 0x000000, spritelayout, 0x200, 16 ) /* colors 0x200-0x2ff */
|
||||
GFXDECODE_ENTRY( "gfx3", 0x000000, tilelayout, 0x100, 16 ) /* colors 0x100-0x1ff */
|
||||
GFXDECODE_END
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
WRITE_LINE_MEMBER(pushman_state::irqhandler)
|
||||
{
|
||||
m_audiocpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
|
||||
}
|
||||
|
||||
void pushman_state::machine_start()
|
||||
{
|
||||
save_item(NAME(m_control));
|
||||
save_item(NAME(m_shared_ram));
|
||||
save_item(NAME(m_latch));
|
||||
save_item(NAME(m_new_latch));
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(pushman_state,pushman)
|
||||
{
|
||||
m_latch = 0;
|
||||
m_new_latch = 0;
|
||||
m_control[0] = 0;
|
||||
m_control[1] = 0;
|
||||
|
||||
memset(m_shared_ram, 0, ARRAY_LENGTH(m_shared_ram));
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( pushman, pushman_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", M68000, 8000000)
|
||||
MCFG_CPU_PROGRAM_MAP(pushman_map)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", pushman_state, irq2_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("audiocpu", Z80, 4000000)
|
||||
MCFG_CPU_PROGRAM_MAP(sound_map)
|
||||
MCFG_CPU_IO_MAP(sound_io_map)
|
||||
|
||||
/* ElSemi. Reversed the CPU order so the sound callback works with bballs */
|
||||
MCFG_CPU_ADD("mcu", M68705, 4000000) /* No idea */
|
||||
MCFG_CPU_PROGRAM_MAP(mcu_map)
|
||||
|
||||
MCFG_QUANTUM_TIME(attotime::from_hz(3600))
|
||||
|
||||
MCFG_MACHINE_RESET_OVERRIDE(pushman_state,pushman)
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_REFRESH_RATE(60)
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
|
||||
MCFG_SCREEN_SIZE(32*8, 32*8)
|
||||
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(pushman_state, screen_update_pushman)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", pushman)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 1024)
|
||||
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
|
||||
|
||||
/* sound hardware */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MCFG_SOUND_ADD("ym1", YM2203, 2000000)
|
||||
MCFG_YM2203_IRQ_HANDLER(WRITELINE(pushman_state, irqhandler))
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
|
||||
|
||||
MCFG_SOUND_ADD("ym2", YM2203, 2000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
MACHINE_RESET_MEMBER(pushman_state,bballs)
|
||||
{
|
||||
MACHINE_RESET_CALL_MEMBER(pushman);
|
||||
|
||||
m_latch = 0x400;
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_START( bballs, pushman_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", M68000, 8000000)
|
||||
MCFG_CPU_PROGRAM_MAP(bballs_map)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", pushman_state, irq2_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("audiocpu", Z80, 4000000)
|
||||
MCFG_CPU_PROGRAM_MAP(sound_map)
|
||||
MCFG_CPU_IO_MAP(sound_io_map)
|
||||
|
||||
MCFG_QUANTUM_TIME(attotime::from_hz(3600))
|
||||
|
||||
MCFG_MACHINE_RESET_OVERRIDE(pushman_state,bballs)
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_REFRESH_RATE(60)
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
|
||||
MCFG_SCREEN_SIZE(32*8, 32*8)
|
||||
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(pushman_state, screen_update_pushman)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", pushman)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 1024)
|
||||
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
|
||||
|
||||
/* sound hardware */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MCFG_SOUND_ADD("ym1", YM2203, 2000000)
|
||||
MCFG_YM2203_IRQ_HANDLER(WRITELINE(pushman_state, irqhandler))
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
|
||||
|
||||
MCFG_SOUND_ADD("ym2", YM2203, 2000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
ROM_START( pushman )
|
||||
ROM_REGION( 0x20000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "pushman.012", 0x000000, 0x10000, CRC(330762bc) SHA1(c769b68da40183e6eb84212636bfd1265e5ed2d8) )
|
||||
ROM_LOAD16_BYTE( "pushman.011", 0x000001, 0x10000, CRC(62636796) SHA1(1a205c1b0efff4158439bc9a21cfe3cd8834aef9) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "pushman.013", 0x00000, 0x08000, CRC(adfe66c1) SHA1(fa4ed13d655c664b06e9b91292d2c0a88cb5a569) )
|
||||
|
||||
ROM_REGION( 0x01000, "mcu", 0 ) /* Verified same for all 4 currently dumped versions */
|
||||
ROM_LOAD( "pushman68705r3p.ic23", 0x00000, 0x01000, CRC(d7916657) SHA1(89c14c6044f082fffe2a8f86d0a82336f4a110a2) )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx1", 0 )
|
||||
ROM_LOAD( "pushman.001", 0x00000, 0x08000, CRC(626e5865) SHA1(4ab96c8512f439d18390094d71a898f5c576399c) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx2", 0 )
|
||||
ROM_LOAD( "pushman.004", 0x00000, 0x10000, CRC(87aafa70) SHA1(560661b23ddac106a3d2762fc32da666b31e7424) )
|
||||
ROM_LOAD( "pushman.005", 0x10000, 0x10000, CRC(7fd1200c) SHA1(15d6781a2d7e3ec2e8f85f8585b1e3fd9fe4fd1d) )
|
||||
ROM_LOAD( "pushman.002", 0x20000, 0x10000, CRC(0a094ab0) SHA1(2ff5dcf0d9439eeadd61601170c9767f4d81f022) )
|
||||
ROM_LOAD( "pushman.003", 0x30000, 0x10000, CRC(73d1f29d) SHA1(0a87fe02b1efd04c540f016b2626d32da70219db) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx3", 0 )
|
||||
ROM_LOAD( "pushman.006", 0x00000, 0x10000, CRC(48ef3da6) SHA1(407d50c2030584bb17a4d4a1bb45e0b04e1a95a4) )
|
||||
ROM_LOAD( "pushman.008", 0x10000, 0x10000, CRC(4b6a3e88) SHA1(c57d0528e942dd77a13e5a4bf39053f52915d44c) )
|
||||
ROM_LOAD( "pushman.007", 0x20000, 0x10000, CRC(b70020bd) SHA1(218ca4a08b87b7dc5c1eed99960f4098c4fc7e0c) )
|
||||
ROM_LOAD( "pushman.009", 0x30000, 0x10000, CRC(cc555667) SHA1(6c79e14fc18d1d836392044779cb3219494a3447) )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx4", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "pushman.010", 0x00000, 0x08000, CRC(a500132d) SHA1(26b02c9fea69b51c5f7dc1b43b838cd336ebf862) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "n82s129an.ic82", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) */
|
||||
ROM_END
|
||||
|
||||
ROM_START( pushmana )
|
||||
ROM_REGION( 0x20000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "pushmana.212", 0x000000, 0x10000, CRC(871d0858) SHA1(690ca554c8c6f19c0f26ccd8d948e3aa6e1b23c0) )
|
||||
ROM_LOAD16_BYTE( "pushmana.011", 0x000001, 0x10000, CRC(ae57761e) SHA1(63467d61c967f38e0fbb8130f08e09e03cdcce6c) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "pushman.013", 0x00000, 0x08000, CRC(adfe66c1) SHA1(fa4ed13d655c664b06e9b91292d2c0a88cb5a569) ) // missing from this set?
|
||||
|
||||
ROM_REGION( 0x01000, "mcu", 0 ) /* Verified same for all 4 currently dumped versions */
|
||||
ROM_LOAD( "pushman68705r3p.ic23", 0x00000, 0x01000, CRC(d7916657) SHA1(89c14c6044f082fffe2a8f86d0a82336f4a110a2) )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx1", 0 )
|
||||
ROM_LOAD( "pushmana.130", 0x00000, 0x10000, CRC(f83f92e7) SHA1(37f337d7b496f8d81eed247c80390a6aabcf4b95) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx2", 0 )
|
||||
ROM_LOAD( "pushman.004", 0x00000, 0x10000, CRC(87aafa70) SHA1(560661b23ddac106a3d2762fc32da666b31e7424) ) // .58
|
||||
ROM_LOAD( "pushman.005", 0x10000, 0x10000, CRC(7fd1200c) SHA1(15d6781a2d7e3ec2e8f85f8585b1e3fd9fe4fd1d) ) // .59
|
||||
ROM_LOAD( "pushman.002", 0x20000, 0x10000, CRC(0a094ab0) SHA1(2ff5dcf0d9439eeadd61601170c9767f4d81f022) ) // .56
|
||||
ROM_LOAD( "pushman.003", 0x30000, 0x10000, CRC(73d1f29d) SHA1(0a87fe02b1efd04c540f016b2626d32da70219db) ) // .57
|
||||
|
||||
ROM_REGION( 0x40000, "gfx3", 0 )
|
||||
ROM_LOAD( "pushman.006", 0x00000, 0x10000, CRC(48ef3da6) SHA1(407d50c2030584bb17a4d4a1bb45e0b04e1a95a4) ) // .131
|
||||
ROM_LOAD( "pushman.008", 0x10000, 0x10000, CRC(4b6a3e88) SHA1(c57d0528e942dd77a13e5a4bf39053f52915d44c) ) // .148
|
||||
ROM_LOAD( "pushman.007", 0x20000, 0x10000, CRC(b70020bd) SHA1(218ca4a08b87b7dc5c1eed99960f4098c4fc7e0c) ) // .132
|
||||
ROM_LOAD( "pushman.009", 0x30000, 0x10000, CRC(cc555667) SHA1(6c79e14fc18d1d836392044779cb3219494a3447) ) // .149
|
||||
|
||||
ROM_REGION( 0x10000, "gfx4", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "pushmana.189", 0x00000, 0x10000, CRC(59f25598) SHA1(ace33afd6e6d07376ed01048db99b13bcec790d7) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "n82s129an.ic82", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) */
|
||||
ROM_END
|
||||
|
||||
ROM_START( pushmans )
|
||||
ROM_REGION( 0x20000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "pman-12.ic212", 0x000000, 0x10000, CRC(4251109d) SHA1(d4b020e4ecc2005b3a4c1b34d88de82b09bf5a6b) )
|
||||
ROM_LOAD16_BYTE( "pman-11.ic197", 0x000001, 0x10000, CRC(1167ed9f) SHA1(ca0296950a75ef15ff6f9d3a776b02180b941d61) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "pman-13.ic216", 0x00000, 0x08000, CRC(bc03827a) SHA1(b4d6ae164bbb7ba19e4934392fe2ba29575f28b9) )
|
||||
|
||||
ROM_REGION( 0x01000, "mcu", 0 ) /* Verified same for all 4 currently dumped versions */
|
||||
ROM_LOAD( "pushman68705r3p.ic23", 0x00000, 0x01000, CRC(d7916657) SHA1(89c14c6044f082fffe2a8f86d0a82336f4a110a2) )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx1", 0 )
|
||||
ROM_LOAD( "pman-1.ic130", 0x00000, 0x08000, CRC(14497754) SHA1(a47d03c56add18c5d9aed221990550b18589ff43) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx2", 0 )
|
||||
ROM_LOAD( "pman-4.ic58", 0x00000, 0x10000, CRC(16e5ce6b) SHA1(cb9c6094a853abc550eae29c35083f26a0d1de94) )
|
||||
ROM_LOAD( "pman-5.ic59", 0x10000, 0x10000, CRC(b82140b8) SHA1(0a16b904eb2739bfa22a87d03266d3ff2b750b67) )
|
||||
ROM_LOAD( "pman-2.56", 0x20000, 0x10000, CRC(2cb2ac29) SHA1(165447ad7eb8593c0d4346096ec13ac386e905c9) )
|
||||
ROM_LOAD( "pman-3.57", 0x30000, 0x10000, CRC(8ab957c8) SHA1(143501819920c521353930f83e49f1e19fbba34f) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx3", 0 )
|
||||
ROM_LOAD( "pman-6.ic131", 0x00000, 0x10000, CRC(bd0f9025) SHA1(7262410d4631f1b051c605d5cea5b91e9f68327e) )
|
||||
ROM_LOAD( "pman-8.ic148", 0x10000, 0x10000, CRC(591bd5c0) SHA1(6e0e18e0912fa38e113420ac31c7f36853b830ec) )
|
||||
ROM_LOAD( "pman-7.ic132", 0x20000, 0x10000, CRC(208cb197) SHA1(161633b6b0acf25447a5c0b3c6fbf18adc6e2243) )
|
||||
ROM_LOAD( "pman-9.ic149", 0x30000, 0x10000, CRC(77ee8577) SHA1(63d13683dd097d8e7cb71ad3abe04e11f2a58bd3) )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx4", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "pman-10.ic189", 0x00000, 0x08000, CRC(5f9ae9a1) SHA1(87619918c28c942780f6dbd3818d4cc69932eefc) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "n82s129an.ic82", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) */
|
||||
ROM_END
|
||||
|
||||
ROM_START( pushmant ) /* Single plane PCB */
|
||||
ROM_REGION( 0x20000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "12.ic212", 0x000000, 0x10000, CRC(f5c77d86) SHA1(66d2d5dc9f4662efc5a865c9cc1bba653e86a674) )
|
||||
ROM_LOAD16_BYTE( "11.ic197", 0x000001, 0x10000, CRC(2e09ff08) SHA1(9bb05c51c985c3a12fb8d6fd915276e304651eb1) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "13.ic216", 0x00000, 0x08000, CRC(adfe66c1) SHA1(fa4ed13d655c664b06e9b91292d2c0a88cb5a569) ) /* Same as the Comad set */
|
||||
|
||||
ROM_REGION( 0x01000, "mcu", 0 ) /* Verified same for all 4 currently dumped versions */
|
||||
ROM_LOAD( "pushman68705r3p.ic23", 0x00000, 0x01000, CRC(d7916657) SHA1(89c14c6044f082fffe2a8f86d0a82336f4a110a2) )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx1", 0 )
|
||||
ROM_LOAD( "1.ic130", 0x00000, 0x08000, CRC(14497754) SHA1(a47d03c56add18c5d9aed221990550b18589ff43) ) /* Same as the Sammy set */
|
||||
|
||||
ROM_REGION( 0x40000, "gfx2", 0 )
|
||||
ROM_LOAD( "4.ic58", 0x00000, 0x10000, CRC(69209214) SHA1(c5b527234aefbdfb39864806e2b1784fdf2dd49c) )
|
||||
ROM_LOAD( "5.ic59", 0x10000, 0x10000, CRC(75fc0ac4) SHA1(aa3a19573b96d89b94bfddda5b404d19cbb47335) )
|
||||
ROM_LOAD( "2.ic56", 0x20000, 0x10000, CRC(2bb8093f) SHA1(e86048d676b06796a1d2ed325ea8ea9cada3c4b6) )
|
||||
ROM_LOAD( "3.ic57", 0x30000, 0x10000, CRC(5f1c4e7a) SHA1(751caf2365eccbab6d7de5434c4656ac5bd7f13b) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx3", 0 )
|
||||
ROM_LOAD( "6.ic131", 0x00000, 0x10000, CRC(bd0f9025) SHA1(7262410d4631f1b051c605d5cea5b91e9f68327e) ) /* These 4 are the same as the Sammy set */
|
||||
ROM_LOAD( "8.ic148", 0x10000, 0x10000, CRC(591bd5c0) SHA1(6e0e18e0912fa38e113420ac31c7f36853b830ec) )
|
||||
ROM_LOAD( "7.ic132", 0x20000, 0x10000, CRC(208cb197) SHA1(161633b6b0acf25447a5c0b3c6fbf18adc6e2243) )
|
||||
ROM_LOAD( "9.ic149", 0x30000, 0x10000, CRC(77ee8577) SHA1(63d13683dd097d8e7cb71ad3abe04e11f2a58bd3) )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx4", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "10.ic189", 0x00000, 0x08000, CRC(5f9ae9a1) SHA1(87619918c28c942780f6dbd3818d4cc69932eefc) ) /* Same as the Sammy set */
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "n82s129an.ic82", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) */
|
||||
ROM_END
|
||||
|
||||
ROM_START( bballs )
|
||||
ROM_REGION( 0x20000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "bb12.m17", 0x000000, 0x10000, CRC(4501c245) SHA1(b03ace135b077e8c226dd3be04fa8e86ad096770) )
|
||||
ROM_LOAD16_BYTE( "bb11.l17", 0x000001, 0x10000, CRC(55e45b60) SHA1(103d848ae74b59ac2f5a5c5300323bbf8b109752) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "bb13.n4", 0x00000, 0x08000, CRC(1ef78175) SHA1(2e7dcbab3a572c2a6bb67a36ba283a5faeb14a88) )
|
||||
|
||||
ROM_REGION( 0x01000, "cpu2", 0 )
|
||||
ROM_LOAD( "68705.uc", 0x00000, 0x01000, NO_DUMP )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx1", 0 )
|
||||
ROM_LOAD( "bb1.g20", 0x00000, 0x08000, CRC(b62dbcb8) SHA1(121613f6d2bcd226e71d4ae71830b9b0d15c2331) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx2", 0 )
|
||||
ROM_LOAD( "bb4.d1", 0x00000, 0x10000, CRC(b77de5f8) SHA1(e966f982d712109c4402ca3a8cd2c19640d52bdb) )
|
||||
ROM_LOAD( "bb5.d2", 0x10000, 0x10000, CRC(ffffccbf) SHA1(3ac85c06c3dca1de8839fca73f5de3982a3baca0) )
|
||||
ROM_LOAD( "bb2.b1", 0x20000, 0x10000, CRC(a5b13236) SHA1(e2d21fa3c878b328238ba8b400f3ab00b0763f6b) )
|
||||
ROM_LOAD( "bb3.b2", 0x30000, 0x10000, CRC(e35b383d) SHA1(5312e80d786dc2ffe0f7b1038a64f8ec6e590e0c) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx3", 0 )
|
||||
ROM_LOAD( "bb6.h1", 0x00000, 0x10000, CRC(0cada9ce) SHA1(5f2e85baf5f04e874e0857451946c8b1e1c8d209) )
|
||||
ROM_LOAD( "bb8.j1", 0x10000, 0x10000, CRC(d55fe7c1) SHA1(de5ba87c0f905e6f1abadde3af63884a8a130806) )
|
||||
ROM_LOAD( "bb7.h2", 0x20000, 0x10000, CRC(a352d53b) SHA1(c71e976b7c28630d7af11fffe0d1cfd7d611ee8b) )
|
||||
ROM_LOAD( "bb9.j2", 0x30000, 0x10000, CRC(78d185ac) SHA1(6ed6e1f5eeb93129eeeab6bae22b640c9782f7fc) )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx4", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "bb10.l6", 0x00000, 0x08000, CRC(d06498f9) SHA1(9f33bbc40ebe11c03aec29289f76f1c3ca5bf009) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "bb_prom.e9", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) N82S129 BPROM */
|
||||
ROM_END
|
||||
|
||||
ROM_START( bballsa )
|
||||
ROM_REGION( 0x20000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "12.ic212", 0x000000, 0x10000, CRC(8917aedd) SHA1(ded983ba753699c97b02e991eb7195c0122b4065) )
|
||||
ROM_LOAD16_BYTE( "11.ic197", 0x000001, 0x10000, CRC(430fca1b) SHA1(70ed70396f5346a3120f7a046a111fa114c997bc) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "13.ic216", 0x00000, 0x08000, CRC(1ef78175) SHA1(2e7dcbab3a572c2a6bb67a36ba283a5faeb14a88) )
|
||||
|
||||
ROM_REGION( 0x01000, "cpu2", 0 )
|
||||
ROM_LOAD( "68705.uc", 0x00000, 0x01000, NO_DUMP )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx1", 0 )
|
||||
ROM_LOAD( "1.ic130", 0x00000, 0x08000, CRC(67672444) SHA1(f1d4681999d44e8d3cbf26b8a9c05f50573e0df6) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx2", 0 )
|
||||
ROM_LOAD( "4.ic58", 0x00000, 0x10000, CRC(144ca816) SHA1(c166e3f42f12c14df977adad363575e786b2be51) )
|
||||
ROM_LOAD( "5.ic59", 0x10000, 0x10000, CRC(486c8385) SHA1(4421160573a2435bb0f330a04fef486d14a1293b) )
|
||||
ROM_LOAD( "2.ic56", 0x20000, 0x10000, CRC(1d464915) SHA1(3396e919da7e3d08a1a9c76db5d0d214ddf7adcd) )
|
||||
ROM_LOAD( "3.ic57", 0x30000, 0x10000, CRC(595439ec) SHA1(6e1a79e5583960f700fd8a63cd48c7e222a315dc) )
|
||||
|
||||
ROM_REGION( 0x40000, "gfx3", 0 )
|
||||
ROM_LOAD( "6.ic131", 0x00000, 0x10000, CRC(15d4975b) SHA1(71dbb63e70a52ec12fdfc20047a48beb73fac8a0) )
|
||||
ROM_LOAD( "8.ic148", 0x10000, 0x10000, CRC(c1a21c75) SHA1(34b877ac85274e50b2ce65945b9761e70e80b852) )
|
||||
ROM_LOAD( "7.ic132", 0x20000, 0x10000, CRC(2289393a) SHA1(e1370925a92f7d9f96c9431cf1b8dd262c41017e) )
|
||||
ROM_LOAD( "9.ic149", 0x30000, 0x10000, CRC(1fe3d172) SHA1(f7415e8633507a507ec1cd68de224722a726a473) )
|
||||
|
||||
ROM_REGION( 0x10000, "gfx4", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "10.ic189", 0x00000, 0x08000, CRC(52e4ab27) SHA1(c9ae15f970b4bf120a4bbee9adcf0e5e4de001e7) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "bb_prom.e9", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) N82S129 BPROM */
|
||||
ROM_END
|
||||
|
||||
GAME( 1990, pushman, 0, pushman, pushman, driver_device, 0, ROT0, "Comad", "Pushman (Korea, set 1)", GAME_SUPPORTS_SAVE )
|
||||
GAME( 1990, pushmana, pushman, pushman, pushman, driver_device, 0, ROT0, "Comad", "Pushman (Korea, set 2)", GAME_SUPPORTS_SAVE )
|
||||
GAME( 1990, pushmans, pushman, pushman, pushman, driver_device, 0, ROT0, "Comad (American Sammy license)", "Pushman (American Sammy license)", GAME_SUPPORTS_SAVE )
|
||||
GAME( 1990, pushmant, pushman, pushman, pushman, driver_device, 0, ROT0, "Comad (Top Tronic license)", "Pushman (Top Tronic license)", GAME_SUPPORTS_SAVE )
|
||||
GAME( 1991, bballs, 0, bballs, bballs, driver_device, 0, ROT0, "Comad", "Bouncing Balls", GAME_SUPPORTS_SAVE )
|
||||
GAME( 1991, bballsa, bballs, bballs, bballs, driver_device, 0, ROT0, "Comad", "Bouncing Balls (Adult)", GAME_SUPPORTS_SAVE )
|
@ -1,10 +1,17 @@
|
||||
/***************************************************************************
|
||||
|
||||
Tiger Road (C) 1987 Romstar/Capcom USA
|
||||
Tiger Road (C) 1987 Capcom (licensed to Romstar)
|
||||
F1 Dream (C) 1988 Capcom
|
||||
|
||||
cloned hardware:
|
||||
Pushman (C) 1990 Comad
|
||||
Bouncing Balls (c) 1991 Comad
|
||||
|
||||
Please contact Phil Stroffolino (phil@maya.com) if there are any questions
|
||||
regarding this driver.
|
||||
|
||||
**************************************************************************
|
||||
|
||||
F1 Dream protection workaround by Eric Hustvedt
|
||||
|
||||
Memory Overview:
|
||||
@ -15,145 +22,41 @@ Memory Overview:
|
||||
0xfe8000 scroll registers
|
||||
0xff8200 palette
|
||||
0xffC000 working RAM
|
||||
0xffEC70 high scores (not saved)
|
||||
|
||||
**************************************************************************
|
||||
|
||||
Pushman Notes
|
||||
|
||||
With 'Debug Mode' on button 2 advances a level, button 3 goes back.
|
||||
|
||||
The microcontroller mainly controls the animation of the enemy robots,
|
||||
the communication between the 68000 and MCU is probably not emulated
|
||||
100% correct but it works. Later levels (using the cheat mode) seem
|
||||
to have some corrupt tilemaps, I'm not sure if this is a driver bug
|
||||
or a game bug from using the cheat mode.
|
||||
|
||||
Emulation by Bryan McPhail, mish@tendril.co.uk
|
||||
|
||||
The hardware is actually very similar to F1-Dream and Tiger Road but
|
||||
with a 68705 for protection.
|
||||
|
||||
Pushman is known to be released in a 2 PCB stack as well as a large
|
||||
single plane board.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "sound/2203intf.h"
|
||||
#include "sound/msm5205.h"
|
||||
#include "includes/tigeroad.h"
|
||||
|
||||
|
||||
|
||||
/*
|
||||
F1 Dream protection code written by Eric Hustvedt (hustvedt@ma.ultranet.com).
|
||||
|
||||
The genuine F1 Dream game uses an 8751 microcontroller as a protection measure.
|
||||
Since the microcontroller's ROM is unavailable all interactions with it are handled
|
||||
via blackbox algorithm.
|
||||
|
||||
Some notes:
|
||||
- The 8751 is triggered via location 0xfe4002, in place of the soundlatch normally
|
||||
present. The main cpu writes 0 to the location when it wants the 8751 to perform some work.
|
||||
- The 8751 has memory which shadows locations 0xffffe0-0xffffff of the main cpu's address space.
|
||||
- The word at 0xffffe0 contains an 'opcode' which is written just before the write to 0xfe4002.
|
||||
- Some of the writes to the soundlatch may not be handled. 0x27fc is the main sound routine, the
|
||||
other locations are less frequently used.
|
||||
*/
|
||||
|
||||
static const int f1dream_613ea_lookup[16] = {
|
||||
0x0052, 0x0031, 0x00a7, 0x0043, 0x0007, 0x008a, 0x00b1, 0x0066, 0x009f, 0x00cc, 0x0009, 0x004d, 0x0033, 0x0028, 0x00d0, 0x0025};
|
||||
|
||||
static const int f1dream_613eb_lookup[256] = {
|
||||
0x0001, 0x00b5, 0x00b6, 0x00b6, 0x00b6, 0x00b6, 0x00b6, 0x00b6, 0x00b7, 0x0001, 0x00b8, 0x002f, 0x002f, 0x002f, 0x002f, 0x00b9,
|
||||
0x00aa, 0x0031, 0x00ab, 0x00ab, 0x00ab, 0x00ac, 0x00ad, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x0091,
|
||||
0x009c, 0x009d, 0x009e, 0x009f, 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x009b, 0x0091,
|
||||
0x00bc, 0x0092, 0x000b, 0x0009, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097, 0x0073, 0x0001, 0x0098, 0x0099, 0x009a, 0x009b, 0x0091,
|
||||
0x00bc, 0x007b, 0x000b, 0x0008, 0x0087, 0x0088, 0x0089, 0x008a, 0x007f, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f, 0x0090, 0x0091,
|
||||
0x00bd, 0x007b, 0x000b, 0x0007, 0x007c, 0x007d, 0x007e, 0x0001, 0x007f, 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086,
|
||||
0x00bc, 0x0070, 0x000b, 0x0006, 0x0071, 0x0072, 0x0073, 0x0001, 0x0074, 0x000d, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007a,
|
||||
0x00bc, 0x00ba, 0x000a, 0x0005, 0x0065, 0x0066, 0x0067, 0x0068, 0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f,
|
||||
0x00bc, 0x0059, 0x0001, 0x0004, 0x005a, 0x005b, 0x0001, 0x005c, 0x005d, 0x005e, 0x005f, 0x0060, 0x0061, 0x0062, 0x0063, 0x0064,
|
||||
0x0014, 0x004d, 0x0001, 0x0003, 0x004e, 0x004f, 0x0050, 0x0051, 0x0052, 0x0001, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, 0x0058,
|
||||
0x0014, 0x0043, 0x0001, 0x0002, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x00bb, 0x004a, 0x004b, 0x004c, 0x0001, 0x0001,
|
||||
0x0014, 0x002b, 0x0001, 0x0038, 0x0039, 0x003a, 0x003b, 0x0031, 0x003c, 0x003d, 0x003e, 0x003f, 0x0040, 0x0041, 0x0042, 0x0001,
|
||||
0x0014, 0x002d, 0x0001, 0x002e, 0x002f, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0001, 0x0014, 0x0037, 0x0001,
|
||||
0x0014, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x0001, 0x0001, 0x0001, 0x002a, 0x002b, 0x002c,
|
||||
0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001e, 0x001e, 0x001e, 0x001f, 0x0020,
|
||||
0x000c, 0x000d, 0x000e, 0x0001, 0x000f, 0x0010, 0x0011, 0x0012, 0x000d, 0x000d, 0x000d, 0x000d, 0x000d, 0x000d, 0x000d, 0x0013 };
|
||||
|
||||
static const int f1dream_17b74_lookup[128] = {
|
||||
0x0003, 0x0040, 0x0005, 0x0080, 0x0003, 0x0080, 0x0005, 0x00a0, 0x0003, 0x0040, 0x0005, 0x00c0, 0x0003, 0x0080, 0x0005, 0x00e0,
|
||||
0x0003, 0x0040, 0x0006, 0x0000, 0x0003, 0x0080, 0x0006, 0x0020, 0x0003, 0x0040, 0x0006, 0x0040, 0x0003, 0x0080, 0x0006, 0x0060,
|
||||
0x0000, 0x00a0, 0x0009, 0x00e0, 0x0000, 0x00e0, 0x000a, 0x0000, 0x0000, 0x00a0, 0x000a, 0x0020, 0x0000, 0x00e0, 0x000a, 0x0040,
|
||||
0x0000, 0x00a0, 0x000a, 0x0060, 0x0000, 0x00e0, 0x000a, 0x0080, 0x0000, 0x00a0, 0x000a, 0x00a0, 0x0000, 0x00e0, 0x000a, 0x00c0,
|
||||
0x0003, 0x0040, 0x0005, 0x0080, 0x0003, 0x0080, 0x0005, 0x00a0, 0x0003, 0x0040, 0x0005, 0x00c0, 0x0003, 0x0080, 0x0005, 0x00e0,
|
||||
0x0003, 0x0040, 0x0006, 0x0000, 0x0003, 0x0080, 0x0006, 0x0020, 0x0003, 0x0040, 0x0006, 0x0040, 0x0003, 0x0080, 0x0006, 0x0060,
|
||||
0x0000, 0x00a0, 0x0009, 0x00e0, 0x0000, 0x00e0, 0x000a, 0x0000, 0x0000, 0x00a0, 0x000a, 0x0020, 0x0000, 0x00e0, 0x000a, 0x0040,
|
||||
0x0000, 0x00a0, 0x000a, 0x0060, 0x0000, 0x00e0, 0x000a, 0x0080, 0x0000, 0x00a0, 0x000a, 0x00a0, 0x0000, 0x00e0, 0x000a, 0x00c0 };
|
||||
|
||||
static const int f1dream_2450_lookup[32] = {
|
||||
0x0003, 0x0080, 0x0006, 0x0060, 0x0000, 0x00e0, 0x000a, 0x00c0, 0x0003, 0x0080, 0x0006, 0x0060, 0x0000, 0x00e0, 0x000a, 0x00c0,
|
||||
0x0003, 0x0080, 0x0006, 0x0060, 0x0000, 0x00e0, 0x000a, 0x00c0, 0x0003, 0x0080, 0x0006, 0x0060, 0x0000, 0x00e0, 0x000a, 0x00c0 };
|
||||
|
||||
void tigeroad_state::f1dream_protection_w(address_space &space)
|
||||
{
|
||||
int indx;
|
||||
int value = 255;
|
||||
int prevpc = space.device().safe_pcbase();
|
||||
|
||||
if (prevpc == 0x244c)
|
||||
{
|
||||
/* Called once, when a race is started.*/
|
||||
indx = m_ram16[0x3ff0/2];
|
||||
m_ram16[0x3fe6/2] = f1dream_2450_lookup[indx];
|
||||
m_ram16[0x3fe8/2] = f1dream_2450_lookup[++indx];
|
||||
m_ram16[0x3fea/2] = f1dream_2450_lookup[++indx];
|
||||
m_ram16[0x3fec/2] = f1dream_2450_lookup[++indx];
|
||||
}
|
||||
else if (prevpc == 0x613a)
|
||||
{
|
||||
/* Called for every sprite on-screen.*/
|
||||
if (m_ram16[0x3ff6/2] < 15)
|
||||
{
|
||||
indx = f1dream_613ea_lookup[m_ram16[0x3ff6/2]] - m_ram16[0x3ff4/2];
|
||||
if (indx > 255)
|
||||
{
|
||||
indx <<= 4;
|
||||
indx += m_ram16[0x3ff6/2] & 0x00ff;
|
||||
value = f1dream_613eb_lookup[indx];
|
||||
}
|
||||
}
|
||||
|
||||
m_ram16[0x3ff2/2] = value;
|
||||
}
|
||||
else if (prevpc == 0x17b70)
|
||||
{
|
||||
/* Called only before a real race, not a time trial.*/
|
||||
if (m_ram16[0x3ff0/2] >= 0x04) indx = 128;
|
||||
else if (m_ram16[0x3ff0/2] > 0x02) indx = 96;
|
||||
else if (m_ram16[0x3ff0/2] == 0x02) indx = 64;
|
||||
else if (m_ram16[0x3ff0/2] == 0x01) indx = 32;
|
||||
else indx = 0;
|
||||
|
||||
indx += m_ram16[0x3fee/2];
|
||||
if (indx < 128)
|
||||
{
|
||||
m_ram16[0x3fe6/2] = f1dream_17b74_lookup[indx];
|
||||
m_ram16[0x3fe8/2] = f1dream_17b74_lookup[++indx];
|
||||
m_ram16[0x3fea/2] = f1dream_17b74_lookup[++indx];
|
||||
m_ram16[0x3fec/2] = f1dream_17b74_lookup[++indx];
|
||||
}
|
||||
else
|
||||
{
|
||||
m_ram16[0x3fe6/2] = 0x00ff;
|
||||
m_ram16[0x3fe8/2] = 0x00ff;
|
||||
m_ram16[0x3fea/2] = 0x00ff;
|
||||
m_ram16[0x3fec/2] = 0x00ff;
|
||||
}
|
||||
}
|
||||
else if ((prevpc == 0x27f8) || (prevpc == 0x511a) || (prevpc == 0x5142) || (prevpc == 0x516a))
|
||||
{
|
||||
/* The main CPU stuffs the byte for the soundlatch into 0xfffffd.*/
|
||||
soundlatch_byte_w(space,2,m_ram16[0x3ffc/2]);
|
||||
}
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(tigeroad_state::f1dream_control_w)
|
||||
{
|
||||
logerror("protection write, PC: %04x FFE1 Value:%01x\n",space.device().safe_pc(), m_ram16[0x3fe0/2]);
|
||||
f1dream_protection_w(space);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(tigeroad_state::tigeroad_soundcmd_w)
|
||||
{
|
||||
if (ACCESSING_BITS_8_15)
|
||||
soundlatch_byte_w(space,offset,data >> 8);
|
||||
}
|
||||
|
||||
|
||||
WRITE8_MEMBER(tigeroad_state::msm5205_w)
|
||||
{
|
||||
m_msm->reset_w(BIT(data, 7));
|
||||
@ -167,20 +70,37 @@ WRITE8_MEMBER(tigeroad_state::msm5205_w)
|
||||
|
||||
static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, tigeroad_state )
|
||||
AM_RANGE(0x000000, 0x03ffff) AM_ROM
|
||||
|
||||
AM_RANGE(0xfe0800, 0xfe0cff) AM_RAM AM_SHARE("spriteram")
|
||||
AM_RANGE(0xfe0d00, 0xfe1807) AM_RAM /* still part of OBJ RAM */
|
||||
AM_RANGE(0xfe4000, 0xfe4001) AM_READ_PORT("P1_P2") AM_WRITE(tigeroad_videoctrl_w) /* char bank, coin counters, + ? */
|
||||
AM_RANGE(0xfe4002, 0xfe4003) AM_READ_PORT("SYSTEM")
|
||||
/* AM_RANGE(0xfe4002, 0xfe4003) AM_WRITE(tigeroad_soundcmd_w) added by init_tigeroad() */
|
||||
AM_RANGE(0xfe4002, 0xfe4003) AM_READ_PORT("SYSTEM") AM_WRITE(tigeroad_soundcmd_w) /* AM_WRITE(tigeroad_soundcmd_w) is replaced in init for for f1dream protection */
|
||||
AM_RANGE(0xfe4004, 0xfe4005) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0xfec000, 0xfec7ff) AM_RAM_WRITE(tigeroad_videoram_w) AM_SHARE("videoram")
|
||||
AM_RANGE(0xfe8000, 0xfe8003) AM_WRITE(tigeroad_scroll_w)
|
||||
AM_RANGE(0xfe800e, 0xfe800f) AM_WRITEONLY /* fe800e = watchdog or IRQ acknowledge */
|
||||
AM_RANGE(0xff8200, 0xff867f) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette")
|
||||
AM_RANGE(0xfec000, 0xfec7ff) AM_RAM_WRITE(tigeroad_videoram_w) AM_SHARE("videoram")
|
||||
|
||||
AM_RANGE(0xff8000, 0xff87ff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette")
|
||||
AM_RANGE(0xffc000, 0xffffff) AM_RAM AM_SHARE("ram16")
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( bballs_map, AS_PROGRAM, 16, tigeroad_state )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xfffff)
|
||||
AM_RANGE(0x00000, 0x3ffff) AM_ROM
|
||||
// are these mirror addresses or does this PCB have a different addressing?
|
||||
AM_RANGE(0xe0800, 0xe17ff) AM_RAM AM_SHARE("spriteram")
|
||||
AM_RANGE(0xe4000, 0xe4001) AM_READ_PORT("P1_P2") AM_WRITE(tigeroad_videoctrl_w)
|
||||
AM_RANGE(0xe4002, 0xe4003) AM_READ_PORT("SYSTEM") AM_WRITE(tigeroad_soundcmd_w)
|
||||
AM_RANGE(0xe4004, 0xe4005) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0xe8000, 0xe8003) AM_WRITE(tigeroad_scroll_w)
|
||||
AM_RANGE(0xe800e, 0xe800f) AM_WRITENOP /* ? */
|
||||
AM_RANGE(0xec000, 0xec7ff) AM_RAM_WRITE(tigeroad_videoram_w) AM_SHARE("videoram")
|
||||
|
||||
AM_RANGE(0xf8000, 0xf87ff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette")
|
||||
AM_RANGE(0xfc000, 0xfffff) AM_RAM AM_SHARE("ram16")
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/* Capcom games ONLY */
|
||||
static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, tigeroad_state )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||
AM_RANGE(0x8000, 0x8001) AM_DEVREADWRITE("ym1", ym2203_device, read, write)
|
||||
@ -194,6 +114,7 @@ static ADDRESS_MAP_START( sound_port_map, AS_IO, 8, tigeroad_state )
|
||||
AM_RANGE(0x7f, 0x7f) AM_WRITE(soundlatch2_byte_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/* toramich ONLY */
|
||||
static ADDRESS_MAP_START( sample_map, AS_PROGRAM, 8, tigeroad_state )
|
||||
AM_RANGE(0x0000, 0xffff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
@ -204,6 +125,27 @@ static ADDRESS_MAP_START( sample_port_map, AS_IO, 8, tigeroad_state )
|
||||
AM_RANGE(0x01, 0x01) AM_WRITE(msm5205_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/* Pushman ONLY */
|
||||
static ADDRESS_MAP_START( mcu_map, AS_PROGRAM, 8, tigeroad_state )
|
||||
AM_RANGE(0x0000, 0x0007) AM_READWRITE(pushman_68000_r, pushman_68000_w)
|
||||
AM_RANGE(0x0010, 0x007f) AM_RAM
|
||||
AM_RANGE(0x0080, 0x0fff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/* Pushman / Bouncing Balls */
|
||||
static ADDRESS_MAP_START( comad_sound_map, AS_PROGRAM, 8, tigeroad_state )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||
AM_RANGE(0xc000, 0xc7ff) AM_RAM
|
||||
AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_byte_r)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( comad_sound_io_map, AS_IO, 8, tigeroad_state )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x01) AM_DEVWRITE("ym1", ym2203_device, write)
|
||||
AM_RANGE(0x80, 0x81) AM_DEVWRITE("ym2", ym2203_device, write)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
||||
static INPUT_PORTS_START( tigeroad )
|
||||
PORT_START("P1_P2")
|
||||
@ -436,6 +378,145 @@ static INPUT_PORTS_START( f1dream )
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
static INPUT_PORTS_START( pushman )
|
||||
PORT_START("P1_P2")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNUSED )
|
||||
|
||||
PORT_START("SYSTEM")
|
||||
PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 )
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen") /* not sure, probably wrong */
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 )
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_DIPNAME( 0x0001, 0x0001, "Debug Mode (Cheat)") PORT_DIPLOCATION("SW1:1") /* Listed as "Screen Skip" */
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x0002, 0x0002, "Pull Option" ) PORT_DIPLOCATION("SW1:2")
|
||||
PORT_DIPSETTING( 0x0002, "5" )
|
||||
PORT_DIPSETTING( 0x0000, "9" )
|
||||
PORT_DIPNAME( 0x0004, 0x0004, DEF_STR( Level_Select ) ) PORT_DIPLOCATION("SW1:3")
|
||||
PORT_DIPSETTING( 0x0004, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:4")
|
||||
PORT_DIPSETTING( 0x0008, DEF_STR( Upright ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Cocktail ) )
|
||||
PORT_DIPNAME( 0x0010, 0x0010, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:5")
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0010, DEF_STR( On ) )
|
||||
PORT_SERVICE_DIPLOC( 0x0020, IP_ACTIVE_LOW, "SW1:6" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0040, 0x0040, "SW1:7" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0080, 0x0080, "SW1:8" )
|
||||
PORT_DIPNAME( 0x0700, 0x0700, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW2:1,2,3")
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) )
|
||||
PORT_DIPSETTING( 0x0100, DEF_STR( 4C_1C ) )
|
||||
PORT_DIPSETTING( 0x0200, DEF_STR( 3C_1C ) )
|
||||
PORT_DIPSETTING( 0x0300, DEF_STR( 2C_1C ) )
|
||||
PORT_DIPSETTING( 0x0700, DEF_STR( 1C_1C ) )
|
||||
PORT_DIPSETTING( 0x0600, DEF_STR( 1C_2C ) )
|
||||
PORT_DIPSETTING( 0x0500, DEF_STR( 1C_3C ) )
|
||||
PORT_DIPSETTING( 0x0400, DEF_STR( 1C_4C ) )
|
||||
PORT_DIPNAME( 0x0800, 0x0800, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:4")
|
||||
PORT_DIPSETTING( 0x0800, DEF_STR( Easy ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Hard ) )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x1000, 0x1000, "SW2:5" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x2000, 0x2000, "SW2:6" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x4000, 0x4000, "SW2:7" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x8000, 0x8000, "SW2:8" )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( bballs )
|
||||
PORT_START("P1_P2")
|
||||
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
|
||||
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("P1 Open/Close Gate") // Open/Close gate
|
||||
PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("P1 Zap") // Use Zap
|
||||
PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN ) // BUTTON3 in "test mode"
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_NAME("P2 Open/Close Gate") // Open/Close gate
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_NAME("P2 Zap") // Use Zap
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN ) // BUTTON3 in "test mode"
|
||||
|
||||
PORT_START("SYSTEM")
|
||||
PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_START1 )
|
||||
PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_START2 )
|
||||
PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_CUSTOM ) PORT_VBLANK("screen") /* not sure, probably wrong */
|
||||
PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_SERVICE1 )
|
||||
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_COIN2 )
|
||||
|
||||
PORT_START("DSW")
|
||||
PORT_DIPNAME( 0x0007, 0x0007, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:1,2,3")
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( 5C_1C ) )
|
||||
PORT_DIPSETTING( 0x0001, DEF_STR( 4C_1C ) )
|
||||
PORT_DIPSETTING( 0x0002, DEF_STR( 3C_1C ) )
|
||||
PORT_DIPSETTING( 0x0003, DEF_STR( 2C_1C ) )
|
||||
PORT_DIPSETTING( 0x0007, DEF_STR( 1C_1C ) )
|
||||
PORT_DIPSETTING( 0x0006, DEF_STR( 1C_2C ) )
|
||||
PORT_DIPSETTING( 0x0005, DEF_STR( 1C_3C ) )
|
||||
PORT_DIPSETTING( 0x0004, DEF_STR( 1C_4C ) )
|
||||
PORT_DIPNAME( 0x0008, 0x0008, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW1:4")
|
||||
PORT_DIPSETTING( 0x0008, DEF_STR( Easy ) ) // less bubbles before cycling
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Hard ) ) // more bubbles before cycling
|
||||
PORT_DIPNAME( 0x0010, 0x0000, "Music (In-game)" ) PORT_DIPLOCATION("SW1:5")
|
||||
PORT_DIPSETTING( 0x0010, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x0020, 0x0000, "Music (Attract Mode)" ) PORT_DIPLOCATION("SW1:6")
|
||||
PORT_DIPSETTING( 0x0020, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0x00c0, 0x00c0, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:7,8")
|
||||
PORT_DIPSETTING( 0x00c0, "1" )
|
||||
PORT_DIPSETTING( 0x0080, "2" )
|
||||
PORT_DIPSETTING( 0x0040, "3" )
|
||||
PORT_DIPSETTING( 0x0000, "4" )
|
||||
PORT_DIPNAME( 0x0100, 0x0100, "Zaps" ) PORT_DIPLOCATION("SW2:1")
|
||||
PORT_DIPSETTING( 0x0100, "1" )
|
||||
PORT_DIPSETTING( 0x0000, "2" )
|
||||
PORT_DIPNAME( 0x0200, 0x0000, "Display Next Ball" ) PORT_DIPLOCATION("SW2:2")
|
||||
PORT_DIPSETTING( 0x0200, DEF_STR( No ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( Yes ) )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0400, 0x0400, "SW2:3" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0800, 0x0800, "SW2:4" )
|
||||
PORT_DIPUNUSED_DIPLOC( 0x1000, 0x1000, "SW2:5" )
|
||||
PORT_DIPNAME( 0x2000, 0x2000, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW2:6") // code at 0x0054ac, 0x0054f2, 0x0056fc
|
||||
PORT_DIPSETTING( 0x2000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x0000, DEF_STR( On ) )
|
||||
PORT_DIPNAME( 0xc000, 0xc000, DEF_STR( Service_Mode ) ) PORT_DIPLOCATION("SW2:7,8")
|
||||
PORT_DIPSETTING( 0xc000, DEF_STR( Off ) )
|
||||
// PORT_DIPSETTING( 0x8000, DEF_STR( Off ) )
|
||||
PORT_DIPSETTING( 0x4000, "Inputs/Outputs" )
|
||||
PORT_DIPSETTING( 0x0000, "Graphics" )
|
||||
INPUT_PORTS_END
|
||||
|
||||
static const gfx_layout text_layout =
|
||||
{
|
||||
@ -482,13 +563,31 @@ static const gfx_layout sprite_layout =
|
||||
32*8
|
||||
};
|
||||
|
||||
|
||||
static GFXDECODE_START( tigeroad )
|
||||
GFXDECODE_ENTRY( "text", 0, text_layout, 512, 16 ) /* colors 512-575 */
|
||||
GFXDECODE_ENTRY( "tiles", 0, tile_layout, 0, 16 ) /* colors 0-255 */
|
||||
GFXDECODE_ENTRY( "sprites", 0, sprite_layout, 256, 16 ) /* colors 256-511 */
|
||||
GFXDECODE_ENTRY( "text", 0, text_layout, 0x300, 16 )
|
||||
GFXDECODE_ENTRY( "tiles", 0, tile_layout, 0x100, 16 )
|
||||
GFXDECODE_ENTRY( "sprites", 0, sprite_layout, 0x200, 16 )
|
||||
GFXDECODE_END
|
||||
|
||||
void tigeroad_state::machine_start()
|
||||
{
|
||||
save_item(NAME(m_control));
|
||||
save_item(NAME(m_shared_ram));
|
||||
save_item(NAME(m_latch));
|
||||
save_item(NAME(m_new_latch));
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(tigeroad_state,pushman)
|
||||
{
|
||||
// todo, move to an MCU sim reset function in machine/tigeroad.c
|
||||
m_latch = 0;
|
||||
m_new_latch = 0;
|
||||
m_control[0] = 0;
|
||||
m_control[1] = 0;
|
||||
|
||||
memset(m_shared_ram, 0, ARRAY_LENGTH(m_shared_ram));
|
||||
}
|
||||
|
||||
/* handler called by the 2203 emulator when the internal timers cause an IRQ */
|
||||
WRITE_LINE_MEMBER(tigeroad_state::irqhandler)
|
||||
@ -523,7 +622,7 @@ static MACHINE_CONFIG_START( tigeroad, tigeroad_state )
|
||||
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", tigeroad)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 576)
|
||||
MCFG_PALETTE_ADD("palette", 1024)
|
||||
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
|
||||
|
||||
/* sound hardware */
|
||||
@ -555,6 +654,70 @@ static MACHINE_CONFIG_DERIVED( toramich, tigeroad )
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
static MACHINE_CONFIG_START( f1dream_comad, tigeroad_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", M68000, 8000000)
|
||||
MCFG_CPU_PROGRAM_MAP(main_map)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", tigeroad_state, irq2_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("audiocpu", Z80, 4000000)
|
||||
MCFG_CPU_PROGRAM_MAP(comad_sound_map)
|
||||
MCFG_CPU_IO_MAP(comad_sound_io_map)
|
||||
|
||||
MCFG_QUANTUM_TIME(attotime::from_hz(3600))
|
||||
|
||||
/* video hardware */
|
||||
MCFG_BUFFERED_SPRITERAM16_ADD("spriteram")
|
||||
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_REFRESH_RATE(60.08) /* verified on pcb */
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
|
||||
MCFG_SCREEN_SIZE(32*8, 32*8)
|
||||
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(tigeroad_state, screen_update_tigeroad)
|
||||
MCFG_SCREEN_VBLANK_DEVICE("spriteram", buffered_spriteram16_device, vblank_copy_rising)
|
||||
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", tigeroad)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 1024)
|
||||
MCFG_PALETTE_FORMAT(xxxxRRRRGGGGBBBB)
|
||||
|
||||
/* sound hardware */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
||||
MCFG_SOUND_ADD("ym1", YM2203, 2000000)
|
||||
MCFG_YM2203_IRQ_HANDLER(WRITELINE(tigeroad_state, irqhandler))
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
|
||||
|
||||
MCFG_SOUND_ADD("ym2", YM2203, 2000000)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( pushman, f1dream_comad )
|
||||
MCFG_CPU_ADD("mcu", M68705, 4000000) /* No idea */
|
||||
MCFG_CPU_PROGRAM_MAP(mcu_map)
|
||||
MCFG_MACHINE_RESET_OVERRIDE(tigeroad_state,pushman)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
MACHINE_RESET_MEMBER(tigeroad_state,bballs)
|
||||
{
|
||||
MACHINE_RESET_CALL_MEMBER(pushman);
|
||||
|
||||
m_latch = 0x400;
|
||||
}
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( bballs, f1dream_comad )
|
||||
MCFG_CPU_MODIFY("maincpu")
|
||||
MCFG_CPU_PROGRAM_MAP(bballs_map)
|
||||
|
||||
MCFG_MACHINE_RESET_OVERRIDE(tigeroad_state,bballs)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
@ -591,7 +754,7 @@ ROM_START( tigeroad )
|
||||
ROM_LOAD( "tr-11a.bin", 0x40000, 0x20000, CRC(cd9152e5) SHA1(6df3c43c0c41289890296c2b2aeca915dfdae3b0) )
|
||||
ROM_LOAD( "tr-12a.bin", 0x60000, 0x20000, CRC(7d8a99d0) SHA1(af8221cfd2ce9aa3bf296981fb7fddd1e9ef4599) )
|
||||
|
||||
ROM_REGION( 0x08000, "gfx4", 0 ) /* background tilemaps */
|
||||
ROM_REGION( 0x08000, "bgmap", 0 ) /* background tilemaps */
|
||||
ROM_LOAD( "tr13.bin", 0x0000, 0x8000, CRC(a79be1eb) SHA1(4191ccd48f7650930f9a4c2be0790239d7420bb1) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 )
|
||||
@ -628,7 +791,7 @@ ROM_START( toramich )
|
||||
ROM_LOAD( "tr-11a.bin", 0x40000, 0x20000, CRC(cd9152e5) SHA1(6df3c43c0c41289890296c2b2aeca915dfdae3b0) )
|
||||
ROM_LOAD( "tr-12a.bin", 0x60000, 0x20000, CRC(7d8a99d0) SHA1(af8221cfd2ce9aa3bf296981fb7fddd1e9ef4599) )
|
||||
|
||||
ROM_REGION( 0x08000, "gfx4", 0 ) /* background tilemaps */
|
||||
ROM_REGION( 0x08000, "bgmap", 0 ) /* background tilemaps */
|
||||
ROM_LOAD( "tr13.bin", 0x0000, 0x8000, CRC(a79be1eb) SHA1(4191ccd48f7650930f9a4c2be0790239d7420bb1) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 )
|
||||
@ -667,7 +830,7 @@ ROM_START( tigeroadb )
|
||||
ROM_LOAD( "tr-11a.bin", 0x40000, 0x20000, CRC(cd9152e5) SHA1(6df3c43c0c41289890296c2b2aeca915dfdae3b0) )
|
||||
ROM_LOAD( "tr-12a.bin", 0x60000, 0x20000, CRC(7d8a99d0) SHA1(af8221cfd2ce9aa3bf296981fb7fddd1e9ef4599) )
|
||||
|
||||
ROM_REGION( 0x08000, "gfx4", 0 ) /* background tilemaps */
|
||||
ROM_REGION( 0x08000, "bgmap", 0 ) /* background tilemaps */
|
||||
ROM_LOAD( "tr13.bin", 0x0000, 0x8000, CRC(a79be1eb) SHA1(4191ccd48f7650930f9a4c2be0790239d7420bb1) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 )
|
||||
@ -702,7 +865,7 @@ ROM_START( f1dream )
|
||||
ROM_LOAD( "03d_08.bin", 0x20000, 0x10000, CRC(811f2e22) SHA1(cca7e8cc43408c2c3067a731a98a8a6418a000aa) )
|
||||
ROM_LOAD( "02d_07.bin", 0x30000, 0x10000, CRC(aa9a1233) SHA1(c2079ad81d67b54483ea5f69ac2edf276ad58ca9) )
|
||||
|
||||
ROM_REGION( 0x08000, "gfx4", 0 ) /* background tilemaps */
|
||||
ROM_REGION( 0x08000, "bgmap", 0 ) /* background tilemaps */
|
||||
ROM_LOAD( "07l_15.bin", 0x0000, 0x8000, CRC(978758b7) SHA1(ebd415d70e2f1af3b1bd51f40e7d60f22369638c) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 )
|
||||
@ -736,7 +899,7 @@ ROM_START( f1dreamb )
|
||||
ROM_LOAD( "03d_08.bin", 0x20000, 0x10000, CRC(811f2e22) SHA1(cca7e8cc43408c2c3067a731a98a8a6418a000aa) )
|
||||
ROM_LOAD( "02d_07.bin", 0x30000, 0x10000, CRC(aa9a1233) SHA1(c2079ad81d67b54483ea5f69ac2edf276ad58ca9) )
|
||||
|
||||
ROM_REGION( 0x08000, "gfx4", 0 ) /* background tilemaps */
|
||||
ROM_REGION( 0x08000, "bgmap", 0 ) /* background tilemaps */
|
||||
ROM_LOAD( "07l_15.bin", 0x0000, 0x8000, CRC(978758b7) SHA1(ebd415d70e2f1af3b1bd51f40e7d60f22369638c) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 )
|
||||
@ -744,23 +907,240 @@ ROM_START( f1dreamb )
|
||||
ROM_END
|
||||
|
||||
|
||||
ROM_START( pushman )
|
||||
ROM_REGION( 0x40000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "pushman.012", 0x000000, 0x10000, CRC(330762bc) SHA1(c769b68da40183e6eb84212636bfd1265e5ed2d8) )
|
||||
ROM_LOAD16_BYTE( "pushman.011", 0x000001, 0x10000, CRC(62636796) SHA1(1a205c1b0efff4158439bc9a21cfe3cd8834aef9) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "pushman.013", 0x00000, 0x08000, CRC(adfe66c1) SHA1(fa4ed13d655c664b06e9b91292d2c0a88cb5a569) )
|
||||
|
||||
ROM_REGION( 0x01000, "mcu", 0 ) /* Verified same for all 4 currently dumped versions */
|
||||
ROM_LOAD( "pushman68705r3p.ic23", 0x00000, 0x01000, CRC(d7916657) SHA1(89c14c6044f082fffe2a8f86d0a82336f4a110a2) )
|
||||
|
||||
ROM_REGION( 0x10000, "text", 0 )
|
||||
ROM_LOAD( "pushman.001", 0x00000, 0x08000, CRC(626e5865) SHA1(4ab96c8512f439d18390094d71a898f5c576399c) )
|
||||
|
||||
ROM_REGION( 0x40000, "sprites", 0 )
|
||||
ROM_LOAD( "pushman.004", 0x30000, 0x10000, CRC(87aafa70) SHA1(560661b23ddac106a3d2762fc32da666b31e7424) )
|
||||
ROM_LOAD( "pushman.005", 0x20000, 0x10000, CRC(7fd1200c) SHA1(15d6781a2d7e3ec2e8f85f8585b1e3fd9fe4fd1d) )
|
||||
ROM_LOAD( "pushman.002", 0x10000, 0x10000, CRC(0a094ab0) SHA1(2ff5dcf0d9439eeadd61601170c9767f4d81f022) )
|
||||
ROM_LOAD( "pushman.003", 0x00000, 0x10000, CRC(73d1f29d) SHA1(0a87fe02b1efd04c540f016b2626d32da70219db) )
|
||||
|
||||
ROM_REGION( 0x40000, "tiles", 0 )
|
||||
ROM_LOAD( "pushman.006", 0x20000, 0x10000, CRC(48ef3da6) SHA1(407d50c2030584bb17a4d4a1bb45e0b04e1a95a4) )
|
||||
ROM_LOAD( "pushman.008", 0x30000, 0x10000, CRC(4b6a3e88) SHA1(c57d0528e942dd77a13e5a4bf39053f52915d44c) )
|
||||
ROM_LOAD( "pushman.007", 0x00000, 0x10000, CRC(b70020bd) SHA1(218ca4a08b87b7dc5c1eed99960f4098c4fc7e0c) )
|
||||
ROM_LOAD( "pushman.009", 0x10000, 0x10000, CRC(cc555667) SHA1(6c79e14fc18d1d836392044779cb3219494a3447) )
|
||||
|
||||
ROM_REGION( 0x10000, "bgmap", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "pushman.010", 0x00000, 0x08000, CRC(a500132d) SHA1(26b02c9fea69b51c5f7dc1b43b838cd336ebf862) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "n82s129an.ic82", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) */
|
||||
ROM_END
|
||||
|
||||
ROM_START( pushmana )
|
||||
ROM_REGION( 0x40000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "pushmana.212", 0x000000, 0x10000, CRC(871d0858) SHA1(690ca554c8c6f19c0f26ccd8d948e3aa6e1b23c0) )
|
||||
ROM_LOAD16_BYTE( "pushmana.011", 0x000001, 0x10000, CRC(ae57761e) SHA1(63467d61c967f38e0fbb8130f08e09e03cdcce6c) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "pushman.013", 0x00000, 0x08000, CRC(adfe66c1) SHA1(fa4ed13d655c664b06e9b91292d2c0a88cb5a569) ) // missing from this set?
|
||||
|
||||
ROM_REGION( 0x01000, "mcu", 0 ) /* Verified same for all 4 currently dumped versions */
|
||||
ROM_LOAD( "pushman68705r3p.ic23", 0x00000, 0x01000, CRC(d7916657) SHA1(89c14c6044f082fffe2a8f86d0a82336f4a110a2) )
|
||||
|
||||
ROM_REGION( 0x10000, "text", 0 )
|
||||
ROM_LOAD( "pushmana.130", 0x00000, 0x10000, CRC(f83f92e7) SHA1(37f337d7b496f8d81eed247c80390a6aabcf4b95) )
|
||||
|
||||
ROM_REGION( 0x40000, "sprites", 0 )
|
||||
ROM_LOAD( "pushman.004", 0x30000, 0x10000, CRC(87aafa70) SHA1(560661b23ddac106a3d2762fc32da666b31e7424) ) // .58
|
||||
ROM_LOAD( "pushman.005", 0x20000, 0x10000, CRC(7fd1200c) SHA1(15d6781a2d7e3ec2e8f85f8585b1e3fd9fe4fd1d) ) // .59
|
||||
ROM_LOAD( "pushman.002", 0x10000, 0x10000, CRC(0a094ab0) SHA1(2ff5dcf0d9439eeadd61601170c9767f4d81f022) ) // .56
|
||||
ROM_LOAD( "pushman.003", 0x00000, 0x10000, CRC(73d1f29d) SHA1(0a87fe02b1efd04c540f016b2626d32da70219db) ) // .57
|
||||
|
||||
ROM_REGION( 0x40000, "tiles", 0 )
|
||||
ROM_LOAD( "pushman.006", 0x20000, 0x10000, CRC(48ef3da6) SHA1(407d50c2030584bb17a4d4a1bb45e0b04e1a95a4) ) // .131
|
||||
ROM_LOAD( "pushman.008", 0x30000, 0x10000, CRC(4b6a3e88) SHA1(c57d0528e942dd77a13e5a4bf39053f52915d44c) ) // .148
|
||||
ROM_LOAD( "pushman.007", 0x00000, 0x10000, CRC(b70020bd) SHA1(218ca4a08b87b7dc5c1eed99960f4098c4fc7e0c) ) // .132
|
||||
ROM_LOAD( "pushman.009", 0x10000, 0x10000, CRC(cc555667) SHA1(6c79e14fc18d1d836392044779cb3219494a3447) ) // .149
|
||||
|
||||
ROM_REGION( 0x10000, "bgmap", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "pushmana.189", 0x00000, 0x10000, CRC(59f25598) SHA1(ace33afd6e6d07376ed01048db99b13bcec790d7) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "n82s129an.ic82", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) */
|
||||
ROM_END
|
||||
|
||||
ROM_START( pushmans )
|
||||
ROM_REGION( 0x40000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "pman-12.ic212", 0x000000, 0x10000, CRC(4251109d) SHA1(d4b020e4ecc2005b3a4c1b34d88de82b09bf5a6b) )
|
||||
ROM_LOAD16_BYTE( "pman-11.ic197", 0x000001, 0x10000, CRC(1167ed9f) SHA1(ca0296950a75ef15ff6f9d3a776b02180b941d61) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "pman-13.ic216", 0x00000, 0x08000, CRC(bc03827a) SHA1(b4d6ae164bbb7ba19e4934392fe2ba29575f28b9) )
|
||||
|
||||
ROM_REGION( 0x01000, "mcu", 0 ) /* Verified same for all 4 currently dumped versions */
|
||||
ROM_LOAD( "pushman68705r3p.ic23", 0x00000, 0x01000, CRC(d7916657) SHA1(89c14c6044f082fffe2a8f86d0a82336f4a110a2) )
|
||||
|
||||
ROM_REGION( 0x10000, "text", 0 )
|
||||
ROM_LOAD( "pman-1.ic130", 0x00000, 0x08000, CRC(14497754) SHA1(a47d03c56add18c5d9aed221990550b18589ff43) )
|
||||
|
||||
ROM_REGION( 0x40000, "sprites", 0 )
|
||||
ROM_LOAD( "pman-4.ic58", 0x30000, 0x10000, CRC(16e5ce6b) SHA1(cb9c6094a853abc550eae29c35083f26a0d1de94) )
|
||||
ROM_LOAD( "pman-5.ic59", 0x20000, 0x10000, CRC(b82140b8) SHA1(0a16b904eb2739bfa22a87d03266d3ff2b750b67) )
|
||||
ROM_LOAD( "pman-2.56", 0x10000, 0x10000, CRC(2cb2ac29) SHA1(165447ad7eb8593c0d4346096ec13ac386e905c9) )
|
||||
ROM_LOAD( "pman-3.57", 0x00000, 0x10000, CRC(8ab957c8) SHA1(143501819920c521353930f83e49f1e19fbba34f) )
|
||||
|
||||
ROM_REGION( 0x40000, "tiles", 0 )
|
||||
ROM_LOAD( "pman-6.ic131", 0x20000, 0x10000, CRC(bd0f9025) SHA1(7262410d4631f1b051c605d5cea5b91e9f68327e) )
|
||||
ROM_LOAD( "pman-8.ic148", 0x30000, 0x10000, CRC(591bd5c0) SHA1(6e0e18e0912fa38e113420ac31c7f36853b830ec) )
|
||||
ROM_LOAD( "pman-7.ic132", 0x00000, 0x10000, CRC(208cb197) SHA1(161633b6b0acf25447a5c0b3c6fbf18adc6e2243) )
|
||||
ROM_LOAD( "pman-9.ic149", 0x10000, 0x10000, CRC(77ee8577) SHA1(63d13683dd097d8e7cb71ad3abe04e11f2a58bd3) )
|
||||
|
||||
ROM_REGION( 0x10000, "bgmap", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "pman-10.ic189", 0x00000, 0x08000, CRC(5f9ae9a1) SHA1(87619918c28c942780f6dbd3818d4cc69932eefc) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "n82s129an.ic82", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) */
|
||||
ROM_END
|
||||
|
||||
ROM_START( pushmant ) /* Single plane PCB */
|
||||
ROM_REGION( 0x40000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "12.ic212", 0x000000, 0x10000, CRC(f5c77d86) SHA1(66d2d5dc9f4662efc5a865c9cc1bba653e86a674) )
|
||||
ROM_LOAD16_BYTE( "11.ic197", 0x000001, 0x10000, CRC(2e09ff08) SHA1(9bb05c51c985c3a12fb8d6fd915276e304651eb1) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "13.ic216", 0x00000, 0x08000, CRC(adfe66c1) SHA1(fa4ed13d655c664b06e9b91292d2c0a88cb5a569) ) /* Same as the Comad set */
|
||||
|
||||
ROM_REGION( 0x01000, "mcu", 0 ) /* Verified same for all 4 currently dumped versions */
|
||||
ROM_LOAD( "pushman68705r3p.ic23", 0x00000, 0x01000, CRC(d7916657) SHA1(89c14c6044f082fffe2a8f86d0a82336f4a110a2) )
|
||||
|
||||
ROM_REGION( 0x10000, "text", 0 )
|
||||
ROM_LOAD( "1.ic130", 0x00000, 0x08000, CRC(14497754) SHA1(a47d03c56add18c5d9aed221990550b18589ff43) ) /* Same as the Sammy set */
|
||||
|
||||
ROM_REGION( 0x40000, "sprites", 0 )
|
||||
ROM_LOAD( "4.ic58", 0x30000, 0x10000, CRC(69209214) SHA1(c5b527234aefbdfb39864806e2b1784fdf2dd49c) )
|
||||
ROM_LOAD( "5.ic59", 0x20000, 0x10000, CRC(75fc0ac4) SHA1(aa3a19573b96d89b94bfddda5b404d19cbb47335) )
|
||||
ROM_LOAD( "2.ic56", 0x10000, 0x10000, CRC(2bb8093f) SHA1(e86048d676b06796a1d2ed325ea8ea9cada3c4b6) )
|
||||
ROM_LOAD( "3.ic57", 0x00000, 0x10000, CRC(5f1c4e7a) SHA1(751caf2365eccbab6d7de5434c4656ac5bd7f13b) )
|
||||
|
||||
ROM_REGION( 0x40000, "tiles", 0 )
|
||||
ROM_LOAD( "6.ic131", 0x20000, 0x10000, CRC(bd0f9025) SHA1(7262410d4631f1b051c605d5cea5b91e9f68327e) ) /* These 4 are the same as the Sammy set */
|
||||
ROM_LOAD( "8.ic148", 0x30000, 0x10000, CRC(591bd5c0) SHA1(6e0e18e0912fa38e113420ac31c7f36853b830ec) )
|
||||
ROM_LOAD( "7.ic132", 0x00000, 0x10000, CRC(208cb197) SHA1(161633b6b0acf25447a5c0b3c6fbf18adc6e2243) )
|
||||
ROM_LOAD( "9.ic149", 0x10000, 0x10000, CRC(77ee8577) SHA1(63d13683dd097d8e7cb71ad3abe04e11f2a58bd3) )
|
||||
|
||||
ROM_REGION( 0x10000, "bgmap", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "10.ic189", 0x00000, 0x08000, CRC(5f9ae9a1) SHA1(87619918c28c942780f6dbd3818d4cc69932eefc) ) /* Same as the Sammy set */
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "n82s129an.ic82", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) */
|
||||
ROM_END
|
||||
|
||||
ROM_START( bballs )
|
||||
ROM_REGION( 0x40000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "bb12.m17", 0x000000, 0x10000, CRC(4501c245) SHA1(b03ace135b077e8c226dd3be04fa8e86ad096770) )
|
||||
ROM_LOAD16_BYTE( "bb11.l17", 0x000001, 0x10000, CRC(55e45b60) SHA1(103d848ae74b59ac2f5a5c5300323bbf8b109752) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "bb13.n4", 0x00000, 0x08000, CRC(1ef78175) SHA1(2e7dcbab3a572c2a6bb67a36ba283a5faeb14a88) )
|
||||
|
||||
ROM_REGION( 0x01000, "cpu2", 0 )
|
||||
ROM_LOAD( "68705.uc", 0x00000, 0x01000, NO_DUMP )
|
||||
|
||||
ROM_REGION( 0x10000, "text", 0 )
|
||||
ROM_LOAD( "bb1.g20", 0x00000, 0x08000, CRC(b62dbcb8) SHA1(121613f6d2bcd226e71d4ae71830b9b0d15c2331) )
|
||||
|
||||
ROM_REGION( 0x40000, "sprites", 0 )
|
||||
ROM_LOAD( "bb4.d1", 0x30000, 0x10000, CRC(b77de5f8) SHA1(e966f982d712109c4402ca3a8cd2c19640d52bdb) )
|
||||
ROM_LOAD( "bb5.d2", 0x20000, 0x10000, CRC(ffffccbf) SHA1(3ac85c06c3dca1de8839fca73f5de3982a3baca0) )
|
||||
ROM_LOAD( "bb2.b1", 0x10000, 0x10000, CRC(a5b13236) SHA1(e2d21fa3c878b328238ba8b400f3ab00b0763f6b) )
|
||||
ROM_LOAD( "bb3.b2", 0x00000, 0x10000, CRC(e35b383d) SHA1(5312e80d786dc2ffe0f7b1038a64f8ec6e590e0c) )
|
||||
|
||||
ROM_REGION( 0x40000, "tiles", 0 )
|
||||
ROM_LOAD( "bb6.h1", 0x20000, 0x10000, CRC(0cada9ce) SHA1(5f2e85baf5f04e874e0857451946c8b1e1c8d209) )
|
||||
ROM_LOAD( "bb8.j1", 0x30000, 0x10000, CRC(d55fe7c1) SHA1(de5ba87c0f905e6f1abadde3af63884a8a130806) )
|
||||
ROM_LOAD( "bb7.h2", 0x00000, 0x10000, CRC(a352d53b) SHA1(c71e976b7c28630d7af11fffe0d1cfd7d611ee8b) )
|
||||
ROM_LOAD( "bb9.j2", 0x10000, 0x10000, CRC(78d185ac) SHA1(6ed6e1f5eeb93129eeeab6bae22b640c9782f7fc) )
|
||||
|
||||
ROM_REGION( 0x10000, "bgmap", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "bb10.l6", 0x00000, 0x08000, CRC(d06498f9) SHA1(9f33bbc40ebe11c03aec29289f76f1c3ca5bf009) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "bb_prom.e9", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) N82S129 BPROM */
|
||||
ROM_END
|
||||
|
||||
ROM_START( bballsa )
|
||||
ROM_REGION( 0x40000, "maincpu", 0 )
|
||||
ROM_LOAD16_BYTE( "12.ic212", 0x000000, 0x10000, CRC(8917aedd) SHA1(ded983ba753699c97b02e991eb7195c0122b4065) )
|
||||
ROM_LOAD16_BYTE( "11.ic197", 0x000001, 0x10000, CRC(430fca1b) SHA1(70ed70396f5346a3120f7a046a111fa114c997bc) )
|
||||
|
||||
ROM_REGION( 0x10000, "audiocpu", 0 )
|
||||
ROM_LOAD( "13.ic216", 0x00000, 0x08000, CRC(1ef78175) SHA1(2e7dcbab3a572c2a6bb67a36ba283a5faeb14a88) )
|
||||
|
||||
ROM_REGION( 0x01000, "cpu2", 0 )
|
||||
ROM_LOAD( "68705.uc", 0x00000, 0x01000, NO_DUMP )
|
||||
|
||||
ROM_REGION( 0x10000, "text", 0 )
|
||||
ROM_LOAD( "1.ic130", 0x00000, 0x08000, CRC(67672444) SHA1(f1d4681999d44e8d3cbf26b8a9c05f50573e0df6) )
|
||||
|
||||
ROM_REGION( 0x40000, "sprites", 0 )
|
||||
ROM_LOAD( "4.ic58", 0x30000, 0x10000, CRC(144ca816) SHA1(c166e3f42f12c14df977adad363575e786b2be51) )
|
||||
ROM_LOAD( "5.ic59", 0x20000, 0x10000, CRC(486c8385) SHA1(4421160573a2435bb0f330a04fef486d14a1293b) )
|
||||
ROM_LOAD( "2.ic56", 0x10000, 0x10000, CRC(1d464915) SHA1(3396e919da7e3d08a1a9c76db5d0d214ddf7adcd) )
|
||||
ROM_LOAD( "3.ic57", 0x00000, 0x10000, CRC(595439ec) SHA1(6e1a79e5583960f700fd8a63cd48c7e222a315dc) )
|
||||
|
||||
ROM_REGION( 0x40000, "tiles", 0 )
|
||||
ROM_LOAD( "6.ic131", 0x20000, 0x10000, CRC(15d4975b) SHA1(71dbb63e70a52ec12fdfc20047a48beb73fac8a0) )
|
||||
ROM_LOAD( "8.ic148", 0x30000, 0x10000, CRC(c1a21c75) SHA1(34b877ac85274e50b2ce65945b9761e70e80b852) )
|
||||
ROM_LOAD( "7.ic132", 0x00000, 0x10000, CRC(2289393a) SHA1(e1370925a92f7d9f96c9431cf1b8dd262c41017e) )
|
||||
ROM_LOAD( "9.ic149", 0x10000, 0x10000, CRC(1fe3d172) SHA1(f7415e8633507a507ec1cd68de224722a726a473) )
|
||||
|
||||
ROM_REGION( 0x10000, "bgmap", 0 ) /* bg tilemaps */
|
||||
ROM_LOAD( "10.ic189", 0x00000, 0x08000, CRC(52e4ab27) SHA1(c9ae15f970b4bf120a4bbee9adcf0e5e4de001e7) )
|
||||
|
||||
ROM_REGION( 0x0100, "proms", 0 ) /* this is the same as tiger road / f1-dream */
|
||||
ROM_LOAD( "bb_prom.e9", 0x0000, 0x0100, CRC(ec80ae36) SHA1(397ec8fc1b106c8b8d4bf6798aa429e8768a101a) ) /* priority (not used) N82S129 BPROM */
|
||||
ROM_END
|
||||
|
||||
DRIVER_INIT_MEMBER(tigeroad_state,tigeroad)
|
||||
{
|
||||
m_maincpu->space(AS_PROGRAM).install_write_handler(0xfe4002, 0xfe4003, write16_delegate(FUNC(tigeroad_state::tigeroad_soundcmd_w),this));
|
||||
}
|
||||
|
||||
DRIVER_INIT_MEMBER(tigeroad_state,f1dream)
|
||||
{
|
||||
m_maincpu->space(AS_PROGRAM).install_write_handler(0xfe4002, 0xfe4003, write16_delegate(FUNC(tigeroad_state::f1dream_control_w),this));
|
||||
}
|
||||
|
||||
DRIVER_INIT_MEMBER(tigeroad_state,pushman)
|
||||
{
|
||||
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0x060000, 0x060007, read16_delegate(FUNC(tigeroad_state::pushman_68705_r),this), write16_delegate(FUNC(tigeroad_state::pushman_68705_w),this) );
|
||||
m_has_coinlock = 0;
|
||||
}
|
||||
|
||||
DRIVER_INIT_MEMBER(tigeroad_state,bballs)
|
||||
{
|
||||
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0x060000, 0x060007, read16_delegate(FUNC(tigeroad_state::bballs_68705_r),this), write16_delegate(FUNC(tigeroad_state::bballs_68705_w),this) );
|
||||
m_has_coinlock = 0;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
|
||||
GAME( 1987, tigeroad, 0, tigeroad, tigeroad, tigeroad_state, tigeroad, ROT0, "Capcom (Romstar license)", "Tiger Road (US)", 0 )
|
||||
GAME( 1987, toramich, tigeroad, toramich, toramich, tigeroad_state, tigeroad, ROT0, "Capcom", "Tora e no Michi (Japan)", 0 )
|
||||
GAME( 1987, tigeroadb,tigeroad, tigeroad, tigeroad, tigeroad_state, tigeroad, ROT0, "bootleg", "Tiger Road (US bootleg)", 0 )
|
||||
GAME( 1987, tigeroad, 0, tigeroad, tigeroad, driver_device, 0, ROT0, "Capcom (Romstar license)", "Tiger Road (US)", 0 )
|
||||
GAME( 1987, toramich, tigeroad, toramich, toramich, driver_device, 0, ROT0, "Capcom", "Tora e no Michi (Japan)", 0 )
|
||||
GAME( 1987, tigeroadb,tigeroad, tigeroad, tigeroad, driver_device, 0, ROT0, "bootleg", "Tiger Road (US bootleg)", 0 )
|
||||
|
||||
/* F1 Dream has an Intel 8751 microcontroller for protection */
|
||||
GAME( 1988, f1dream, 0, tigeroad, f1dream, tigeroad_state, f1dream, ROT0, "Capcom (Romstar license)", "F-1 Dream", 0 )
|
||||
GAME( 1988, f1dreamb, f1dream, tigeroad, f1dream, tigeroad_state, tigeroad, ROT0, "bootleg", "F-1 Dream (bootleg)", 0 )
|
||||
GAME( 1988, f1dream, 0, tigeroad, f1dream, tigeroad_state, f1dream, ROT0, "Capcom (Romstar license)", "F-1 Dream", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION ) // collisions are wrong
|
||||
GAME( 1988, f1dreamb, f1dream, tigeroad, f1dream, driver_device, 0, ROT0, "bootleg", "F-1 Dream (bootleg)", 0 )
|
||||
|
||||
/* This Comad hardware is based around the F1 Dream design */
|
||||
GAME( 1990, pushman, 0, pushman, pushman, tigeroad_state, pushman, ROT0, "Comad", "Pushman (Korea, set 1)", GAME_SUPPORTS_SAVE )
|
||||
GAME( 1990, pushmana, pushman, pushman, pushman, tigeroad_state, pushman, ROT0, "Comad", "Pushman (Korea, set 2)", GAME_SUPPORTS_SAVE )
|
||||
GAME( 1990, pushmans, pushman, pushman, pushman, tigeroad_state, pushman, ROT0, "Comad (American Sammy license)", "Pushman (American Sammy license)", GAME_SUPPORTS_SAVE )
|
||||
GAME( 1990, pushmant, pushman, pushman, pushman, tigeroad_state, pushman, ROT0, "Comad (Top Tronic license)", "Pushman (Top Tronic license)", GAME_SUPPORTS_SAVE )
|
||||
|
||||
GAME( 1991, bballs, 0, bballs, bballs, tigeroad_state, bballs, ROT0, "Comad", "Bouncing Balls", GAME_SUPPORTS_SAVE )
|
||||
GAME( 1991, bballsa, bballs, bballs, bballs, tigeroad_state, bballs, ROT0, "Comad", "Bouncing Balls (Adult)", GAME_SUPPORTS_SAVE )
|
||||
|
||||
|
||||
|
@ -1,61 +0,0 @@
|
||||
/*************************************************************************
|
||||
|
||||
Pushman
|
||||
|
||||
*************************************************************************/
|
||||
|
||||
class pushman_state : public driver_device
|
||||
{
|
||||
public:
|
||||
pushman_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: driver_device(mconfig, type, tag),
|
||||
m_spriteram(*this, "spriteram"),
|
||||
m_videoram(*this, "videoram"),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_audiocpu(*this, "audiocpu"),
|
||||
m_mcu(*this, "mcu"),
|
||||
m_gfxdecode(*this, "gfxdecode"),
|
||||
m_palette(*this, "palette") { }
|
||||
|
||||
/* memory pointers */
|
||||
required_shared_ptr<UINT16> m_spriteram;
|
||||
required_shared_ptr<UINT16> m_videoram;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_tx_tilemap;
|
||||
UINT16 m_control[2];
|
||||
|
||||
/* misc */
|
||||
UINT8 m_shared_ram[8];
|
||||
UINT16 m_latch;
|
||||
UINT16 m_new_latch;
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
optional_device<cpu_device> m_mcu;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
DECLARE_WRITE16_MEMBER(pushman_flipscreen_w);
|
||||
DECLARE_WRITE16_MEMBER(pushman_control_w);
|
||||
DECLARE_READ16_MEMBER(pushman_68705_r);
|
||||
DECLARE_WRITE16_MEMBER(pushman_68705_w);
|
||||
DECLARE_READ16_MEMBER(bballs_68705_r);
|
||||
DECLARE_WRITE16_MEMBER(bballs_68705_w);
|
||||
DECLARE_READ8_MEMBER(pushman_68000_r);
|
||||
DECLARE_WRITE8_MEMBER(pushman_68000_w);
|
||||
DECLARE_WRITE16_MEMBER(pushman_scroll_w);
|
||||
DECLARE_WRITE16_MEMBER(pushman_videoram_w);
|
||||
TILEMAP_MAPPER_MEMBER(background_scan_rows);
|
||||
TILE_GET_INFO_MEMBER(get_back_tile_info);
|
||||
TILE_GET_INFO_MEMBER(get_text_tile_info);
|
||||
virtual void machine_start();
|
||||
virtual void video_start();
|
||||
DECLARE_MACHINE_RESET(pushman);
|
||||
DECLARE_MACHINE_RESET(bballs);
|
||||
UINT32 screen_update_pushman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
|
||||
DECLARE_WRITE_LINE_MEMBER(irqhandler);
|
||||
};
|
@ -1,5 +1,10 @@
|
||||
#include "video/bufsprite.h"
|
||||
#include "sound/msm5205.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "sound/2203intf.h"
|
||||
#include "sound/msm5205.h"
|
||||
#include "cpu/m6805/m6805.h"
|
||||
|
||||
class tigeroad_state : public driver_device
|
||||
{
|
||||
@ -13,7 +18,10 @@ public:
|
||||
m_audiocpu(*this, "audiocpu"),
|
||||
m_msm(*this, "msm"),
|
||||
m_gfxdecode(*this, "gfxdecode"),
|
||||
m_palette(*this, "palette") { }
|
||||
m_palette(*this, "palette"),
|
||||
m_mcu(*this, "mcu"),
|
||||
m_has_coinlock(1)
|
||||
{ }
|
||||
|
||||
required_device<buffered_spriteram16_device> m_spriteram;
|
||||
required_shared_ptr<UINT16> m_videoram;
|
||||
@ -28,7 +36,8 @@ public:
|
||||
DECLARE_WRITE16_MEMBER(tigeroad_scroll_w);
|
||||
DECLARE_WRITE8_MEMBER(msm5205_w);
|
||||
DECLARE_DRIVER_INIT(f1dream);
|
||||
DECLARE_DRIVER_INIT(tigeroad);
|
||||
DECLARE_DRIVER_INIT(pushman);
|
||||
DECLARE_DRIVER_INIT(bballs);
|
||||
TILE_GET_INFO_MEMBER(get_bg_tile_info);
|
||||
TILE_GET_INFO_MEMBER(get_fg_tile_info);
|
||||
TILEMAP_MAPPER_MEMBER(tigeroad_tilemap_scan);
|
||||
@ -42,4 +51,26 @@ public:
|
||||
optional_device<msm5205_device> m_msm;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
optional_device<cpu_device> m_mcu;
|
||||
|
||||
UINT16 m_control[2];
|
||||
|
||||
/* misc */
|
||||
UINT8 m_shared_ram[8];
|
||||
UINT16 m_latch;
|
||||
UINT16 m_new_latch;
|
||||
int m_has_coinlock;
|
||||
|
||||
/* protection handling */
|
||||
DECLARE_READ16_MEMBER(pushman_68705_r);
|
||||
DECLARE_WRITE16_MEMBER(pushman_68705_w);
|
||||
DECLARE_READ16_MEMBER(bballs_68705_r);
|
||||
DECLARE_WRITE16_MEMBER(bballs_68705_w);
|
||||
DECLARE_READ8_MEMBER(pushman_68000_r);
|
||||
DECLARE_WRITE8_MEMBER(pushman_68000_w);
|
||||
DECLARE_MACHINE_RESET(pushman);
|
||||
DECLARE_MACHINE_RESET(bballs);
|
||||
|
||||
virtual void machine_start();
|
||||
|
||||
};
|
||||
|
212
src/mame/machine/tigeroad.c
Normal file
212
src/mame/machine/tigeroad.c
Normal file
@ -0,0 +1,212 @@
|
||||
#include "emu.h"
|
||||
#include "includes/tigeroad.h"
|
||||
|
||||
/*
|
||||
F1 Dream protection code written by Eric Hustvedt (hustvedt@ma.ultranet.com).
|
||||
|
||||
The genuine F1 Dream game uses an 8751 microcontroller as a protection measure.
|
||||
Since the microcontroller's ROM is unavailable all interactions with it are handled
|
||||
via blackbox algorithm.
|
||||
|
||||
Some notes:
|
||||
- The 8751 is triggered via location 0xfe4002, in place of the soundlatch normally
|
||||
present. The main cpu writes 0 to the location when it wants the 8751 to perform some work.
|
||||
- The 8751 has memory which shadows locations 0xffffe0-0xffffff of the main cpu's address space.
|
||||
- The word at 0xffffe0 contains an 'opcode' which is written just before the write to 0xfe4002.
|
||||
- Some of the writes to the soundlatch may not be handled. 0x27fc is the main sound routine, the
|
||||
other locations are less frequently used.
|
||||
*/
|
||||
|
||||
static const int f1dream_613ea_lookup[16] = {
|
||||
0x0052, 0x0031, 0x00a7, 0x0043, 0x0007, 0x008a, 0x00b1, 0x0066, 0x009f, 0x00cc, 0x0009, 0x004d, 0x0033, 0x0028, 0x00d0, 0x0025};
|
||||
|
||||
static const int f1dream_613eb_lookup[256] = {
|
||||
0x0001, 0x00b5, 0x00b6, 0x00b6, 0x00b6, 0x00b6, 0x00b6, 0x00b6, 0x00b7, 0x0001, 0x00b8, 0x002f, 0x002f, 0x002f, 0x002f, 0x00b9,
|
||||
0x00aa, 0x0031, 0x00ab, 0x00ab, 0x00ab, 0x00ac, 0x00ad, 0x00ad, 0x00ae, 0x00af, 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x0091,
|
||||
0x009c, 0x009d, 0x009e, 0x009f, 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, 0x00a8, 0x00a9, 0x009b, 0x0091,
|
||||
0x00bc, 0x0092, 0x000b, 0x0009, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097, 0x0073, 0x0001, 0x0098, 0x0099, 0x009a, 0x009b, 0x0091,
|
||||
0x00bc, 0x007b, 0x000b, 0x0008, 0x0087, 0x0088, 0x0089, 0x008a, 0x007f, 0x008b, 0x008c, 0x008d, 0x008e, 0x008f, 0x0090, 0x0091,
|
||||
0x00bd, 0x007b, 0x000b, 0x0007, 0x007c, 0x007d, 0x007e, 0x0001, 0x007f, 0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086,
|
||||
0x00bc, 0x0070, 0x000b, 0x0006, 0x0071, 0x0072, 0x0073, 0x0001, 0x0074, 0x000d, 0x0075, 0x0076, 0x0077, 0x0078, 0x0079, 0x007a,
|
||||
0x00bc, 0x00ba, 0x000a, 0x0005, 0x0065, 0x0066, 0x0067, 0x0068, 0x0068, 0x0069, 0x006a, 0x006b, 0x006c, 0x006d, 0x006e, 0x006f,
|
||||
0x00bc, 0x0059, 0x0001, 0x0004, 0x005a, 0x005b, 0x0001, 0x005c, 0x005d, 0x005e, 0x005f, 0x0060, 0x0061, 0x0062, 0x0063, 0x0064,
|
||||
0x0014, 0x004d, 0x0001, 0x0003, 0x004e, 0x004f, 0x0050, 0x0051, 0x0052, 0x0001, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057, 0x0058,
|
||||
0x0014, 0x0043, 0x0001, 0x0002, 0x0044, 0x0045, 0x0046, 0x0047, 0x0048, 0x0049, 0x00bb, 0x004a, 0x004b, 0x004c, 0x0001, 0x0001,
|
||||
0x0014, 0x002b, 0x0001, 0x0038, 0x0039, 0x003a, 0x003b, 0x0031, 0x003c, 0x003d, 0x003e, 0x003f, 0x0040, 0x0041, 0x0042, 0x0001,
|
||||
0x0014, 0x002d, 0x0001, 0x002e, 0x002f, 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0001, 0x0014, 0x0037, 0x0001,
|
||||
0x0014, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x0001, 0x0001, 0x0001, 0x002a, 0x002b, 0x002c,
|
||||
0x0014, 0x0015, 0x0016, 0x0017, 0x0018, 0x0019, 0x001a, 0x001b, 0x001c, 0x001d, 0x001e, 0x001e, 0x001e, 0x001e, 0x001f, 0x0020,
|
||||
0x000c, 0x000d, 0x000e, 0x0001, 0x000f, 0x0010, 0x0011, 0x0012, 0x000d, 0x000d, 0x000d, 0x000d, 0x000d, 0x000d, 0x000d, 0x0013 };
|
||||
|
||||
static const int f1dream_17b74_lookup[128] = {
|
||||
0x0003, 0x0040, 0x0005, 0x0080, 0x0003, 0x0080, 0x0005, 0x00a0, 0x0003, 0x0040, 0x0005, 0x00c0, 0x0003, 0x0080, 0x0005, 0x00e0,
|
||||
0x0003, 0x0040, 0x0006, 0x0000, 0x0003, 0x0080, 0x0006, 0x0020, 0x0003, 0x0040, 0x0006, 0x0040, 0x0003, 0x0080, 0x0006, 0x0060,
|
||||
0x0000, 0x00a0, 0x0009, 0x00e0, 0x0000, 0x00e0, 0x000a, 0x0000, 0x0000, 0x00a0, 0x000a, 0x0020, 0x0000, 0x00e0, 0x000a, 0x0040,
|
||||
0x0000, 0x00a0, 0x000a, 0x0060, 0x0000, 0x00e0, 0x000a, 0x0080, 0x0000, 0x00a0, 0x000a, 0x00a0, 0x0000, 0x00e0, 0x000a, 0x00c0,
|
||||
0x0003, 0x0040, 0x0005, 0x0080, 0x0003, 0x0080, 0x0005, 0x00a0, 0x0003, 0x0040, 0x0005, 0x00c0, 0x0003, 0x0080, 0x0005, 0x00e0,
|
||||
0x0003, 0x0040, 0x0006, 0x0000, 0x0003, 0x0080, 0x0006, 0x0020, 0x0003, 0x0040, 0x0006, 0x0040, 0x0003, 0x0080, 0x0006, 0x0060,
|
||||
0x0000, 0x00a0, 0x0009, 0x00e0, 0x0000, 0x00e0, 0x000a, 0x0000, 0x0000, 0x00a0, 0x000a, 0x0020, 0x0000, 0x00e0, 0x000a, 0x0040,
|
||||
0x0000, 0x00a0, 0x000a, 0x0060, 0x0000, 0x00e0, 0x000a, 0x0080, 0x0000, 0x00a0, 0x000a, 0x00a0, 0x0000, 0x00e0, 0x000a, 0x00c0 };
|
||||
|
||||
static const int f1dream_2450_lookup[32] = {
|
||||
0x0003, 0x0080, 0x0006, 0x0060, 0x0000, 0x00e0, 0x000a, 0x00c0, 0x0003, 0x0080, 0x0006, 0x0060, 0x0000, 0x00e0, 0x000a, 0x00c0,
|
||||
0x0003, 0x0080, 0x0006, 0x0060, 0x0000, 0x00e0, 0x000a, 0x00c0, 0x0003, 0x0080, 0x0006, 0x0060, 0x0000, 0x00e0, 0x000a, 0x00c0 };
|
||||
|
||||
void tigeroad_state::f1dream_protection_w(address_space &space)
|
||||
{
|
||||
int indx;
|
||||
int value = 255;
|
||||
int prevpc = space.device().safe_pcbase();
|
||||
|
||||
if (prevpc == 0x244c)
|
||||
{
|
||||
/* Called once, when a race is started.*/
|
||||
indx = m_ram16[0x3ff0/2];
|
||||
m_ram16[0x3fe6/2] = f1dream_2450_lookup[indx];
|
||||
m_ram16[0x3fe8/2] = f1dream_2450_lookup[++indx];
|
||||
m_ram16[0x3fea/2] = f1dream_2450_lookup[++indx];
|
||||
m_ram16[0x3fec/2] = f1dream_2450_lookup[++indx];
|
||||
}
|
||||
else if (prevpc == 0x613a)
|
||||
{
|
||||
/* Called for every sprite on-screen.*/
|
||||
if (m_ram16[0x3ff6/2] < 15)
|
||||
{
|
||||
indx = f1dream_613ea_lookup[m_ram16[0x3ff6/2]] - m_ram16[0x3ff4/2];
|
||||
if (indx > 255)
|
||||
{
|
||||
indx <<= 4;
|
||||
indx += m_ram16[0x3ff6/2] & 0x00ff;
|
||||
value = f1dream_613eb_lookup[indx];
|
||||
}
|
||||
}
|
||||
|
||||
m_ram16[0x3ff2/2] = value;
|
||||
}
|
||||
else if (prevpc == 0x17b70)
|
||||
{
|
||||
/* Called only before a real race, not a time trial.*/
|
||||
if (m_ram16[0x3ff0/2] >= 0x04) indx = 128;
|
||||
else if (m_ram16[0x3ff0/2] > 0x02) indx = 96;
|
||||
else if (m_ram16[0x3ff0/2] == 0x02) indx = 64;
|
||||
else if (m_ram16[0x3ff0/2] == 0x01) indx = 32;
|
||||
else indx = 0;
|
||||
|
||||
indx += m_ram16[0x3fee/2];
|
||||
if (indx < 128)
|
||||
{
|
||||
m_ram16[0x3fe6/2] = f1dream_17b74_lookup[indx];
|
||||
m_ram16[0x3fe8/2] = f1dream_17b74_lookup[++indx];
|
||||
m_ram16[0x3fea/2] = f1dream_17b74_lookup[++indx];
|
||||
m_ram16[0x3fec/2] = f1dream_17b74_lookup[++indx];
|
||||
}
|
||||
else
|
||||
{
|
||||
m_ram16[0x3fe6/2] = 0x00ff;
|
||||
m_ram16[0x3fe8/2] = 0x00ff;
|
||||
m_ram16[0x3fea/2] = 0x00ff;
|
||||
m_ram16[0x3fec/2] = 0x00ff;
|
||||
}
|
||||
}
|
||||
else if ((prevpc == 0x27f8) || (prevpc == 0x511a) || (prevpc == 0x5142) || (prevpc == 0x516a))
|
||||
{
|
||||
/* The main CPU stuffs the byte for the soundlatch into 0xfffffd.*/
|
||||
soundlatch_byte_w(space,2,m_ram16[0x3ffc/2]);
|
||||
}
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(tigeroad_state::f1dream_control_w)
|
||||
{
|
||||
logerror("protection write, PC: %04x FFE1 Value:%01x\n",space.device().safe_pc(), m_ram16[0x3fe0/2]);
|
||||
f1dream_protection_w(space);
|
||||
}
|
||||
|
||||
|
||||
READ16_MEMBER(tigeroad_state::pushman_68705_r)
|
||||
{
|
||||
if (offset == 0)
|
||||
return m_latch;
|
||||
|
||||
if (offset == 3 && m_new_latch)
|
||||
{
|
||||
m_new_latch = 0;
|
||||
return 0;
|
||||
}
|
||||
if (offset == 3 && !m_new_latch)
|
||||
return 0xff;
|
||||
|
||||
return (m_shared_ram[2 * offset + 1] << 8) + m_shared_ram[2 * offset];
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(tigeroad_state::pushman_68705_w)
|
||||
{
|
||||
if (ACCESSING_BITS_8_15)
|
||||
m_shared_ram[2 * offset] = data >> 8;
|
||||
if (ACCESSING_BITS_0_7)
|
||||
m_shared_ram[2 * offset + 1] = data & 0xff;
|
||||
|
||||
if (offset == 1)
|
||||
{
|
||||
m_mcu->set_input_line(M68705_IRQ_LINE, HOLD_LINE);
|
||||
space.device().execute().spin();
|
||||
m_new_latch = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* ElSemi - Bouncing balls protection. */
|
||||
READ16_MEMBER(tigeroad_state::bballs_68705_r)
|
||||
{
|
||||
if (offset == 0)
|
||||
return m_latch;
|
||||
if (offset == 3 && m_new_latch)
|
||||
{
|
||||
m_new_latch = 0;
|
||||
return 0;
|
||||
}
|
||||
if (offset == 3 && !m_new_latch)
|
||||
return 0xff;
|
||||
|
||||
return (m_shared_ram[2 * offset + 1] << 8) + m_shared_ram[2 * offset];
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(tigeroad_state::bballs_68705_w)
|
||||
{
|
||||
if (ACCESSING_BITS_8_15)
|
||||
m_shared_ram[2 * offset] = data >> 8;
|
||||
if (ACCESSING_BITS_0_7)
|
||||
m_shared_ram[2 * offset + 1] = data & 0xff;
|
||||
|
||||
if (offset == 0)
|
||||
{
|
||||
m_latch = 0;
|
||||
if (m_shared_ram[0] <= 0xf)
|
||||
{
|
||||
m_latch = m_shared_ram[0] << 2;
|
||||
if (m_shared_ram[1])
|
||||
m_latch |= 2;
|
||||
m_new_latch = 1;
|
||||
}
|
||||
else if (m_shared_ram[0])
|
||||
{
|
||||
if (m_shared_ram[1])
|
||||
m_latch |= 2;
|
||||
m_new_latch = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
READ8_MEMBER(tigeroad_state::pushman_68000_r)
|
||||
{
|
||||
return m_shared_ram[offset];
|
||||
}
|
||||
|
||||
WRITE8_MEMBER(tigeroad_state::pushman_68000_w)
|
||||
{
|
||||
if (offset == 2 && (m_shared_ram[2] & 2) == 0 && data & 2)
|
||||
{
|
||||
m_latch = (m_shared_ram[1] << 8) | m_shared_ram[0];
|
||||
m_new_latch = 1;
|
||||
}
|
||||
m_shared_ram[offset] = data;
|
||||
}
|
@ -973,6 +973,7 @@ $(MAMEOBJ)/capcom.a: \
|
||||
$(DRIVERS)/sonson.o $(VIDEO)/sonson.o \
|
||||
$(DRIVERS)/srumbler.o $(VIDEO)/srumbler.o \
|
||||
$(DRIVERS)/tigeroad.o $(VIDEO)/tigeroad.o \
|
||||
$(MACHINE)/tigeroad.o \
|
||||
$(DRIVERS)/vulgus.o $(VIDEO)/vulgus.o \
|
||||
$(MACHINE)/cps2crpt.o \
|
||||
$(MACHINE)/kabuki.o \
|
||||
@ -990,7 +991,6 @@ $(MAMEOBJ)/cinemat.a: \
|
||||
$(MAMEOBJ)/comad.a: \
|
||||
$(DRIVERS)/funybubl.o $(VIDEO)/funybubl.o \
|
||||
$(DRIVERS)/galspnbl.o $(VIDEO)/galspnbl.o \
|
||||
$(DRIVERS)/pushman.o $(VIDEO)/pushman.o \
|
||||
$(DRIVERS)/zerozone.o $(VIDEO)/zerozone.o \
|
||||
|
||||
$(MAMEOBJ)/cvs.a: \
|
||||
|
@ -1,124 +0,0 @@
|
||||
#include "emu.h"
|
||||
#include "includes/pushman.h"
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Callbacks for the TileMap code
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
TILEMAP_MAPPER_MEMBER(pushman_state::background_scan_rows)
|
||||
{
|
||||
/* logical (col,row) -> memory offset */
|
||||
return ((col & 0x7)) + ((7 - (row & 0x7)) << 3) + ((col & 0x78) << 3) + ((0x38 - (row & 0x38)) << 7);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(pushman_state::get_back_tile_info)
|
||||
{
|
||||
UINT8 *bg_map = memregion("gfx4")->base();
|
||||
int tile;
|
||||
|
||||
tile = bg_map[tile_index << 1] + (bg_map[(tile_index << 1) + 1] << 8);
|
||||
SET_TILE_INFO_MEMBER(2,
|
||||
(tile & 0xff) | ((tile & 0x4000) >> 6),
|
||||
(tile >> 8) & 0xf,
|
||||
(tile & 0x2000) ? TILE_FLIPX : 0);
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(pushman_state::get_text_tile_info)
|
||||
{
|
||||
int tile = m_videoram[tile_index];
|
||||
SET_TILE_INFO_MEMBER(0,
|
||||
(tile & 0xff) | ((tile & 0xc000) >> 6) | ((tile & 0x2000) >> 3),
|
||||
(tile >> 8) & 0xf,
|
||||
(tile & 0x1000) ? TILE_FLIPY : 0); /* not used? from Tiger Road */
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Start the video hardware emulation.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
void pushman_state::video_start()
|
||||
{
|
||||
m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(pushman_state::get_back_tile_info),this), tilemap_mapper_delegate(FUNC(pushman_state::background_scan_rows),this), 32, 32, 128, 64);
|
||||
m_tx_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(pushman_state::get_text_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
|
||||
|
||||
m_tx_tilemap->set_transparent_pen(3);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Memory handlers
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
WRITE16_MEMBER(pushman_state::pushman_scroll_w)
|
||||
{
|
||||
COMBINE_DATA(&m_control[offset]);
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(pushman_state::pushman_videoram_w)
|
||||
{
|
||||
COMBINE_DATA(&m_videoram[offset]);
|
||||
m_tx_tilemap->mark_tile_dirty(offset);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
Display refresh
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
void pushman_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
|
||||
{
|
||||
UINT16 *spriteram = m_spriteram;
|
||||
int offs, x, y, color, sprite, flipx, flipy;
|
||||
|
||||
for (offs = 0x0800 - 4; offs >=0; offs -= 4)
|
||||
{
|
||||
/* Don't draw empty sprite table entries */
|
||||
x = spriteram[offs + 3] & 0x1ff;
|
||||
if (x == 0x180)
|
||||
continue;
|
||||
if (x > 0xff)
|
||||
x = 0 - (0x200 - x);
|
||||
|
||||
y = 240 - spriteram[offs + 2];
|
||||
color = ((spriteram[offs + 1] >> 2) & 0xf);
|
||||
sprite = spriteram[offs] & 0x7ff;
|
||||
/* ElSemi - Sprite flip info */
|
||||
flipx = spriteram[offs + 1] & 2;
|
||||
flipy = spriteram[offs + 1] & 1; /* flip y untested */
|
||||
|
||||
if (flip_screen())
|
||||
{
|
||||
x = 240 - x;
|
||||
y = 240 - y;
|
||||
flipx = !flipx;
|
||||
flipy = !flipy;
|
||||
}
|
||||
|
||||
m_gfxdecode->gfx(1)->transpen(bitmap,cliprect, sprite,
|
||||
color, flipx, flipy, x, y, 15);
|
||||
}
|
||||
}
|
||||
|
||||
UINT32 pushman_state::screen_update_pushman(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
/* Setup the tilemaps */
|
||||
m_bg_tilemap->set_scrollx(0, m_control[0]);
|
||||
m_bg_tilemap->set_scrolly(0, 0xf00 - m_control[1]);
|
||||
|
||||
m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
|
||||
draw_sprites(bitmap, cliprect);
|
||||
m_tx_tilemap->draw(screen, bitmap, cliprect, 0, 0);
|
||||
return 0;
|
||||
}
|
@ -36,9 +36,11 @@ WRITE16_MEMBER(tigeroad_state::tigeroad_videoctrl_w)
|
||||
}
|
||||
|
||||
/* bits 4-5 are coin lockouts */
|
||||
|
||||
coin_lockout_w(machine(), 0, !(data & 0x10));
|
||||
coin_lockout_w(machine(), 1, !(data & 0x20));
|
||||
if (m_has_coinlock)
|
||||
{
|
||||
coin_lockout_w(machine(), 0, !(data & 0x10));
|
||||
coin_lockout_w(machine(), 1, !(data & 0x20));
|
||||
}
|
||||
|
||||
/* bits 6-7 are coin counters */
|
||||
|
||||
@ -69,9 +71,6 @@ void tigeroad_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprec
|
||||
UINT16 *source = &m_spriteram->buffer()[m_spriteram->bytes()/2] - 4;
|
||||
UINT16 *finish = m_spriteram->buffer();
|
||||
|
||||
// TODO: The Track Map should probably be drawn on top of the background tilemap...
|
||||
// Also convert the below into a for loop!
|
||||
|
||||
while (source >= finish)
|
||||
{
|
||||
int tile_number = source[0];
|
||||
@ -110,7 +109,7 @@ void tigeroad_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprec
|
||||
|
||||
TILE_GET_INFO_MEMBER(tigeroad_state::get_bg_tile_info)
|
||||
{
|
||||
UINT8 *tilerom = memregion("gfx4")->base();
|
||||
UINT8 *tilerom = memregion("bgmap")->base();
|
||||
|
||||
int data = tilerom[tile_index];
|
||||
int attr = tilerom[tile_index + 1];
|
||||
|
Loading…
Reference in New Issue
Block a user