Previous 199869 Revisions Next

r18243 Tuesday 2nd October, 2012 at 13:34:21 UTC by Robbbert
FIREBIRD - wip
[src/mame/drivers]nsm.c

trunk/src/mame/drivers/nsm.c
r18242r18243
11/********************************************************************************
22
3Pinball
4NSM : Hot Fire Birds
3    Pinball
4    NSM (Lowen) : Hot Fire Birds
55
66*********************************************************************************/
77
88#include "emu.h"
99#include "cpu/tms9900/tms9900l.h"
10#include "sound/ay8910.h"
11#include "machine/nvram.h"
1012
1113class nsm_state : public driver_device
1214{
1315public:
1416   nsm_state(const machine_config &mconfig, device_type type, const char *tag)
1517      : driver_device(mconfig, type, tag),
16        m_maincpu(*this, "maincpu")
18   m_maincpu(*this, "maincpu")
1719   { }
1820
21   DECLARE_READ8_MEMBER(ff_r);
1922protected:
2023
2124   // devices
r18242r18243
2932
3033
3134static ADDRESS_MAP_START( nsm_map, AS_PROGRAM, 8, nsm_state )
32   AM_RANGE(0x0000, 0x5fff) AM_ROM
33   AM_RANGE(0x6000, 0xffff) AM_RAM
35   AM_RANGE(0x0000, 0x7fff) AM_ROM
36   AM_RANGE(0xe000, 0xefff) AM_RAM
37   AM_RANGE(0xf000, 0xf0fb) AM_READ_LEGACY(tms9995_internal1_r)
38   AM_RANGE(0xffec, 0xffed) AM_DEVWRITE_LEGACY("ay1", ay8910_address_data_w)
39   AM_RANGE(0xffee, 0xffef) AM_DEVWRITE_LEGACY("ay2", ay8910_address_data_w)
40   AM_RANGE(0xfffc, 0xffff) AM_READ_LEGACY(tms9995_internal2_r)
3441ADDRESS_MAP_END
3542
43static ADDRESS_MAP_START( nsm_io_map, AS_IO, 8, nsm_state )
44   AM_RANGE(0x0000, 0x0001) AM_READ(ff_r)
45   AM_RANGE(0x0010, 0x0011) AM_READNOP
46   AM_RANGE(0x0060, 0x0061) AM_READNOP
47   AM_RANGE(0x0f70, 0x0f7d) AM_WRITENOP
48   AM_RANGE(0x0fe4, 0x0fff) AM_READNOP
49   AM_RANGE(0x7f80, 0x7fd1) AM_WRITENOP
50ADDRESS_MAP_END
51
3652static INPUT_PORTS_START( nsm )
3753INPUT_PORTS_END
3854
55READ8_MEMBER( nsm_state::ff_r ) { return 0xff; }
56
3957void nsm_state::machine_reset()
4058{
4159}
r18242r18243
4866   /* basic machine hardware */
4967   MCFG_CPU_ADD("maincpu", TMS9995L, 11052000)
5068   MCFG_CPU_PROGRAM_MAP(nsm_map)
69   MCFG_CPU_IO_MAP(nsm_io_map)
70
71   /* Sound */
72   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
73   MCFG_SOUND_ADD("ay1", AY8912, 11052000/8)
74   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.75)
75   MCFG_SOUND_ADD("ay2", AY8912, 11052000/8)
76   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.75)
5177MACHINE_CONFIG_END
5278
5379/*-------------------------------------------------------------------

Previous 199869 Revisions Next


© 1997-2024 The MAME Team