summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/sandscrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/sandscrp.c')
-rw-r--r--src/mame/drivers/sandscrp.c122
1 files changed, 61 insertions, 61 deletions
diff --git a/src/mame/drivers/sandscrp.c b/src/mame/drivers/sandscrp.c
index 3cec39180c4..06587b462a0 100644
--- a/src/mame/drivers/sandscrp.c
+++ b/src/mame/drivers/sandscrp.c
@@ -184,7 +184,7 @@ void sandscrp_state::screen_eof_sandscrp(screen_device &screen, bool state)
READ16_MEMBER(sandscrp_state::sandscrp_irq_cause_r)
{
- return ( m_sprite_irq ? 0x08 : 0 ) |
+ return ( m_sprite_irq ? 0x08 : 0 ) |
( m_unknown_irq ? 0x10 : 0 ) |
( m_vblank_irq ? 0x20 : 0 ) ;
}
@@ -199,9 +199,9 @@ WRITE16_MEMBER(sandscrp_state::sandscrp_irq_cause_w)
// m_sprite_flipx = data & 1;
// m_sprite_flipy = data & 1;
- if (data & 0x08) m_sprite_irq = 0;
- if (data & 0x10) m_unknown_irq = 0;
- if (data & 0x20) m_vblank_irq = 0;
+ if (data & 0x08) m_sprite_irq = 0;
+ if (data & 0x10) m_unknown_irq = 0;
+ if (data & 0x20) m_vblank_irq = 0;
}
update_irq_state(machine());
@@ -226,7 +226,7 @@ WRITE16_MEMBER(sandscrp_state::sandscrp_coin_counter_w)
READ16_MEMBER(sandscrp_state::sandscrp_latchstatus_word_r)
{
- return (m_latch1_full ? 0x80 : 0) |
+ return (m_latch1_full ? 0x80 : 0) |
(m_latch2_full ? 0x40 : 0) ;
}
@@ -255,29 +255,29 @@ WRITE16_MEMBER(sandscrp_state::sandscrp_soundlatch_word_w)
m_latch1_full = 1;
soundlatch_byte_w(space, 0, data & 0xff);
machine().device("audiocpu")->execute().set_input_line(INPUT_LINE_NMI, PULSE_LINE);
- space.device().execute().spin_until_time(attotime::from_usec(100)); // Allow the other cpu to reply
+ space.device().execute().spin_until_time(attotime::from_usec(100)); // Allow the other cpu to reply
}
}
static ADDRESS_MAP_START( sandscrp, AS_PROGRAM, 16, sandscrp_state )
- AM_RANGE(0x000000, 0x07ffff) AM_ROM // ROM
- AM_RANGE(0x100000, 0x100001) AM_WRITE(sandscrp_irq_cause_w) // IRQ Ack
+ AM_RANGE(0x000000, 0x07ffff) AM_ROM // ROM
+ AM_RANGE(0x100000, 0x100001) AM_WRITE(sandscrp_irq_cause_w) // IRQ Ack
- AM_RANGE(0x700000, 0x70ffff) AM_RAM // RAM
+ AM_RANGE(0x700000, 0x70ffff) AM_RAM // RAM
AM_RANGE(0x200000, 0x20001f) AM_DEVREADWRITE("calc1_mcu", kaneko_hit_device, kaneko_hit_r,kaneko_hit_w)
AM_RANGE(0x300000, 0x30001f) AM_DEVREADWRITE("view2_0", kaneko_view2_tilemap_device, kaneko_tmap_regs_r, kaneko_tmap_regs_w)
AM_RANGE(0x400000, 0x403fff) AM_DEVREADWRITE("view2_0", kaneko_view2_tilemap_device, kaneko_tmap_vram_r, kaneko_tmap_vram_w )
AM_RANGE(0x500000, 0x501fff) AM_DEVREADWRITE_LEGACY("pandora", pandora_spriteram_LSB_r, pandora_spriteram_LSB_w ) // sprites
- AM_RANGE(0x600000, 0x600fff) AM_RAM_WRITE(paletteram_xGGGGGRRRRRBBBBB_word_w) AM_SHARE("paletteram") // Palette
- AM_RANGE(0xa00000, 0xa00001) AM_WRITE(sandscrp_coin_counter_w) // Coin Counters (Lockout unused)
+ AM_RANGE(0x600000, 0x600fff) AM_RAM_WRITE(paletteram_xGGGGGRRRRRBBBBB_word_w) AM_SHARE("paletteram") // Palette
+ AM_RANGE(0xa00000, 0xa00001) AM_WRITE(sandscrp_coin_counter_w) // Coin Counters (Lockout unused)
AM_RANGE(0xb00000, 0xb00001) AM_READ_PORT("P1")
AM_RANGE(0xb00002, 0xb00003) AM_READ_PORT("P2")
AM_RANGE(0xb00004, 0xb00005) AM_READ_PORT("SYSTEM")
AM_RANGE(0xb00006, 0xb00007) AM_READ_PORT("UNK")
- AM_RANGE(0xec0000, 0xec0001) AM_READ(watchdog_reset16_r) //
- AM_RANGE(0x800000, 0x800001) AM_READ(sandscrp_irq_cause_r) // IRQ Cause
- AM_RANGE(0xe00000, 0xe00001) AM_READWRITE(sandscrp_soundlatch_word_r, sandscrp_soundlatch_word_w) // From/To Sound CPU
- AM_RANGE(0xe40000, 0xe40001) AM_READWRITE(sandscrp_latchstatus_word_r, sandscrp_latchstatus_word_w) //
+ AM_RANGE(0xec0000, 0xec0001) AM_READ(watchdog_reset16_r) //
+ AM_RANGE(0x800000, 0x800001) AM_READ(sandscrp_irq_cause_r) // IRQ Cause
+ AM_RANGE(0xe00000, 0xe00001) AM_READWRITE(sandscrp_soundlatch_word_r, sandscrp_soundlatch_word_w) // From/To Sound CPU
+ AM_RANGE(0xe40000, 0xe40001) AM_READWRITE(sandscrp_latchstatus_word_r, sandscrp_latchstatus_word_w) //
ADDRESS_MAP_END
@@ -291,10 +291,10 @@ WRITE8_MEMBER(sandscrp_state::sandscrp_bankswitch_w)
UINT8 *RAM = memregion("maincpu")->base();
int bank = data & 0x07;
- if ( bank != data ) logerror("CPU #1 - PC %04X: Bank %02X\n",space.device().safe_pc(),data);
+ if ( bank != data ) logerror("CPU #1 - PC %04X: Bank %02X\n",space.device().safe_pc(),data);
- if (bank < 3) RAM = &RAM[0x4000 * bank];
- else RAM = &RAM[0x4000 * (bank-3) + 0x10000];
+ if (bank < 3) RAM = &RAM[0x4000 * bank];
+ else RAM = &RAM[0x4000 * (bank-3) + 0x10000];
membank("bank1")->set_base(RAM);
}
@@ -302,7 +302,7 @@ WRITE8_MEMBER(sandscrp_state::sandscrp_bankswitch_w)
READ8_MEMBER(sandscrp_state::sandscrp_latchstatus_r)
{
- return (m_latch2_full ? 0x80 : 0) | // swapped!?
+ return (m_latch2_full ? 0x80 : 0) | // swapped!?
(m_latch1_full ? 0x40 : 0) ;
}
@@ -321,19 +321,19 @@ WRITE8_MEMBER(sandscrp_state::sandscrp_soundlatch_w)
}
static ADDRESS_MAP_START( sandscrp_soundmem, AS_PROGRAM, 8, sandscrp_state )
- AM_RANGE(0x0000, 0x7fff) AM_ROM // ROM
- AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank1") // Banked ROM
- AM_RANGE(0xc000, 0xdfff) AM_RAM // RAM
+ AM_RANGE(0x0000, 0x7fff) AM_ROM // ROM
+ AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank1") // Banked ROM
+ AM_RANGE(0xc000, 0xdfff) AM_RAM // RAM
ADDRESS_MAP_END
static ADDRESS_MAP_START( sandscrp_soundport, AS_IO, 8, sandscrp_state )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x00) AM_WRITE(sandscrp_bankswitch_w) // ROM Bank
- AM_RANGE(0x02, 0x03) AM_DEVREADWRITE_LEGACY("ymsnd", ym2203_r, ym2203_w) // PORTA/B read
- AM_RANGE(0x04, 0x04) AM_DEVWRITE("oki", okim6295_device, write) // OKIM6295
- AM_RANGE(0x06, 0x06) AM_WRITE(sandscrp_soundlatch_w) //
- AM_RANGE(0x07, 0x07) AM_READ(sandscrp_soundlatch_r) //
- AM_RANGE(0x08, 0x08) AM_READ(sandscrp_latchstatus_r) //
+ AM_RANGE(0x00, 0x00) AM_WRITE(sandscrp_bankswitch_w) // ROM Bank
+ AM_RANGE(0x02, 0x03) AM_DEVREADWRITE_LEGACY("ymsnd", ym2203_r, ym2203_w) // PORTA/B read
+ AM_RANGE(0x04, 0x04) AM_DEVWRITE("oki", okim6295_device, write) // OKIM6295
+ AM_RANGE(0x06, 0x06) AM_WRITE(sandscrp_soundlatch_w) //
+ AM_RANGE(0x07, 0x07) AM_READ(sandscrp_soundlatch_r) //
+ AM_RANGE(0x08, 0x08) AM_READ(sandscrp_latchstatus_r) //
ADDRESS_MAP_END
@@ -342,9 +342,9 @@ ADDRESS_MAP_END
***************************************************************************/
static INPUT_PORTS_START( sandscrp )
- PORT_START("P1") /* $b00000.w */
+ PORT_START("P1") /* $b00000.w */
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1)
- PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
+ PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1)
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
@@ -353,9 +353,9 @@ static INPUT_PORTS_START( sandscrp )
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("P2") /* $b00002.w */
+ PORT_START("P2") /* $b00002.w */
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
- PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
+ PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
@@ -364,7 +364,7 @@ static INPUT_PORTS_START( sandscrp )
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("SYSTEM") /* $b00004.w */
+ PORT_START("SYSTEM") /* $b00004.w */
PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_START1 )
PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_START2 )
PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_COIN1 )
@@ -375,10 +375,10 @@ static INPUT_PORTS_START( sandscrp )
PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("UNK") /* $b00006.w */
+ PORT_START("UNK") /* $b00006.w */
PORT_BIT( 0xffff, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_START("DSW1") /* read by the Z80 through the sound chip */
+ PORT_START("DSW1") /* read by the Z80 through the sound chip */
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Lives ) )
PORT_DIPSETTING( 0x02, "1" )
PORT_DIPSETTING( 0x01, "2" )
@@ -400,7 +400,7 @@ static INPUT_PORTS_START( sandscrp )
PORT_DIPSETTING( 0x40, "500K, 1000K" )
PORT_DIPSETTING( 0x00, "1000K, 3000K" )
- PORT_START("DSW2") /* read by the Z80 through the sound chip */
+ PORT_START("DSW2") /* read by the Z80 through the sound chip */
PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( Coinage ) )
PORT_DIPSETTING( 0x0a, DEF_STR( 6C_1C ) )
PORT_DIPSETTING( 0x0b, DEF_STR( 5C_1C ) )
@@ -439,7 +439,7 @@ static const gfx_layout layout_16x16x4_2 =
4,
{ STEP4(0,1) },
{ STEP4(8*8*4*0 + 3*4, -4), STEP4(8*8*4*0 + 7*4, -4),
- STEP4(8*8*4*1 + 3*4, -4), STEP4(8*8*4*1 + 7*4, -4) },
+ STEP4(8*8*4*1 + 3*4, -4), STEP4(8*8*4*1 + 7*4, -4) },
{ STEP8(8*8*4*0, 8*4), STEP8(8*8*4*2, 8*4) },
16*16*4
};
@@ -481,32 +481,32 @@ static const ym2203_interface ym2203_intf_sandscrp =
AY8910_DEFAULT_LOADS,
DEVCB_INPUT_PORT("DSW1"), /* Port A Read */
DEVCB_INPUT_PORT("DSW2"), /* Port B Read */
- DEVCB_NULL, /* Port A Write */
- DEVCB_NULL, /* Port B Write */
+ DEVCB_NULL, /* Port A Write */
+ DEVCB_NULL, /* Port B Write */
},
- DEVCB_LINE(irq_handler) /* IRQ handler */
+ DEVCB_LINE(irq_handler) /* IRQ handler */
};
static const kaneko_pandora_interface sandscrp_pandora_config =
{
- "screen", /* screen tag */
- 0, /* gfx_region */
- 0, 0 /* x_offs, y_offs */
+ "screen", /* screen tag */
+ 0, /* gfx_region */
+ 0, 0 /* x_offs, y_offs */
};
static MACHINE_CONFIG_START( sandscrp, sandscrp_state )
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M68000,12000000) /* TMP68HC000N-12 */
+ MCFG_CPU_ADD("maincpu", M68000,12000000) /* TMP68HC000N-12 */
MCFG_CPU_PROGRAM_MAP(sandscrp)
MCFG_CPU_VBLANK_INT_DRIVER("screen", sandscrp_state, sandscrp_interrupt)
- MCFG_CPU_ADD("audiocpu", Z80,4000000) /* Z8400AB1, Reads the DSWs: it can't be disabled */
+ MCFG_CPU_ADD("audiocpu", Z80,4000000) /* Z8400AB1, Reads the DSWs: it can't be disabled */
MCFG_CPU_PROGRAM_MAP(sandscrp_soundmem)
MCFG_CPU_IO_MAP(sandscrp_soundport)
- MCFG_WATCHDOG_TIME_INIT(attotime::from_seconds(3)) /* a guess, and certainly wrong */
+ MCFG_WATCHDOG_TIME_INIT(attotime::from_seconds(3)) /* a guess, and certainly wrong */
/* video hardware */
@@ -552,65 +552,65 @@ MACHINE_CONFIG_END
***************************************************************************/
ROM_START( sandscrp ) /* Z03VA-003 PCB */
- ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */
+ ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */
ROM_LOAD16_BYTE( "11.bin", 0x000000, 0x040000, CRC(9b24ab40) SHA1(3187422dbe8b15d8053be4cb20e56d3e6afbd5f2) ) /* Location is IC4 */
ROM_LOAD16_BYTE( "12.bin", 0x000001, 0x040000, CRC(ad12caee) SHA1(83267445b89c3cf4dc317106aa68763d2f29eff7) ) /* Location is IC5 */
- ROM_REGION( 0x24000, "audiocpu", 0 ) /* Z80 Code */
+ ROM_REGION( 0x24000, "audiocpu", 0 ) /* Z80 Code */
ROM_LOAD( "8.ic51", 0x00000, 0x0c000, CRC(6f3e9db1) SHA1(06a04fa17f44319986913bff70433510c89e38f1) )
ROM_CONTINUE( 0x10000, 0x14000 )
- ROM_REGION( 0x100000, "gfx1", 0 ) /* Sprites */
+ ROM_REGION( 0x100000, "gfx1", 0 ) /* Sprites */
ROM_LOAD( "5.ic16", 0x000000, 0x080000, CRC(9bb675f6) SHA1(c3f6768cfd99a0e19ca2224fff9aa4e27ec0da24) )
ROM_LOAD( "6.ic17", 0x080000, 0x080000, CRC(7df2f219) SHA1(e2a59e201bfededa92d6c86f8dc1b212527ef66f) )
- ROM_REGION( 0x100000, "gfx2", 0 ) /* Layers */
+ ROM_REGION( 0x100000, "gfx2", 0 ) /* Layers */
ROM_LOAD16_BYTE( "4.ic32", 0x000000, 0x080000, CRC(b9222ff2) SHA1(a445da3f7f5dea5ff64bb0b048f624f947875a39) )
ROM_LOAD16_BYTE( "3.ic33", 0x000001, 0x080000, CRC(adf20fa0) SHA1(67a7a2be774c86916cbb97e4c9b16c2e48125780) )
- ROM_REGION( 0x040000, "oki", 0 ) /* Samples */
+ ROM_REGION( 0x040000, "oki", 0 ) /* Samples */
ROM_LOAD( "7.ic55", 0x000000, 0x040000, CRC(9870ab12) SHA1(5ea3412cbc57bfaa32a1e2552b2eb46f4ceb5fa8) )
ROM_END
ROM_START( sandscrpa ) /* Z03VA-003 PCB, earlier program version */
- ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */
+ ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */
ROM_LOAD16_BYTE( "1.ic4", 0x000000, 0x040000, CRC(c0943ae2) SHA1(04dac4e1f116cd96d6292daa61ef40efc7eba919) )
ROM_LOAD16_BYTE( "2.ic5", 0x000001, 0x040000, CRC(6a8e0012) SHA1(2350b11c9bd545c8ba4b3c25cd6547ba2ad474b5) )
- ROM_REGION( 0x24000, "audiocpu", 0 ) /* Z80 Code */
+ ROM_REGION( 0x24000, "audiocpu", 0 ) /* Z80 Code */
ROM_LOAD( "8.ic51", 0x00000, 0x0c000, CRC(6f3e9db1) SHA1(06a04fa17f44319986913bff70433510c89e38f1) )
ROM_CONTINUE( 0x10000, 0x14000 )
- ROM_REGION( 0x100000, "gfx1", 0 ) /* Sprites */
+ ROM_REGION( 0x100000, "gfx1", 0 ) /* Sprites */
ROM_LOAD( "5.ic16", 0x000000, 0x080000, CRC(9bb675f6) SHA1(c3f6768cfd99a0e19ca2224fff9aa4e27ec0da24) )
ROM_LOAD( "6.ic17", 0x080000, 0x080000, CRC(7df2f219) SHA1(e2a59e201bfededa92d6c86f8dc1b212527ef66f) )
- ROM_REGION( 0x100000, "gfx2", 0 ) /* Layers */
+ ROM_REGION( 0x100000, "gfx2", 0 ) /* Layers */
ROM_LOAD16_BYTE( "4.ic32", 0x000000, 0x080000, CRC(b9222ff2) SHA1(a445da3f7f5dea5ff64bb0b048f624f947875a39) )
ROM_LOAD16_BYTE( "3.ic33", 0x000001, 0x080000, CRC(adf20fa0) SHA1(67a7a2be774c86916cbb97e4c9b16c2e48125780) )
- ROM_REGION( 0x040000, "oki", 0 ) /* Samples */
+ ROM_REGION( 0x040000, "oki", 0 ) /* Samples */
ROM_LOAD( "7.ic55", 0x000000, 0x040000, CRC(9870ab12) SHA1(5ea3412cbc57bfaa32a1e2552b2eb46f4ceb5fa8) )
ROM_END
ROM_START( sandscrpb ) /* Different rev PCB */
- ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */
+ ROM_REGION( 0x080000, "maincpu", 0 ) /* 68000 Code */
ROM_LOAD16_BYTE( "11.ic4", 0x000000, 0x040000, CRC(80020cab) SHA1(4f1f4d8ea07ad745f2d6d3f800686f07fe4bf20f) ) /* Chinese title screen */
ROM_LOAD16_BYTE( "12.ic5", 0x000001, 0x040000, CRC(8df1d42f) SHA1(2a9db5c4b99a8a3f62bffa9ddd96a95e2042602b) ) /* Game & test menu in English */
/* internet translators come up with "fighter lion king" and / or "Hits lion Emperor Quickly" */
- ROM_REGION( 0x24000, "audiocpu", 0 ) /* Z80 Code */
+ ROM_REGION( 0x24000, "audiocpu", 0 ) /* Z80 Code */
ROM_LOAD( "8.ic51", 0x00000, 0x0c000, CRC(6f3e9db1) SHA1(06a04fa17f44319986913bff70433510c89e38f1) )
ROM_CONTINUE( 0x10000, 0x14000 )
- ROM_REGION( 0x100000, "gfx1", 0 ) /* Sprites */
+ ROM_REGION( 0x100000, "gfx1", 0 ) /* Sprites */
ROM_LOAD( "ss502.ic16", 0x000000, 0x100000, CRC(d8012ebb) SHA1(975bbb3b57a09e41d2257d4fa3a64097144de554) )
- ROM_REGION( 0x100000, "gfx2", 0 ) /* Layers */
+ ROM_REGION( 0x100000, "gfx2", 0 ) /* Layers */
ROM_LOAD16_WORD_SWAP( "ss501.ic30", 0x000000, 0x100000, CRC(0cf9f99d) SHA1(47f7f120d2bc075bedaff0a44306a8f46a1d848c) )
- ROM_REGION( 0x040000, "oki", 0 ) /* Samples */
+ ROM_REGION( 0x040000, "oki", 0 ) /* Samples */
ROM_LOAD( "7.ic55", 0x000000, 0x040000, CRC(9870ab12) SHA1(5ea3412cbc57bfaa32a1e2552b2eb46f4ceb5fa8) )
ROM_END