Previous 199869 Revisions Next

r36101 Wednesday 25th February, 2015 at 00:34:25 UTC by hap
added wildfire 7seg decoder
[/branches/kale/src/emu/cpu/amis2000]amis2000.h
[/branches/kale/src/mess/drivers]wildfire.c

branches/kale/src/emu/cpu/amis2000/amis2000.h
r244612r244613
3636
3737// S2000 has a hardcoded 7seg table, that (unlike S2200) is officially
3838// uncustomizable, but wildfire proves to be an exception to that rule.
39#define MCFG_AMI_S2000_7SEG_DECODER(_pla) \
39#define MCFG_AMI_S2000_7SEG_DECODER(_ptr) \
4040   amis2000_base_device::set_7seg_table(*device, _ptr);
4141
4242
branches/kale/src/mess/drivers/wildfire.c
r244612r244613
1616  - sound emulation could still be improved
1717  - when the game strobes a led faster, it should appear brighter, for example when
1818    the ball hits one of the bumpers
19  - some 7segs digits are wrong (mcu on-die decoder is customizable?)
19  - 7seg decoder is guessed
2020  - MCU clock is unknown
2121
2222***************************************************************************/
r244612r244613
278278   save_item(NAME(m_q3));
279279}
280280
281// LED segments A-G
282enum
283{
284   lA = 0x40,
285   lB = 0x20,
286   lC = 0x10,
287   lD = 0x08,
288   lE = 0x04,
289   lF = 0x02,
290   lG = 0x01
291};
281292
293static 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
282305static MACHINE_CONFIG_START( wildfire, wildfire_state )
283306
284307   /* basic machine hardware */
285308   MCFG_CPU_ADD("maincpu", AMI_S2152, MASTER_CLOCK)
309   MCFG_AMI_S2000_7SEG_DECODER(wildfire_7seg_table)
286310   MCFG_AMI_S2000_READ_I_CB(IOPORT("IN1"))
287311   MCFG_AMI_S2000_WRITE_D_CB(WRITE8(wildfire_state, write_d))
288312   MCFG_AMI_S2000_WRITE_A_CB(WRITE16(wildfire_state, write_a))


Previous 199869 Revisions Next


© 1997-2024 The MAME Team