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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
#include "emu.h"
33
33
#include "cpu/m68000/m68000.h"
34
 
#include "deprecat.h"
35
34
#include "machine/eeprom.h"
36
35
#include "rendlay.h"
37
36
 
725
724
GFXDECODE_END
726
725
 
727
726
 
728
 
static INTERRUPT_GEN( tmmjprd_interrupt )
 
727
static TIMER_DEVICE_CALLBACK( tmmjprd_scanline )
729
728
{
730
 
        int intlevel = 0;
731
 
 
732
 
        if (cpu_getiloops(device)==0)
733
 
                intlevel = 5;
734
 
        else
735
 
                intlevel = 3;
736
 
 
737
 
        device_set_input_line(device, intlevel, HOLD_LINE);
 
729
        //tmmjprd_state *state = timer.machine().driver_data<tmmjprd_state>();
 
730
        int scanline = param;
 
731
 
 
732
        if(scanline == 224) // vblank-out irq
 
733
                cputag_set_input_line(timer.machine(), "maincpu", 5, HOLD_LINE);
 
734
 
 
735
        if(scanline == 736) // blitter irq?
 
736
                cputag_set_input_line(timer.machine(), "maincpu", 3, HOLD_LINE);
 
737
 
738
738
}
739
739
 
740
740
static MACHINE_CONFIG_START( tmmjprd, tmmjprd_state )
741
741
        MCFG_CPU_ADD("maincpu",M68EC020,24000000) /* 24 MHz */
742
742
        MCFG_CPU_PROGRAM_MAP(tmmjprd_map)
743
 
        MCFG_CPU_VBLANK_INT_HACK(tmmjprd_interrupt,2)
 
743
        MCFG_TIMER_ADD_SCANLINE("scantimer", tmmjprd_scanline, "lscreen", 0, 1)
 
744
 
744
745
        MCFG_EEPROM_93C46_ADD("eeprom")
745
746
 
746
747
        MCFG_GFXDECODE(tmmjprd)