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

« back to all changes in this revision

Viewing changes to src/mame/machine/stvprot.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
 
115
115
static READ32_HANDLER( twcup98_prot_r )
116
116
{
117
 
        UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
 
117
        UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
118
118
 
119
119
        if(a_bus[0] & 0x00010000)//protection calculation is activated
120
120
        {
173
173
 
174
174
static READ32_HANDLER( sss_prot_r )
175
175
{
176
 
        UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
 
176
        UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
177
177
 
178
178
        if(a_bus[0] & 0x00010000)//protection calculation is activated
179
179
        {
238
238
 
239
239
static READ32_HANDLER( rsgun_prot_r )
240
240
{
241
 
        UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
 
241
        UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
242
242
 
243
243
        if(a_bus[0] & 0x00010000)//protection calculation is activated
244
244
        {
313
313
 
314
314
static READ32_HANDLER( elandore_prot_r )
315
315
{
316
 
        UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
 
316
        UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
317
317
 
318
318
        if(a_bus[0] & 0x00010000)//protection calculation is activated
319
319
        {
420
420
 
421
421
static READ32_HANDLER( ffreveng_prot_r )
422
422
{
423
 
        UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
 
423
        UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
424
424
 
425
425
        if(a_bus[0] & 0x00010000)//protection calculation is activated
426
426
        {
485
485
        if ( offset == 3 && ctrl_index != -1 )
486
486
        {
487
487
                UINT32 data = 0;
488
 
                UINT32 *prot_data = (UINT32 *)space->machine().region("user2")->base();
 
488
                UINT32 *prot_data = (UINT32 *)space->machine().root_device().memregion("user2")->base();
489
489
 
490
490
                data = prot_data[ctrl_index++];
491
491
 
492
 
                if ( ctrl_index >= space->machine().region("user2")->bytes()/4 )
 
492
                if ( ctrl_index >= space->machine().root_device().memregion("user2")->bytes()/4 )
493
493
                {
494
494
                        ctrl_index = -1;
495
495
                }
533
533
{
534
534
        // the offsets written to the protection device definitely only refer to 2 of the roms
535
535
        //  it's a fair assumption to say that only those 2 are connected to the protection device
536
 
        UINT8 *ROM = (UINT8 *)space->machine().region("abus")->base()+0x1000000;
 
536
        UINT8 *ROM = (UINT8 *)space->machine().root_device().memregion("abus")->base()+0x1000000;
537
537
 
538
538
        if (offset==2)
539
539
        {