~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/drivers/neptunp2.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:
9
9
#include "emu.h"
10
10
#include "cpu/i86/i86.h"
11
11
 
 
12
 
 
13
class neptunp2_state : public driver_device
 
14
{
 
15
public:
 
16
        neptunp2_state(running_machine &machine, const driver_device_config_base &config)
 
17
                : driver_device(machine, config) { }
 
18
 
 
19
};
 
20
 
 
21
 
12
22
static VIDEO_START( neptunp2 )
13
23
{
14
24
 
15
25
}
16
26
 
17
 
static VIDEO_UPDATE( neptunp2 )
 
27
static SCREEN_UPDATE( neptunp2 )
18
28
{
19
29
        return 0;
20
30
}
21
31
 
22
32
static READ8_HANDLER( test_r )
23
33
{
24
 
        return space->machine->rand();
 
34
        return space->machine().rand();
25
35
}
26
36
 
27
 
static ADDRESS_MAP_START( neptunp2_map, ADDRESS_SPACE_PROGRAM, 8 )
 
37
static ADDRESS_MAP_START( neptunp2_map, AS_PROGRAM, 8 )
28
38
        AM_RANGE(0x00000, 0xbffff) AM_ROM
29
39
        AM_RANGE(0xe0000, 0xeffff) AM_RAM
30
40
 
41
51
        AM_RANGE(0xffff0, 0xfffff) AM_ROM
42
52
ADDRESS_MAP_END
43
53
 
44
 
static ADDRESS_MAP_START( neptunp2_io, ADDRESS_SPACE_IO, 8 )
 
54
static ADDRESS_MAP_START( neptunp2_io, AS_IO, 8 )
45
55
ADDRESS_MAP_END
46
56
 
47
57
 
66
76
//  GFXDECODE_ENTRY( "gfx1", 0, charlayout,     0, 8 )
67
77
GFXDECODE_END
68
78
 
69
 
static MACHINE_CONFIG_START( neptunp2, driver_device )
 
79
static MACHINE_CONFIG_START( neptunp2, neptunp2_state )
70
80
 
71
81
        /* basic machine hardware */
72
82
        MCFG_CPU_ADD("maincpu",I80188,20000000) // N80C188-20 AMD
81
91
        MCFG_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
82
92
        MCFG_SCREEN_SIZE(32*8, 32*8)
83
93
        MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
 
94
        MCFG_SCREEN_UPDATE(neptunp2)
84
95
        MCFG_GFXDECODE(neptunp2)
85
96
        MCFG_PALETTE_LENGTH(512)
86
97
 
87
98
        MCFG_VIDEO_START(neptunp2)
88
 
        MCFG_VIDEO_UPDATE(neptunp2)
89
99
 
90
100
        /* sound hardware */
91
101
        MCFG_SPEAKER_STANDARD_MONO("mono")