trunk/src/mame/drivers/flicker.c
| r18082 | r18083 | |
| 11 | 11 | Inputs from US Patent 4093232 |
| 12 | 12 | Some clues from PinMAME |
| 13 | 13 | |
| 14 | | ToDo: |
| 15 | | - Better artwork |
| 16 | | - It freezes when F3 pressed or game tilted |
| 14 | Note: If F3 pressed, or you start the system, it will remember any credits from |
| 15 | last time. However, you still need to insert a coin before the start button |
| 16 | will work. |
| 17 | 17 | |
| 18 | | |
| 19 | 18 | ************************************************************************************/ |
| 20 | 19 | |
| 21 | 20 | #include "machine/genpin.h" |
| 22 | 21 | #include "cpu/i4004/i4004.h" |
| 22 | #include "machine/nvram.h" |
| 23 | 23 | #include "flicker.lh" |
| 24 | 24 | |
| 25 | 25 | class flicker_state : public driver_device |
| r18082 | r18083 | |
| 42 | 42 | required_device<cpu_device> m_maincpu; |
| 43 | 43 | required_device<samples_device> m_samples; |
| 44 | 44 | |
| 45 | | // driver_device overrides |
| 46 | | virtual void machine_reset(); |
| 47 | 45 | private: |
| 48 | 46 | UINT8 m_out_data; |
| 49 | 47 | }; |
| r18082 | r18083 | |
| 54 | 52 | ADDRESS_MAP_END |
| 55 | 53 | |
| 56 | 54 | static ADDRESS_MAP_START(flicker_map, AS_DATA, 8, flicker_state ) |
| 57 | | AM_RANGE(0x0000, 0x00FF) AM_RAM |
| 55 | AM_RANGE(0x0000, 0x00FF) AM_RAM AM_SHARE("nvram") |
| 58 | 56 | ADDRESS_MAP_END |
| 59 | 57 | |
| 60 | 58 | static ADDRESS_MAP_START( flicker_io, AS_IO, 8, flicker_state ) |
| r18082 | r18083 | |
| 211 | 209 | } |
| 212 | 210 | |
| 213 | 211 | |
| 214 | | void flicker_state::machine_reset() |
| 215 | | { |
| 216 | | } |
| 217 | | |
| 218 | 212 | static MACHINE_CONFIG_START( flicker, flicker_state ) |
| 219 | 213 | /* basic machine hardware */ |
| 220 | 214 | MCFG_CPU_ADD("maincpu", I4004, XTAL_5MHz / 8) |
| 221 | 215 | MCFG_CPU_PROGRAM_MAP(flicker_rom) |
| 222 | 216 | MCFG_CPU_DATA_MAP(flicker_map) |
| 223 | 217 | MCFG_CPU_IO_MAP(flicker_io) |
| 218 | MCFG_NVRAM_ADD_0FILL("nvram") |
| 224 | 219 | |
| 225 | 220 | /* Video */ |
| 226 | 221 | MCFG_DEFAULT_LAYOUT(layout_flicker) |