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

« back to all changes in this revision

Viewing changes to src/mame/machine/midyunit.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:
463
463
}
464
464
 
465
465
 
 
466
/*************************************
 
467
 *
 
468
 *  MK Turbo Ninja protection
 
469
 *
 
470
 *************************************/
 
471
 
 
472
static READ16_HANDLER( mkturbo_prot_r )
 
473
{
 
474
        /* the security GAL overlays a counter of some sort at 0xfffff400 in ROM space.
 
475
     * A startup protection check expects to read back two different values in succession */
 
476
        return mame_rand(space->machine);
 
477
}
 
478
 
 
479
DRIVER_INIT( mkyturbo )
 
480
{
 
481
        /* protection */
 
482
        memory_install_read16_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xfffff400, 0xfffff40f, 0, 0, mkturbo_prot_r);
 
483
 
 
484
        DRIVER_INIT_CALL(mkyunit);
 
485
}
 
486
 
466
487
/********************** Terminator 2 **********************/
467
488
 
468
489
static void term2_init_common(running_machine *machine, write16_space_func hack_w)