~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
VIDEO_UPDATE( trucocl );
45
45
 
46
46
 
47
 
static WRITE8_HANDLER( irq_enable_w)
 
47
static WRITE8_HANDLER( irq_enable_w )
48
48
{
49
49
        interrupt_enable_w( space, 0, (~data) & 1 );
50
50
}
51
51
 
52
 
static int cur_dac_address = -1;
 
52
static int cur_dac_address;
53
53
static int cur_dac_address_index = 0;
54
54
 
55
55
static TIMER_CALLBACK( dac_irq )
57
57
        cputag_set_input_line(machine, "maincpu", INPUT_LINE_NMI, PULSE_LINE );
58
58
}
59
59
 
60
 
static WRITE8_DEVICE_HANDLER( audio_dac_w)
 
60
static WRITE8_DEVICE_HANDLER( audio_dac_w )
61
61
{
62
62
        UINT8 *rom = memory_region(device->machine, "maincpu");
63
63
        int     dac_address = ( data & 0xf0 ) << 8;
173
173
        ROM_LOAD( "trucocl.01", 0x00000, 0x20000, CRC(c9511c37) SHA1(d6a0fa573c8d2faf1a94a2be26fcaafe631d0699) )
174
174
        ROM_LOAD( "trucocl.03", 0x20000, 0x20000, CRC(b37ce38c) SHA1(00bd506e9a03cb8ed65b0b599514db6b9b0ee5f3) ) /* samples */
175
175
 
176
 
        ROM_REGION( 0x20000, "gfx1", ROMREGION_DISPOSE )
 
176
        ROM_REGION( 0x20000, "gfx1", 0 )
177
177
        ROM_LOAD( "trucocl.02", 0x0000, 0x20000, CRC(bda803e5) SHA1(e4fee42f23be4e0dc8926b6294e4b3e4a38ff185) ) /* tiles */
178
178
 
179
179
        ROM_REGION( 0x0040, "proms", 0 )
187
187
 *
188
188
 *************************************/
189
189
 
 
190
static DRIVER_INIT( trucocl )
 
191
{
 
192
        cur_dac_address = -1;
 
193
        cur_dac_address_index = 0;
 
194
}
 
195
 
 
196
 
 
197
 
190
198
/******************************************************************************/
191
 
 
192
 
/*    YEAR   NAME     PARENT  MACHINE  INPUT    INIT  MONITOR  */
193
 
 
194
 
GAME( 1991, trucocl,  0,     trucocl, trucocl, 0,    ROT0, "Miky SRL", "Truco Clemente", GAME_IMPERFECT_SOUND )
 
199
/*    YEAR   NAME     PARENT  MACHINE  INPUT    INIT     MONITOR  */
 
200
 
 
201
GAME( 1991, trucocl,  0,      trucocl, trucocl, trucocl, ROT0, "Miky SRL", "Truco Clemente", GAME_IMPERFECT_SOUND )