Previous 199869 Revisions Next

r34944 Monday 9th February, 2015 at 19:53:04 UTC by Fabio Priuli
hornet.c: made the eeprom optional since it seems to be only on the LAN
board. This is a better fix for the nbapbp issue. nw.
[src/mame/drivers]hornet.c

trunk/src/mame/drivers/hornet.c
r243455r243456
338338      m_gn680(*this, "gn680"),
339339      m_dsp(*this, "dsp"),
340340      m_dsp2(*this, "dsp2"),
341      m_eeprom(*this, "eeprom"),
342341      m_k037122_1(*this, "k037122_1"),
343342      m_k037122_2(*this, "k037122_2" ),
344343      m_adc12138(*this, "adc12138"),
344      m_konppc(*this, "konppc"),
345      m_lan_eeprom(*this, "lan_eeprom"),
345346      m_in0(*this, "IN0"),
346347      m_in1(*this, "IN1"),
347348      m_in2(*this, "IN2"),
348349      m_dsw(*this, "DSW"),
349350      m_eepromout(*this, "EEPROMOUT"),
350351      m_analog1(*this, "ANALOG1"),
351      m_analog2(*this, "ANALOG2"),
352      m_konppc(*this, "konppc"){ }
352      m_analog2(*this, "ANALOG2")
353   { }
353354
354355   // TODO: Needs verification on real hardware
355356   static const int m_sound_timer_usec = 2800;
r243455r243456
363364   optional_device<cpu_device> m_gn680;
364365   required_device<cpu_device> m_dsp;
365366   optional_device<cpu_device> m_dsp2;
366   required_device<eeprom_serial_93cxx_device> m_eeprom;
367367   optional_device<k037122_device> m_k037122_1;
368368   optional_device<k037122_device> m_k037122_2;
369369   required_device<adc12138_device> m_adc12138;
370   required_ioport m_in0, m_in1, m_in2, m_dsw, m_eepromout;
371   optional_ioport m_analog1, m_analog2;
372370   required_device<konppc_device> m_konppc;
371   optional_device<eeprom_serial_93cxx_device> m_lan_eeprom;
372   required_ioport m_in0, m_in1, m_in2, m_dsw;
373   optional_ioport m_eepromout, m_analog1, m_analog2;
373374
374375   emu_timer *m_sound_irq_timer;
375376   UINT8 m_led_reg0;
r243455r243456
534535             0x02 = ADDOR (ADC DOR)
535536             0x01 = ADDO (ADC DO)
536537         */
537         r = 0xf0; m_eeprom->do_read();
538         r = 0xf0;
539         if (m_lan_eeprom)
540            r |= m_lan_eeprom->do_read() << 3;
538541         r |= m_adc12138->do_r(space, 0) | (m_adc12138->eoc_r(space, 0) << 2);
539542         break;
540543
r243455r243456
572575             0x02 = LAMP1
573576             0x01 = LAMP0
574577         */
575         m_eepromout->write(data, 0xff);
578         if (m_eepromout)
579            m_eepromout->write(data, 0xff);
576580         osd_printf_debug("System register 0 = %02X\n", data);
577581         break;
578582
r243455r243456
877881   PORT_DIPNAME( 0x01, 0x01, "Monitor Type" ) PORT_DIPLOCATION("SW:8")
878882   PORT_DIPSETTING( 0x01, "24KHz" )
879883   PORT_DIPSETTING( 0x00, "15KHz" )
880
881   PORT_START( "EEPROMOUT" )
882   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, di_write)
883   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, clk_write)
884   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, cs_write)
885884INPUT_PORTS_END
886885
887886static INPUT_PORTS_START( sscope )
r243455r243456
902901   PORT_BIT( 0x7ff, 0x3ff, IPT_AD_STICK_Y ) PORT_MINMAX(0x000, 0x7ff) PORT_SENSITIVITY(35) PORT_KEYDELTA(5) PORT_INVERT
903902INPUT_PORTS_END
904903
904static INPUT_PORTS_START( sscope2 )
905   PORT_INCLUDE( sscope )
905906
907   // LAN board EEPROM
908   PORT_START( "EEPROMOUT" )
909   PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("lan_eeprom", eeprom_serial_93cxx_device, di_write)
910   PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("lan_eeprom", eeprom_serial_93cxx_device, clk_write)
911   PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("lan_eeprom", eeprom_serial_93cxx_device, cs_write)
912INPUT_PORTS_END
913
914
906915/* PowerPC interrupts
907916
908917    IRQ0:   Vblank CG Board 0
r243455r243456
977986
978987   MCFG_QUANTUM_TIME(attotime::from_hz(6000))
979988
989//  PCB description at top doesn't mention any EEPROM on the base board...
990//   MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
980991
981   MCFG_EEPROM_SERIAL_93C46_ADD("eeprom")
982
983992   MCFG_DEVICE_ADD("voodoo0", VOODOO_1, STD_VOODOO_1_CLOCK)
984993   MCFG_VOODOO_FBMEM(2)
985994   MCFG_VOODOO_TMUMEM(4,0)
r243455r243456
15281537
15291538/*************************************************************************/
15301539
1531GAME(  1998, gradius4,  0,        hornet,           hornet, hornet_state, hornet,        ROT0, "Konami", "Gradius 4: Fukkatsu", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
1532GAME(  1998, nbapbp,    0,        hornet,           hornet, hornet_state, hornet,        ROT0, "Konami", "NBA Play By Play", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
1533GAMEL( 1998, terabrst,  0,        terabrst,         hornet, hornet_state, hornet_2board, ROT0, "Konami", "Teraburst (1998/07/17 ver UEL)", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1534GAMEL( 1998, terabrsta, terabrst, terabrst,         hornet, hornet_state, hornet_2board, ROT0, "Konami", "Teraburst (1998/02/25 ver AAA)", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1540GAME(  1998, gradius4,  0,        hornet,           hornet,  hornet_state, hornet,        ROT0, "Konami", "Gradius 4: Fukkatsu", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
1541GAME(  1998, nbapbp,    0,        hornet,           hornet,  hornet_state, hornet,        ROT0, "Konami", "NBA Play By Play", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )
1542GAMEL( 1998, terabrst,  0,        terabrst,         hornet,  hornet_state, hornet_2board, ROT0, "Konami", "Teraburst (1998/07/17 ver UEL)", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1543GAMEL( 1998, terabrsta, terabrst, terabrst,         hornet,  hornet_state, hornet_2board, ROT0, "Konami", "Teraburst (1998/02/25 ver AAA)", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_dualhsxs )
15351544
15361545// The region comes from the Timekeeper NVRAM, without a valid default all sets except 'xxD, Ver 1.33' will init their NVRAM to UAx versions, the xxD set seems to incorrectly init it to JXD, which isn't a valid
15371546// version, and thus can't be booted.  If you copy the NVRAM from another already initialized set, it will boot as UAD.
15381547// to get the actual game to boot you must calibrate the guns etc.
1539GAMEL( 2000, sscope,    0,        hornet_2board,    sscope, hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope (ver xxD, Ver 1.33)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1540GAMEL( 2000, sscopec,   sscope,   hornet_2board,    sscope, hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope (ver xxC, Ver 1.30)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1541GAMEL( 2000, sscopeb,   sscope,   hornet_2board,    sscope, hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope (ver xxB, Ver 1.20)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1542GAMEL( 2000, sscopea,   sscope,   hornet_2board,    sscope, hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope (ver xxA, Ver 1.00)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1548GAMEL( 2000, sscope,    0,        hornet_2board,    sscope,  hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope (ver xxD, Ver 1.33)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1549GAMEL( 2000, sscopec,   sscope,   hornet_2board,    sscope,  hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope (ver xxC, Ver 1.30)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1550GAMEL( 2000, sscopeb,   sscope,   hornet_2board,    sscope,  hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope (ver xxB, Ver 1.20)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1551GAMEL( 2000, sscopea,   sscope,   hornet_2board,    sscope,  hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope (ver xxA, Ver 1.00)", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )
15431552
1544GAMEL( 2000, sscope2,   0,        sscope2,          sscope, hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope 2", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )
1553GAMEL( 2000, sscope2,   0,        sscope2,          sscope2, hornet_state, hornet_2board, ROT0, "Konami", "Silent Scope 2", GAME_IMPERFECT_SOUND | GAME_NOT_WORKING | GAME_SUPPORTS_SAVE, layout_dualhsxs )


Previous 199869 Revisions Next


© 1997-2024 The MAME Team