branches/kale/src/mess/drivers/wildfire.c
| r244612 | r244613 | |
| 16 | 16 | - sound emulation could still be improved |
| 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 | | - some 7segs digits are wrong (mcu on-die decoder is customizable?) |
| 19 | - 7seg decoder is guessed |
| 20 | 20 | - MCU clock is unknown |
| 21 | 21 | |
| 22 | 22 | ***************************************************************************/ |
| r244612 | r244613 | |
| 278 | 278 | save_item(NAME(m_q3)); |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | // LED segments A-G |
| 282 | enum |
| 283 | { |
| 284 | lA = 0x40, |
| 285 | lB = 0x20, |
| 286 | lC = 0x10, |
| 287 | lD = 0x08, |
| 288 | lE = 0x04, |
| 289 | lF = 0x02, |
| 290 | lG = 0x01 |
| 291 | }; |
| 281 | 292 | |
| 293 | static const UINT8 wildfire_7seg_table[0x10] = |
| 294 | { |
| 295 | 0x7e, 0x30, 0x6d, 0x79, 0x33, 0x5b, 0x5f, 0x70, 0x7f, 0x7b, // 0-9 unaltered |
| 296 | 0x77, // A -> unused? |
| 297 | lA+lB+lE+lF+lG, // b -> P |
| 298 | 0x4e, // C -> unused? |
| 299 | lD+lE+lF, // d -> L |
| 300 | 0x4f, // E -> unused? |
| 301 | lG // F -> - |
| 302 | }; |
| 303 | |
| 304 | |
| 282 | 305 | static MACHINE_CONFIG_START( wildfire, wildfire_state ) |
| 283 | 306 | |
| 284 | 307 | /* basic machine hardware */ |
| 285 | 308 | MCFG_CPU_ADD("maincpu", AMI_S2152, MASTER_CLOCK) |
| 309 | MCFG_AMI_S2000_7SEG_DECODER(wildfire_7seg_table) |
| 286 | 310 | MCFG_AMI_S2000_READ_I_CB(IOPORT("IN1")) |
| 287 | 311 | MCFG_AMI_S2000_WRITE_D_CB(WRITE8(wildfire_state, write_d)) |
| 288 | 312 | MCFG_AMI_S2000_WRITE_A_CB(WRITE16(wildfire_state, write_a)) |