summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/s8.c
diff options
context:
space:
mode:
author Robbbert <robbbert@users.noreply.github.com>2014-10-02 06:33:08 +0000
committer Robbbert <robbbert@users.noreply.github.com>2014-10-02 06:33:08 +0000
commit2aab56de6b2c6e0e234f6fecf13bc762e00b42b3 (patch)
treecbce9923818162e75f35337e5c2f8dd50de3ca44 /src/mame/drivers/s8.c
parentb6e2522b2176e3c9cd900bc7339ea7433cafd28d (diff)
Still Crazy: fixed layout and coins, marked as working.
Diffstat (limited to 'src/mame/drivers/s8.c')
-rw-r--r--src/mame/drivers/s8.c201
1 files changed, 77 insertions, 124 deletions
diff --git a/src/mame/drivers/s8.c b/src/mame/drivers/s8.c
index c784b335aea..8f45756842b 100644
--- a/src/mame/drivers/s8.c
+++ b/src/mame/drivers/s8.c
@@ -2,43 +2,46 @@
// copyright-holders:Robbbert
/***********************************************************************************
- PINBALL
- Williams System 8
-
- Only 2 games used this system.
- The very first time run, the display will show the model number (526 or 543).
- Press F3 to clear this, then follow instructions below.
-
- - Pennant Fever, which isn't a true pinball, it is a baseball game where you aim
- for targets at the top of the playfield, and the players advance towards a
- home run. There are no bumpers or other 'usual' pinball items. 1 or 2 players.
- How to play:
- - Insert coin (credits shows in innings)
- - Start game
- - Player 1 is 'Visitors'; optional Player 2 is 'Home'
- - Press one of L,B,C,V to hit the ball; or comma,period,slash for a home run;
- or (F then A) for a Strike; or N,Z for Out.
- - Wait for score to start flashing
- - Press another key, etc
- - When you have 3 strikes, you are Out
- - When you have 3 Outs, your Innings ends (other player gets a turn)
- - After 3 Innings, it's game over.
- - Match digit appears in Outs digit.
-
- - Still Crazy, a novelty game where the playfield is completely vertical. It has
- 4 flippers and the idea is to get the ball up to the alcohol 'still' before
- the 'revenuers' do. The idea didn't catch on, and the game was not officially
- released. 1 player. The display shows Score and Batch. There is no credit
- display.
+ PINBALL
+ Williams System 8
+ These are not true pinballs in the normal sense, but are unusual novelty
+ machines. Unfortunately they were mostly cancelled before production could
+ begin.
+
+ Games:
+ - Pennant Fever (#526)
+ - Gridiron (#538)
+ - Still Crazy (#543)
+ - Break Street
+
+The first time run, the display will show the model number. Press F3 to clear this.
+
+Pennant Fever is a baseball game where you aim for targets at the top of the
+ playfield, and the players advance towards a home run. There are no bumpers
+ or other 'usual' pinball items. 1 or 2 players.
+ How to play:
+ - Insert coin (credits shows in innings)
+ - Start game
+ - Player 1 is 'Visitors'; optional Player 2 is 'Home'
+ - Press one of L,B,C,V to hit the ball; or comma,period,slash for a home run;
+ or (F then A) for a Strike; or N,Z for Out.
+ - Wait for score to start flashing
+ - Press another key, etc
+ - When you have 3 strikes, you are Out
+ - When you have 3 Outs, your Innings ends (other player gets a turn)
+ - After 3 Innings, it's game over.
+ - Match digit appears in Outs digit.
+
+Gridiron, a conversion kit for Pennant Fever. Didn't get past the prototype stage.
+
+Still Crazy, also only a prototype. See s8a.c for more.
+
+Break Street, another failed novelty, not much is known about it. Seems it
+ features a break-dancing toy and a spinning disk.
ToDo:
-- Make Still Crazy layout.
-- Get Still Crazy coin-in to register.
- Workaround:
- - Start in debug mode, g to run the game, go to memory view and enter credits
- into location 0x738. (example: 90 gives 90 credits). Quit.
- - Start in non-debug mode. Press 1 to start, it works fine, apart from the
- knocker making a lot of noise. Keys to use: A then any key on that row.
+- Diagnostic buttons not working
+
************************************************************************************/
@@ -54,19 +57,18 @@ class s8_state : public genpin_class
{
public:
s8_state(const machine_config &mconfig, device_type type, const char *tag)
- : genpin_class(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_audiocpu(*this, "audiocpu"),
- m_dac(*this, "dac"),
- m_pias(*this, "pias"),
- m_pia21(*this, "pia21"),
- m_pia24(*this, "pia24"),
- m_pia28(*this, "pia28"),
- m_pia30(*this, "pia30")
+ : genpin_class(mconfig, type, tag)
+ , m_maincpu(*this, "maincpu")
+ , m_audiocpu(*this, "audiocpu")
+ , m_dac(*this, "dac")
+ , m_pias(*this, "pias")
+ , m_pia21(*this, "pia21")
+ , m_pia24(*this, "pia24")
+ , m_pia28(*this, "pia28")
+ , m_pia30(*this, "pia30")
{ }
DECLARE_READ8_MEMBER(dac_r);
- DECLARE_WRITE8_MEMBER(dac_w);
DECLARE_WRITE8_MEMBER(dig0_w);
DECLARE_WRITE8_MEMBER(dig1_w);
DECLARE_WRITE8_MEMBER(lamp0_w);
@@ -80,8 +82,6 @@ public:
DECLARE_READ_LINE_MEMBER(pia21_ca1_r);
DECLARE_READ_LINE_MEMBER(pia28_ca1_r);
DECLARE_READ_LINE_MEMBER(pia28_cb1_r);
- DECLARE_WRITE_LINE_MEMBER(pias_ca2_w);
- DECLARE_WRITE_LINE_MEMBER(pias_cb2_w);
DECLARE_WRITE_LINE_MEMBER(pia21_ca2_w);
DECLARE_WRITE_LINE_MEMBER(pia21_cb2_w) { }; // enable solenoids
DECLARE_WRITE_LINE_MEMBER(pia24_cb2_w) { }; // dummy to stop error log filling up
@@ -91,9 +91,12 @@ public:
DECLARE_INPUT_CHANGED_MEMBER(main_nmi);
DECLARE_INPUT_CHANGED_MEMBER(audio_nmi);
DECLARE_MACHINE_RESET(s8);
-protected:
-
- // devices
+private:
+ UINT8 m_t_c;
+ UINT8 m_sound_data;
+ UINT8 m_strobe;
+ UINT8 m_kbdrow;
+ bool m_data_ok;
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_audiocpu;
required_device<dac_device> m_dac;
@@ -102,12 +105,6 @@ protected:
required_device<pia6821_device> m_pia24;
required_device<pia6821_device> m_pia28;
required_device<pia6821_device> m_pia30;
-private:
- UINT8 m_t_c;
- UINT8 m_sound_data;
- UINT8 m_strobe;
- UINT8 m_kbdrow;
- bool m_data_ok;
};
static ADDRESS_MAP_START( s8_main_map, AS_PROGRAM, 8, s8_state )
@@ -118,14 +115,13 @@ static ADDRESS_MAP_START( s8_main_map, AS_PROGRAM, 8, s8_state )
AM_RANGE(0x2400, 0x2403) AM_DEVREADWRITE("pia24", pia6821_device, read, write) // lamps
AM_RANGE(0x2800, 0x2803) AM_DEVREADWRITE("pia28", pia6821_device, read, write) // display
AM_RANGE(0x3000, 0x3003) AM_DEVREADWRITE("pia30", pia6821_device, read, write) // inputs
- AM_RANGE(0x5000, 0x7fff) AM_ROM
+ AM_RANGE(0x5000, 0x7fff) AM_ROM AM_REGION("roms", 0)
ADDRESS_MAP_END
static ADDRESS_MAP_START( s8_audio_map, AS_PROGRAM, 8, s8_state )
AM_RANGE(0x0000, 0x00ff) AM_RAM
- AM_RANGE(0x2000, 0x2003) AM_DEVREADWRITE("pias", pia6821_device, read, write) // scrzy_l1 sounds
- AM_RANGE(0x4000, 0x4003) AM_DEVREADWRITE("pias", pia6821_device, read, write) // pfevr sounds
- AM_RANGE(0x8000, 0xffff) AM_ROM
+ AM_RANGE(0x4000, 0x4003) AM_DEVREADWRITE("pias", pia6821_device, read, write)
+ AM_RANGE(0xc000, 0xffff) AM_ROM AM_REGION("audioroms", 0)
ADDRESS_MAP_END
static INPUT_PORTS_START( s8 )
@@ -144,13 +140,7 @@ static INPUT_PORTS_START( s8 )
PORT_START("X2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_A)
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_S)
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_D)
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_F)
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_G)
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_H)
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_J)
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_K)
+ PORT_BIT( 0xfe, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("X4")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_L)
@@ -165,32 +155,13 @@ static INPUT_PORTS_START( s8 )
PORT_START("X8")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_STOP)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_SLASH)
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_COLON)
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_QUOTE)
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_X)
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_MINUS)
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_EQUALS)
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_BACKSPACE)
+ PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("X10")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_OPENBRACE)
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_CLOSEBRACE)
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_BACKSLASH)
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_ENTER)
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_LEFT)
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_RIGHT)
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_UP)
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_DOWN)
+ PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("X20")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_Q)
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_W)
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_E)
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_R)
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_Y)
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_U)
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_I)
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OTHER ) PORT_CODE(KEYCODE_O)
+ PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("X40")
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )
@@ -273,7 +244,7 @@ WRITE8_MEMBER( s8_state::dig0_w )
WRITE8_MEMBER( s8_state::dig1_w )
{
- static const UINT8 patterns[16] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7c, 0x07, 0x7f, 0x67, 0, 0, 0, 0, 0, 0 }; // MC14558
+ static const UINT8 patterns[16] = { 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0,0,0,0,0,0 }; // MC14543
if (m_data_ok)
{
output_set_digit_value(m_strobe+16, patterns[data&15]);
@@ -286,7 +257,7 @@ READ8_MEMBER( s8_state::switch_r )
{
char kbdrow[8];
sprintf(kbdrow,"X%X",m_kbdrow);
- return ~ioport(kbdrow)->read();
+ return ioport(kbdrow)->read() ^ 0xff;
}
WRITE8_MEMBER( s8_state::switch_w )
@@ -294,27 +265,12 @@ WRITE8_MEMBER( s8_state::switch_w )
m_kbdrow = data;
}
-WRITE_LINE_MEMBER( s8_state::pias_ca2_w )
-{
-// speech clock
-}
-
-WRITE_LINE_MEMBER( s8_state::pias_cb2_w )
-{
-// speech data
-}
-
READ8_MEMBER( s8_state::dac_r )
{
return m_sound_data;
}
-WRITE8_MEMBER( s8_state::dac_w )
-{
- m_dac->write_unsigned8(data);
-}
-
-TIMER_DEVICE_CALLBACK_MEMBER( s8_state::irq)
+TIMER_DEVICE_CALLBACK_MEMBER( s8_state::irq )
{
if (m_t_c > 0x70)
m_maincpu->set_input_line(M6800_IRQ_LINE, ASSERT_LINE);
@@ -324,7 +280,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( s8_state::irq)
static MACHINE_CONFIG_START( s8, s8_state )
/* basic machine hardware */
- MCFG_CPU_ADD("maincpu", M6802, 4000000)
+ MCFG_CPU_ADD("maincpu", M6802, XTAL_4MHz)
MCFG_CPU_PROGRAM_MAP(s8_main_map)
MCFG_TIMER_DRIVER_ADD_PERIODIC("irq", s8_state, irq, attotime::from_hz(250))
MCFG_MACHINE_RESET_OVERRIDE(s8_state, s8)
@@ -372,18 +328,15 @@ static MACHINE_CONFIG_START( s8, s8_state )
MCFG_NVRAM_ADD_1FILL("nvram")
/* Add the soundcard */
- MCFG_CPU_ADD("audiocpu", M6808, 4000000)
+ MCFG_CPU_ADD("audiocpu", M6808, XTAL_4MHz)
MCFG_CPU_PROGRAM_MAP(s8_audio_map)
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("dac", DAC, 0)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
MCFG_DEVICE_ADD("pias", PIA6821, 0)
MCFG_PIA_READPA_HANDLER(READ8(s8_state, dac_r))
- MCFG_PIA_WRITEPA_HANDLER(WRITE8(s8_state, sound_w))
- MCFG_PIA_WRITEPB_HANDLER(WRITE8(s8_state, dac_w))
- MCFG_PIA_CA2_HANDLER(WRITELINE(s8_state, pias_ca2_w))
- MCFG_PIA_CB2_HANDLER(WRITELINE(s8_state, pias_cb2_w))
+ MCFG_PIA_WRITEPB_HANDLER(DEVWRITE8("dac", dac_device, write_unsigned8))
MCFG_PIA_IRQA_HANDLER(DEVWRITELINE("audiocpu", m6808_cpu_device, irq_line))
MCFG_PIA_IRQB_HANDLER(DEVWRITELINE("audiocpu", m6808_cpu_device, irq_line))
MACHINE_CONFIG_END
@@ -392,21 +345,21 @@ MACHINE_CONFIG_END
/ Pennant Fever (#526) 05/1984
/-------------------------------*/
ROM_START(pfevr_l2)
- ROM_REGION(0x10000, "maincpu", 0)
- ROM_LOAD("pf-rom1.u19", 0x5000, 0x1000, CRC(00be42bd) SHA1(72ca21c96e3ffa3c43499165f3339b669c8e94a5))
- ROM_LOAD("pf-rom2.u20", 0x6000, 0x2000, CRC(7b101534) SHA1(21e886d5872104d71bb528b9affb12230268597a))
+ ROM_REGION(0x3000, "roms", 0)
+ ROM_LOAD("pf-rom1.u19", 0x0000, 0x1000, CRC(00be42bd) SHA1(72ca21c96e3ffa3c43499165f3339b669c8e94a5))
+ ROM_LOAD("pf-rom2.u20", 0x1000, 0x2000, CRC(7b101534) SHA1(21e886d5872104d71bb528b9affb12230268597a))
- ROM_REGION(0x10000, "audiocpu", 0)
- ROM_LOAD("cpu_u49.128", 0xc000, 0x4000, CRC(b0161712) SHA1(5850f1f1f11e3ac9b9629cff2b26c4ad32436b55))
+ ROM_REGION(0x4000, "audioroms", 0)
+ ROM_LOAD("cpu_u49.128", 0x0000, 0x4000, CRC(b0161712) SHA1(5850f1f1f11e3ac9b9629cff2b26c4ad32436b55))
ROM_END
ROM_START(pfevr_p3)
- ROM_REGION(0x10000, "maincpu", 0)
- ROM_LOAD("cpu_u19.732", 0x5000, 0x1000, CRC(03796c6d) SHA1(38c95fcce9d0f357a74f041f0df006b9c6f6efc7))
- ROM_LOAD("cpu_u20.764", 0x6000, 0x2000, CRC(3a3acb39) SHA1(7844cc30a9486f718a556850fc9cef3be82f26b7))
+ ROM_REGION(0x3000, "roms", 0)
+ ROM_LOAD("cpu_u19.732", 0x0000, 0x1000, CRC(03796c6d) SHA1(38c95fcce9d0f357a74f041f0df006b9c6f6efc7))
+ ROM_LOAD("cpu_u20.764", 0x1000, 0x2000, CRC(3a3acb39) SHA1(7844cc30a9486f718a556850fc9cef3be82f26b7))
- ROM_REGION(0x10000, "audiocpu", 0)
- ROM_LOAD("cpu_u49.128", 0xc000, 0x4000, CRC(b0161712) SHA1(5850f1f1f11e3ac9b9629cff2b26c4ad32436b55))
+ ROM_REGION(0x4000, "audioroms", 0)
+ ROM_LOAD("cpu_u49.128", 0x0000, 0x4000, CRC(b0161712) SHA1(5850f1f1f11e3ac9b9629cff2b26c4ad32436b55))
ROM_END