Previous 199869 Revisions Next

r18083 Sunday 23rd September, 2012 at 09:06:00 UTC by Robbbert
FLICKER - added nvram and notes.
[src/mame/drivers]flicker.c

trunk/src/mame/drivers/flicker.c
r18082r18083
1111  Inputs from US Patent 4093232
1212  Some clues from PinMAME
1313
14ToDo:
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.
1717
18
1918************************************************************************************/
2019
2120#include "machine/genpin.h"
2221#include "cpu/i4004/i4004.h"
22#include "machine/nvram.h"
2323#include "flicker.lh"
2424
2525class flicker_state : public driver_device
r18082r18083
4242   required_device<cpu_device> m_maincpu;
4343   required_device<samples_device> m_samples;
4444
45   // driver_device overrides
46   virtual void machine_reset();
4745private:
4846   UINT8 m_out_data;
4947};
r18082r18083
5452ADDRESS_MAP_END
5553
5654static 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")
5856ADDRESS_MAP_END
5957
6058static ADDRESS_MAP_START( flicker_io, AS_IO, 8, flicker_state )
r18082r18083
211209}
212210
213211
214void flicker_state::machine_reset()
215{
216}
217
218212static MACHINE_CONFIG_START( flicker, flicker_state )
219213   /* basic machine hardware */
220214   MCFG_CPU_ADD("maincpu", I4004, XTAL_5MHz / 8)
221215   MCFG_CPU_PROGRAM_MAP(flicker_rom)
222216   MCFG_CPU_DATA_MAP(flicker_map)
223217   MCFG_CPU_IO_MAP(flicker_io)
218   MCFG_NVRAM_ADD_0FILL("nvram")
224219
225220   /* Video */
226221   MCFG_DEFAULT_LAYOUT(layout_flicker)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team