~ubuntu-branches/debian/wheezy/mame/wheezy

« back to all changes in this revision

Viewing changes to src/mame/drivers/cheekyms.c

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Emmanuel Kasper, Félix Arreola Rodríguez, Jordi Mallach
  • Date: 2011-05-11 21:06:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110511210650-jizvh8a6x117y9hr
Tags: 0.142-1
[ Emmanuel Kasper ]
* New upstream release
* Set NOWERROR=1 to allow compiling with gcc-4.6
* Remove fix_powerpc_build.patch, as upstream has taken it in this release
* Add gnome-video-arcade front end as a suggested package

[ Félix Arreola Rodríguez ]
* Add kfreebsd-build.patch to quilt series, to fix build on kfreebsd

[ Jordi Mallach ]
* Remove unneeded and bogus addition of --with-quilt to the dh invocation.
* Add Cesare Falco (long time Ubuntu maintainer) to Uploaders, and wrap
  them into multiple lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
static INPUT_CHANGED( coin_inserted )
16
16
{
17
 
        cheekyms_state *state = field->port->machine->driver_data<cheekyms_state>();
 
17
        cheekyms_state *state = field->port->machine().driver_data<cheekyms_state>();
18
18
 
19
19
        /* this starts a 556 one-shot timer (and triggers a sound effect) */
20
20
        if (newval)
21
 
                cpu_set_input_line(state->maincpu, INPUT_LINE_NMI, PULSE_LINE);
 
21
                device_set_input_line(state->m_maincpu, INPUT_LINE_NMI, PULSE_LINE);
22
22
}
23
23
 
24
24
 
25
 
static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
 
25
static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8 )
26
26
        AM_RANGE(0x0000, 0x1fff) AM_ROM
27
27
        AM_RANGE(0x3000, 0x33ff) AM_RAM
28
 
        AM_RANGE(0x3800, 0x3bff) AM_RAM AM_BASE_MEMBER(cheekyms_state, videoram)
 
28
        AM_RANGE(0x3800, 0x3bff) AM_RAM AM_BASE_MEMBER(cheekyms_state, m_videoram)
29
29
ADDRESS_MAP_END
30
30
 
31
 
static ADDRESS_MAP_START( io_map, ADDRESS_SPACE_IO, 8 )
 
31
static ADDRESS_MAP_START( io_map, AS_IO, 8 )
32
32
        ADDRESS_MAP_GLOBAL_MASK(0xff)
33
33
        AM_RANGE(0x00, 0x00) AM_READ_PORT("DSW")
34
34
        AM_RANGE(0x01, 0x01) AM_READ_PORT("INPUTS")
35
 
        AM_RANGE(0x20, 0x3f) AM_WRITEONLY AM_BASE_MEMBER(cheekyms_state, spriteram)
 
35
        AM_RANGE(0x20, 0x3f) AM_WRITEONLY AM_BASE_MEMBER(cheekyms_state, m_spriteram)
36
36
        AM_RANGE(0x40, 0x40) AM_WRITE(cheekyms_port_40_w)
37
 
        AM_RANGE(0x80, 0x80) AM_WRITE(cheekyms_port_80_w) AM_BASE_MEMBER(cheekyms_state, port_80)
 
37
        AM_RANGE(0x80, 0x80) AM_WRITE(cheekyms_port_80_w) AM_BASE_MEMBER(cheekyms_state, m_port_80)
38
38
ADDRESS_MAP_END
39
39
 
40
40
 
111
111
 
112
112
static MACHINE_START( cheekyms )
113
113
{
114
 
        cheekyms_state *state = machine->driver_data<cheekyms_state>();
 
114
        cheekyms_state *state = machine.driver_data<cheekyms_state>();
115
115
 
116
 
        state->maincpu = machine->device("maincpu");
117
 
        state->dac = machine->device("dac");
 
116
        state->m_maincpu = machine.device("maincpu");
 
117
        state->m_dac = machine.device("dac");
118
118
}
119
119
 
120
120
static MACHINE_CONFIG_START( cheekyms, cheekyms_state )
134
134
        MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
135
135
        MCFG_SCREEN_SIZE(32*8, 32*8)
136
136
        MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 4*8, 28*8-1)
 
137
        MCFG_SCREEN_UPDATE(cheekyms)
137
138
 
138
139
        MCFG_GFXDECODE(cheekyms)
139
140
        MCFG_PALETTE_LENGTH(0xc0)
140
141
 
141
142
        MCFG_PALETTE_INIT(cheekyms)
142
143
        MCFG_VIDEO_START(cheekyms)
143
 
        MCFG_VIDEO_UPDATE(cheekyms)
144
144
 
145
145
        /* audio hardware */
146
146
        MCFG_SPEAKER_STANDARD_MONO("mono")