trunk/src/emu/cpu/amis2000/amis2000op.inc
| r243567 | r243568 | |
| 371 | 371 | void amis2000_device::op_szi() |
| 372 | 372 | { |
| 373 | 373 | // SZI: skip next on I pin(s) |
| 374 | | // note: AMI's manual is ambiguous here |
| 375 | | m_skip = ((m_read_i(0, 0xff) & m_ki_mask) != 0); |
| 374 | m_skip = ((~m_read_i(0, 0xff) & m_ki_mask) != 0); |
| 376 | 375 | } |
| 377 | 376 | |
| 378 | 377 | void amis2000_device::op_szk() |
| 379 | 378 | { |
| 380 | 379 | // SZK: skip next on K pin(s) |
| 381 | | // note: AMI's manual is ambiguous here |
| 382 | | m_skip = ((m_read_k(0, 0xff) & m_ki_mask) != 0); |
| 380 | m_skip = ((~m_read_k(0, 0xff) & m_ki_mask) != 0); |
| 383 | 381 | } |
| 384 | 382 | |
| 385 | 383 | void amis2000_device::op_sbe() |
trunk/src/mess/drivers/wildfire.c
| r243567 | r243568 | |
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 | TODO: |
| 16 | | - no sound |
| 16 | - bad sound (probably MCU related) |
| 17 | 17 | - when the game strobes a led faster, it should appear brighter, for example when |
| 18 | 18 | the ball hits one of the bumpers |
| 19 | 19 | - some 7segs digits are wrong (mcu on-die decoder is customizable?) |
| r243567 | r243568 | |
| 51 | 51 | UINT16 m_display_cache[0x10]; |
| 52 | 52 | UINT8 m_display_decay[0x100]; |
| 53 | 53 | |
| 54 | | DECLARE_READ8_MEMBER(read_k); |
| 55 | 54 | DECLARE_WRITE8_MEMBER(write_d); |
| 56 | 55 | DECLARE_WRITE16_MEMBER(write_a); |
| 57 | 56 | |
| r243567 | r243568 | |
| 155 | 154 | |
| 156 | 155 | ***************************************************************************/ |
| 157 | 156 | |
| 158 | | READ8_MEMBER(wildfire_state::read_k) |
| 159 | | { |
| 160 | | // ? |
| 161 | | return 0; |
| 162 | | } |
| 163 | | |
| 164 | 157 | WRITE8_MEMBER(wildfire_state::write_d) |
| 165 | 158 | { |
| 159 | // D0-D7: leds out |
| 166 | 160 | m_d = data; |
| 167 | 161 | display_update(); |
| 168 | 162 | } |
| 169 | 163 | |
| 170 | 164 | WRITE16_MEMBER(wildfire_state::write_a) |
| 171 | 165 | { |
| 166 | // A12: enable speaker out |
| 167 | // this is in combination with the (not yet emulated) MCU F-pin |
| 168 | m_speaker->level_w(data >> 12 & 1); |
| 169 | |
| 170 | // A0-A2: select 7segleds |
| 171 | // A3-A11: select other leds |
| 172 | 172 | m_a = data; |
| 173 | 173 | display_update(); |
| 174 | 174 | } |
| r243567 | r243568 | |
| 183 | 183 | |
| 184 | 184 | static INPUT_PORTS_START( wildfire ) |
| 185 | 185 | PORT_START("IN1") // I |
| 186 | | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Shooter Button") |
| 187 | | PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Left Flipper") |
| 188 | | PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Right Flipper") |
| 189 | | PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED ) |
| 186 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Shooter Button") |
| 187 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Left Flipper") |
| 188 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Right Flipper") |
| 189 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED ) |
| 190 | 190 | INPUT_PORTS_END |
| 191 | 191 | |
| 192 | 192 | |
| r243567 | r243568 | |
| 222 | 222 | /* basic machine hardware */ |
| 223 | 223 | MCFG_CPU_ADD("maincpu", AMI_S2150, MASTER_CLOCK) |
| 224 | 224 | MCFG_AMI_S2000_READ_I_CB(IOPORT("IN1")) |
| 225 | | MCFG_AMI_S2000_READ_K_CB(READ8(wildfire_state, read_k)) |
| 226 | 225 | MCFG_AMI_S2000_WRITE_D_CB(WRITE8(wildfire_state, write_d)) |
| 227 | 226 | MCFG_AMI_S2000_WRITE_A_CB(WRITE16(wildfire_state, write_a)) |
| 228 | 227 | |
| r243567 | r243568 | |
| 253 | 252 | ROM_END |
| 254 | 253 | |
| 255 | 254 | |
| 256 | | CONS( 1979, wildfire, 0, 0, wildfire, wildfire, driver_device, 0, "Parker Brothers", "Wildfire (prototype)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE ) |
| 255 | CONS( 1979, wildfire, 0, 0, wildfire, wildfire, driver_device, 0, "Parker Brothers", "Wildfire (prototype)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE ) |