~ubuntu-branches/ubuntu/karmic/xmame/karmic

« back to all changes in this revision

Viewing changes to src/drivers/carpolo.c

  • Committer: Bazaar Package Importer
  • Author(s): Bruno Barrera C.
  • Date: 2007-02-16 10:06:54 UTC
  • mfrom: (2.1.5 edgy)
  • Revision ID: james.westby@ubuntu.com-20070216100654-iztas2cl47k5j039
Tags: 0.106-2
* Added Italian debconf templates translation. (closes: #382672)
* Added German debconf templates translation. (closes: #396610)
* Added Japanese debconf templates translation. (closes: #400011)
* Added Portuguese debconf templates translation. (closes: #409960)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
2
 
3
 
        Exidy Car Polo hardware
4
 
 
5
 
        driver by Zsolt Vasvari
6
 
 
7
 
        Games supported:
8
 
                * Car Polo
9
 
 
10
 
        Known issues:
11
 
                * sound
 
3
    Exidy Car Polo hardware
 
4
 
 
5
    driver by Zsolt Vasvari
 
6
 
 
7
    Games supported:
 
8
        * Car Polo
 
9
 
 
10
    Known issues:
 
11
        * sound
12
12
 
13
13
     Original Bugs:
14
 
                * if you insert a coin too fast (before the GAME OVER sign appears),
15
 
                  the cars will chase *away* from the ball
 
14
        * if you insert a coin too fast (before the GAME OVER sign appears),
 
15
          the cars will chase *away* from the ball
16
16
 
17
17
****************************************************************************/
18
18
 
24
24
 
25
25
/*************************************
26
26
 *
27
 
 *      Main CPU memory handlers
 
27
 *  Main CPU memory handlers
28
28
 *
29
29
 *************************************/
30
30
 
63
63
 
64
64
/*************************************
65
65
 *
66
 
 *      Port definitions
 
66
 *  Port definitions
67
67
 *
68
68
 *************************************/
69
69
 
76
76
        PORT_BIT (0xf0, IP_ACTIVE_HIGH, IPT_UNUSED )
77
77
 
78
78
        /* the value read from here is used directly,
79
 
           the result is calculated by 60/value */
 
79
       the result is calculated by 60/value */
80
80
        PORT_START      /* IN1 */
81
81
        PORT_BIT (0x03, IP_ACTIVE_HIGH, IPT_UNUSED )    /* the lowest 2 bits of the counter */
82
82
        PORT_DIPNAME( 0xfc, 0x3c, "Game Sec/Real Sec" )
178
178
 
179
179
/*************************************
180
180
 *
181
 
 *      Graphics definitions
 
181
 *  Graphics definitions
182
182
 *
183
183
 *************************************/
184
184
 
185
 
static struct GfxLayout spritelayout =
 
185
static const gfx_layout spritelayout =
186
186
{
187
187
        16,16,
188
188
        RGN_FRAC(1,4),
196
196
        16*8
197
197
};
198
198
 
199
 
static struct GfxLayout goallayout =
 
199
static const gfx_layout goallayout =
200
200
{
201
201
        8,32,
202
202
        1,
209
209
        0
210
210
};
211
211
 
212
 
static struct GfxLayout alphalayout =
 
212
static const gfx_layout alphalayout =
213
213
{
214
214
        8,8,
215
215
        RGN_FRAC(1,1),
220
220
        8*8
221
221
};
222
222
 
223
 
static struct GfxDecodeInfo gfxdecodeinfo[] =
 
223
static const gfx_decode gfxdecodeinfo[] =
224
224
{
225
225
        { REGION_GFX1, 0, &spritelayout, 0,         12 },
226
226
        { REGION_GFX2, 0, &goallayout,   12*2,      2 },
231
231
 
232
232
/*************************************
233
233
 *
234
 
 *      Machine driver
 
234
 *  Machine driver
235
235
 *
236
236
 *************************************/
237
237
 
241
241
        MDRV_CPU_ADD(M6502,11289000/12)         /* 940.75 kHz */
242
242
        MDRV_CPU_PROGRAM_MAP(readmem,writemem)
243
243
        MDRV_CPU_VBLANK_INT(carpolo_timer_interrupt,1)  /* this not strictly VBLANK,
244
 
                                                                                                           but it's supposed to happen 60
245
 
                                                                                                           times a sec, so it's a good place */
 
244
                                                       but it's supposed to happen 60
 
245
                                                       times a sec, so it's a good place */
246
246
        MDRV_FRAMES_PER_SECOND(60)
247
247
        MDRV_VBLANK_DURATION(DEFAULT_REAL_60HZ_VBLANK_DURATION)
248
248
 
249
 
        MDRV_MACHINE_INIT(carpolo)
 
249
        MDRV_MACHINE_START(carpolo)
 
250
        MDRV_MACHINE_RESET(carpolo)
250
251
 
251
252
        /* video hardware */
252
253
        MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
266
267
 
267
268
/*************************************
268
269
 *
269
 
 *      ROM definitions
 
270
 *  ROM definitions
270
271
 *
271
272
 *************************************/
272
273
 
306
307
 
307
308
/*************************************
308
309
 *
309
 
 *      Game drivers
 
310
 *  Game drivers
310
311
 *
311
312
 *************************************/
312
313
 
322
323
                ROM[i] ^= 0x0f;
323
324
}
324
325
 
325
 
GAMEX(1977, carpolo, 0, carpolo, carpolo, carpolo, ROT0, "Exidy", "Car Polo", GAME_NO_SOUND)
 
326
GAME( 1977, carpolo, 0, carpolo, carpolo, carpolo, ROT0, "Exidy", "Car Polo", GAME_NO_SOUND)