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

« back to all changes in this revision

Viewing changes to src/drivers/overdriv.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:
22
22
#include "vidhrdw/konamiic.h"
23
23
#include "machine/eeprom.h"
24
24
#include "cpu/m6809/m6809.h"
 
25
#include "sound/2151intf.h"
 
26
#include "sound/k053260.h"
25
27
 
26
28
 
27
29
VIDEO_START( overdriv );
81
83
 
82
84
***************************************************************************/
83
85
 
84
 
static data8_t default_eeprom[128] =
 
86
static UINT8 default_eeprom[128] =
85
87
{
86
88
        0x77,0x58,0xFF,0xFF,0x00,0x78,0x90,0x00,0x00,0x78,0x70,0x00,0x00,0x78,0x50,0x00,
87
89
        0x54,0x41,0x4B,0x51,0x31,0x36,0x46,0x55,0x4A,0xFF,0x03,0x00,0x02,0x70,0x02,0x50,
161
163
}
162
164
 
163
165
 
164
 
static MACHINE_INIT( overdriv )
 
166
static MACHINE_RESET( overdriv )
165
167
{
166
168
        /* start with cpu B halted */
167
169
        cpunum_set_input_line(1, INPUT_LINE_RESET, ASSERT_LINE);
185
187
}
186
188
 
187
189
 
188
 
static data16_t cpuB_ctrl;
 
190
static UINT16 cpuB_ctrl;
189
191
 
190
192
static READ16_HANDLER( cpuB_ctrl_r )
191
193
{
208
210
}
209
211
 
210
212
 
211
 
static data16_t *sharedram;
 
213
static UINT16 *sharedram;
212
214
 
213
215
static READ16_HANDLER( sharedram_r )
214
216
{
365
367
 
366
368
 
367
369
 
368
 
static struct GfxLayout charlayout =
 
370
static const gfx_layout charlayout =
369
371
{
370
372
        8,8,
371
373
        RGN_FRAC(1,1),
376
378
        8*8*4
377
379
};
378
380
 
379
 
static struct GfxDecodeInfo gfxdecodeinfo[] =
 
381
static const gfx_decode gfxdecodeinfo[] =
380
382
{
381
383
        { REGION_GFX4, 0, &charlayout, 0, 0x80 },
382
384
        { REGION_GFX5, 0, &charlayout, 0, 0x80 },
385
387
 
386
388
 
387
389
 
388
 
static struct YM2151interface ym2151_interface =
389
 
{
390
 
        1,                      /* 1 chip */
391
 
        3579545,        /* 3.579545 MHz */
392
 
        { YM3012_VOL(100,MIXER_PAN_LEFT,100,MIXER_PAN_RIGHT) },
393
 
        { 0 }
394
 
};
395
 
 
396
390
static struct K053260_interface k053260_interface =
397
391
{
398
 
        2,
399
 
        { 3579545, 3579545 },
400
 
        { REGION_SOUND1, REGION_SOUND1 }, /* memory region */
401
 
        { { MIXER(70,MIXER_PAN_LEFT), MIXER(70,MIXER_PAN_RIGHT) }, { MIXER(70,MIXER_PAN_LEFT), MIXER(70,MIXER_PAN_RIGHT) } },
402
 
        { 0, 0 }
 
392
        REGION_SOUND1
403
393
};
404
394
 
405
395
 
425
415
        MDRV_VBLANK_DURATION(DEFAULT_60HZ_VBLANK_DURATION)
426
416
        MDRV_INTERLEAVE(200)
427
417
 
428
 
        MDRV_MACHINE_INIT(overdriv)
 
418
        MDRV_MACHINE_RESET(overdriv)
429
419
        MDRV_NVRAM_HANDLER(overdriv)
430
420
 
431
421
        /* video hardware */
439
429
        MDRV_VIDEO_UPDATE(overdriv)
440
430
 
441
431
        /* sound hardware */
442
 
        MDRV_SOUND_ATTRIBUTES(SOUND_SUPPORTS_STEREO)
443
 
        MDRV_SOUND_ADD(YM2151, ym2151_interface)
444
 
        MDRV_SOUND_ADD(K053260, k053260_interface)
 
432
        MDRV_SPEAKER_STANDARD_STEREO("left", "right")
 
433
 
 
434
        MDRV_SOUND_ADD(YM2151, 3579545)
 
435
        MDRV_SOUND_ROUTE(0, "left", 1.0)
 
436
        MDRV_SOUND_ROUTE(1, "right", 1.0)
 
437
 
 
438
        MDRV_SOUND_ADD(K053260, 3579545)
 
439
        MDRV_SOUND_CONFIG(k053260_interface)
 
440
        MDRV_SOUND_ROUTE(0, "left", 0.70)
 
441
        MDRV_SOUND_ROUTE(1, "right", 0.70)
 
442
 
 
443
        MDRV_SOUND_ADD(K053260, 3579545)
 
444
        MDRV_SOUND_CONFIG(k053260_interface)
 
445
        MDRV_SOUND_ROUTE(0, "left", 0.70)
 
446
        MDRV_SOUND_ROUTE(1, "right", 0.70)
445
447
MACHINE_DRIVER_END
446
448
 
447
449
 
499
501
 
500
502
 
501
503
 
502
 
GAMEX( 1990, overdriv, 0, overdriv, overdriv, overdriv, ROT90, "Konami", "Over Drive", GAME_IMPERFECT_GRAPHICS )
 
504
GAME( 1990, overdriv, 0, overdriv, overdriv, overdriv, ROT90, "Konami", "Over Drive", GAME_IMPERFECT_GRAPHICS )