trunk/src/mame/audio/8080bw.c
| r18957 | r18958 | |
| 1228 | 1228 | break; |
| 1229 | 1229 | } |
| 1230 | 1230 | } |
| 1231 | |
| 1232 | WRITE8_MEMBER( _8080bw_state::darthvdr_08_w ) |
| 1233 | { |
| 1234 | UINT8 rising_bits = data & ~m_port_1_last_extra; |
| 1235 | |
| 1236 | machine().sound().system_enable(data & 0x01); |
| 1237 | |
| 1238 | if (rising_bits & 0x02) m_samples->start(0, 0); /* Shoot */ |
| 1239 | if (rising_bits & 0x04) m_samples->start(3, 7); /* Hit UFO */ |
| 1240 | if (rising_bits & 0x10) m_samples->start(5, 8); /* Bonus */ |
| 1241 | |
| 1242 | sn76477_enable_w(m_sn, data & 0x20 ? 0:1); /* UFO */ |
| 1243 | |
| 1244 | if (rising_bits & 0x40) m_samples->start(1, 1); /* Death */ |
| 1245 | if (rising_bits & 0x80) m_samples->start(2, 2); /* Hit */ |
| 1246 | |
| 1247 | if (rising_bits & 0x08) |
| 1248 | { |
| 1249 | m_samples->start(4, m_fleet_step); /* Fleet move in 4 steps */ |
| 1250 | m_fleet_step++; |
| 1251 | if (m_fleet_step > 6) m_fleet_step = 3; |
| 1252 | } |
| 1253 | |
| 1254 | m_port_1_last_extra = data; |
| 1255 | } |
| 1256 | |
trunk/src/mame/drivers/8080bw.c
| r18957 | r18958 | |
| 2067 | 2067 | MACHINE_START_MEMBER(_8080bw_state,darthvdr) |
| 2068 | 2068 | { |
| 2069 | 2069 | /* do nothing for now - different interrupt system */ |
| 2070 | m_fleet_step = 3; |
| 2071 | m_samples = machine().device<samples_device>("samples"); |
| 2072 | m_sn = machine().device("snsnd"); |
| 2070 | 2073 | } |
| 2071 | 2074 | |
| 2072 | 2075 | |
| r18957 | r18958 | |
| 2085 | 2088 | static ADDRESS_MAP_START( darthvdr_io_map, AS_IO, 8, _8080bw_state ) |
| 2086 | 2089 | AM_RANGE(0x00, 0x00) AM_READ_PORT("P1") |
| 2087 | 2090 | AM_RANGE(0x01, 0x01) AM_READ_PORT("P2") |
| 2088 | | AM_RANGE(0x00, 0x0f) AM_WRITENOP |
| 2091 | |
| 2092 | AM_RANGE(0x00, 0x00) AM_WRITENOP |
| 2093 | AM_RANGE(0x04, 0x04) AM_WRITENOP |
| 2094 | AM_RANGE(0x08, 0x08) AM_WRITE(darthvdr_08_w) // sound |
| 2089 | 2095 | ADDRESS_MAP_END |
| 2090 | 2096 | |
| 2091 | 2097 | |
| r18957 | r18958 | |
| 2138 | 2144 | |
| 2139 | 2145 | MCFG_MACHINE_START_OVERRIDE(_8080bw_state,darthvdr) |
| 2140 | 2146 | MCFG_MACHINE_RESET_OVERRIDE(_8080bw_state,darthvdr) |
| 2147 | |
| 2148 | /* sound hardware */ |
| 2149 | MCFG_FRAGMENT_ADD(invaders_samples_audio) |
| 2141 | 2150 | MACHINE_CONFIG_END |
| 2142 | 2151 | |
| 2143 | 2152 | |
| r18957 | r18958 | |
| 3959 | 3968 | GAMEL(1979, jspecter2, invaders, invaders, jspecter, driver_device, 0, ROT270, "bootleg (Jatre)", "Jatre Specter (set 2)", GAME_SUPPORTS_SAVE, layout_invaders ) |
| 3960 | 3969 | GAMEL(1978, spacewr3, invaders, spcewars, sicv, driver_device, 0, ROT270, "bootleg", "Space War Part 3", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE, layout_invaders ) // unrelated to Sanritsu's version? |
| 3961 | 3970 | GAMEL(1978, invader4, invaders, invaders, sicv, driver_device, 0, ROT270, "bootleg", "Space Invaders Part Four", GAME_SUPPORTS_SAVE, layout_invaders ) |
| 3962 | | GAME( 1978, darthvdr, invaders, darthvdr, darthvdr, driver_device, 0, ROT270, "bootleg", "Darth Vader (bootleg of Space Invaders)", GAME_SUPPORTS_SAVE | GAME_NO_SOUND ) |
| 3971 | GAME( 1978, darthvdr, invaders, darthvdr, darthvdr, driver_device, 0, ROT270, "bootleg", "Darth Vader (bootleg of Space Invaders)", GAME_SUPPORTS_SAVE | GAME_IMPERFECT_SOUND ) |
| 3963 | 3972 | GAMEL(19??, tst_invd, invaders, invaders, sicv, driver_device, 0, ROT0, "<unknown>", "Space Invaders Test ROM", GAME_SUPPORTS_SAVE, layout_invaders ) |
| 3964 | 3973 | |
| 3965 | 3974 | // other Taito |