diff --git a/src/mame/audio/8080bw.c b/src/mame/audio/8080bw.c index 33c11172ceb..196c4cb3b21 100644 --- a/src/mame/audio/8080bw.c +++ b/src/mame/audio/8080bw.c @@ -1314,82 +1314,3 @@ WRITE8_MEMBER( _8080bw_state::darthvdr_08_w ) m_port_1_last_extra = data; } - - -/*******************************************************/ -/* */ -/* "Galactic" and "Space Missile" */ -/* Due to no schematics, these sounds are nothing */ -/* more than speculation. */ -/*******************************************************/ - -/************************************* - * - * Discrete Sound - * (copied from indianbt) - * - *************************************/ - -static const discrete_dac_r1_ladder galactic_music_dac = - {3, {0, RES_K(47), RES_K(12)}, 0, 0, 0, CAP_U(0.1)}; - -#define GALACTIC_MUSIC_CLK (150000) - -/* Nodes - Inputs */ -#define GALACTIC_MUSIC_DATA NODE_01 -/* Nodes - Sounds */ -#define GALACTIC_MUSIC NODE_11 - -DISCRETE_SOUND_START(galactic) - - DISCRETE_INPUT_DATA (GALACTIC_MUSIC_DATA) - -/****************************************************************************** - * - * Music Generator - * - ******************************************************************************/ - DISCRETE_NOTE(NODE_20, 1, GALACTIC_MUSIC_CLK, GALACTIC_MUSIC_DATA, 255, 5, DISC_CLK_IS_FREQ) - - // Convert count to 7492 output - DISCRETE_TRANSFORM2(NODE_21, NODE_20, 2, "01>0+") - - DISCRETE_DAC_R1(NODE_22, NODE_21, DEFAULT_TTL_V_LOGIC_1, &galactic_music_dac) - -/****************************************************************************** - * - * Final Mixing and Output - * - ******************************************************************************/ - DISCRETE_CRFILTER(NODE_90, NODE_22, RES_K(10), CAP_U(0.1)) - - DISCRETE_OUTPUT(NODE_90, 21000) - -DISCRETE_SOUND_END - -WRITE8_MEMBER( _8080bw_state::galactic_07_w ) -{ - discrete_sound_w(m_discrete, space, GALACTIC_MUSIC_DATA, data | 0xc0); -} - -WRITE8_MEMBER(_8080bw_state::galactic_sh_port_1_w) -{ - UINT8 rising_bits = data & ~m_port_1_last_extra; - - if (rising_bits & 0x02) m_samples->start(2, 2); /* Killed an enemy */ - if (rising_bits & 0x04) m_samples->start(1, 1); /* Lost a life */ - - m_port_1_last_extra = data; -} - -// bits 0-3 could make a variable background tone -WRITE8_MEMBER(_8080bw_state::galactic_sh_port_2_w) -{ - UINT8 rising_bits = data & ~m_port_2_last_extra; - - if (rising_bits & 0x10) m_samples->start(0, 0); /* Shoot */ - - m_flip_screen = BIT(data, 5) & ioport(CABINET_PORT_TAG)->read(); - - m_port_2_last_extra = data; -} diff --git a/src/mame/drivers/8080bw.c b/src/mame/drivers/8080bw.c index 4259171278a..c17745097da 100644 --- a/src/mame/drivers/8080bw.c +++ b/src/mame/drivers/8080bw.c @@ -2942,43 +2942,14 @@ Regarding release data, not much information is available online. ROM dump came from a collection of old 5 1/4 disks (Apple II) that used to be in the possession of an arcade operator in the early 80s. -TODO sound to be verified. +TODO: +- correct sound (currently same as invaders) + * sound mutes when a few aliens are left? + * port 7 write is used too, looks like it's for music similar to indianbt + Note that bass background hum and sound effects are already basically correct. ***************************************************************************************/ -static ADDRESS_MAP_START( galactic_io_map, AS_IO, 8, _8080bw_state ) - AM_RANGE(0x00, 0x00) AM_READ_PORT("IN0") - AM_RANGE(0x01, 0x01) AM_READ_PORT("IN1") - AM_RANGE(0x02, 0x02) AM_READ_PORT("IN2") AM_DEVWRITE("mb14241", mb14241_device, shift_count_w) - AM_RANGE(0x03, 0x03) AM_DEVREAD("mb14241", mb14241_device, shift_result_r) AM_WRITE(galactic_sh_port_1_w) - AM_RANGE(0x04, 0x04) AM_DEVWRITE("mb14241", mb14241_device, shift_data_w) - AM_RANGE(0x05, 0x05) AM_WRITE(galactic_sh_port_2_w) - AM_RANGE(0x06, 0x06) AM_WRITE(watchdog_reset_w) - AM_RANGE(0x07, 0x07) AM_WRITE(galactic_07_w) -ADDRESS_MAP_END - - -static MACHINE_CONFIG_DERIVED_CLASS( galactic, mw8080bw_root, _8080bw_state ) - - /* basic machine hardware */ - MCFG_CPU_MODIFY("maincpu") - MCFG_CPU_IO_MAP(galactic_io_map) - MCFG_MACHINE_START_OVERRIDE(_8080bw_state,extra_8080bw) - - /* add shifter */ - MCFG_MB14241_ADD("mb14241") - - /* sound hardware */ - MCFG_FRAGMENT_ADD(invaders_samples_audio) - MCFG_DISCRETE_ADD("discrete", 0, galactic) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) - - /* video hardware */ - MCFG_SCREEN_MODIFY("screen") - MCFG_SCREEN_UPDATE_DRIVER(_8080bw_state, screen_update_invaders) -MACHINE_CONFIG_END - - static INPUT_PORTS_START( galactic ) PORT_START("IN0") PORT_BIT( 0xff, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // gets read into memory (0x2012) then never used @@ -4639,8 +4610,8 @@ GAME( 1980, ballbomb, 0, ballbomb, ballbomb, driver_device, 0, ROT270 GAME( 1980, indianbt, 0, indianbt, indianbt, driver_device, 0, ROT270, "Taito", "Indian Battle", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_SOUND ) GAME( 1983, indianbtbr, indianbt, indianbtbr,indianbtbr,driver_device, 0, ROT270, "Taito do Brasil", "Indian Battle (Brazil)", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_SOUND ) GAME( 1980, steelwkr, 0, steelwkr, steelwkr, driver_device, 0, ROT0 , "Taito", "Steel Worker", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_SOUND ) -GAMEL(1980?,galactic, 0, galactic, galactic, driver_device, 0, ROT270, "Taito do Brasil", "Galactica - Batalha Espacial", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_SOUND, layout_galactic ) -GAMEL(1980?,spacmiss, galactic, galactic, galactic, driver_device, 0, ROT270, "bootleg?", "Space Missile - Space Fighting Game", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_SOUND, layout_galactic ) +GAMEL(1980?,galactic, 0, invaders, galactic, driver_device, 0, ROT270, "Taito do Brasil", "Galactica - Batalha Espacial", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_SOUND, layout_galactic ) +GAMEL(1980?,spacmiss, galactic, invaders, galactic, driver_device, 0, ROT270, "bootleg?", "Space Missile - Space Fighting Game", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_SOUND, layout_galactic ) // Misc. manufacturers GAME( 1979, galxwars, 0, invadpt2, galxwars, driver_device, 0, ROT270, "Universal", "Galaxy Wars (Universal set 1)", GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) diff --git a/src/mame/includes/8080bw.h b/src/mame/includes/8080bw.h index 56cda312e96..cc4c5b22dee 100644 --- a/src/mame/includes/8080bw.h +++ b/src/mame/includes/8080bw.h @@ -92,9 +92,6 @@ public: DECLARE_WRITE8_MEMBER(shuttlei_ff_w); DECLARE_WRITE8_MEMBER(shuttlei_sh_port_1_w); DECLARE_WRITE8_MEMBER(shuttlei_sh_port_2_w); - DECLARE_WRITE8_MEMBER(galactic_07_w); - DECLARE_WRITE8_MEMBER(galactic_sh_port_1_w); - DECLARE_WRITE8_MEMBER(galactic_sh_port_2_w); DECLARE_READ8_MEMBER(claybust_gun_lo_r); DECLARE_READ8_MEMBER(claybust_gun_hi_r); DECLARE_READ8_MEMBER(invmulti_eeprom_r); @@ -156,7 +153,6 @@ extern const samples_interface lupin3_samples_interface; DISCRETE_SOUND_EXTERN( ballbomb ); DISCRETE_SOUND_EXTERN( indianbt ); -DISCRETE_SOUND_EXTERN( galactic ); DISCRETE_SOUND_EXTERN( polaris ); extern const sn76477_interface lupin3_sn76477_interface;