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

« back to all changes in this revision

Viewing changes to src/mame/drivers/igs009.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:
228
228
        int layers_ctrl = video_enable ? -1 : 0;
229
229
 
230
230
#ifdef MAME_DEBUG
231
 
        if (input_code_pressed(KEYCODE_Z))
 
231
        if (input_code_pressed(screen->machine, KEYCODE_Z))
232
232
        {
233
233
                int mask = 0;
234
 
                if (input_code_pressed(KEYCODE_Q))      mask |= 1;
235
 
                if (input_code_pressed(KEYCODE_W))      mask |= 2;
236
 
                if (input_code_pressed(KEYCODE_A))      mask |= 4;
 
234
                if (input_code_pressed(screen->machine, KEYCODE_Q))     mask |= 1;
 
235
                if (input_code_pressed(screen->machine, KEYCODE_W))     mask |= 2;
 
236
                if (input_code_pressed(screen->machine, KEYCODE_A))     mask |= 4;
237
237
                if (mask != 0) layers_ctrl &= mask;
238
238
        }
239
239
#endif
510
510
        PORT_DIPUNKNOWN( 0x80, 0x80 )
511
511
 
512
512
        PORT_START("SERVICE")
513
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN  )
 
513
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
514
514
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE1 ) PORT_NAME("Memory Clear") // stats, memory
515
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL  ) PORT_CUSTOM( hopper_r, (void *)0 )        // hopper sensor
516
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN  )
517
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2   ) PORT_NAME("Pay Out")
 
515
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM( hopper_r, (void *)0 ) // hopper sensor
 
516
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
 
517
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT ) PORT_NAME("Pay Out")
518
518
        PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )   // test (press during boot)
519
 
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE2 ) PORT_NAME("Records")
 
519
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Records")
520
520
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN  )
521
521
 
522
522
        PORT_START("COINS")
523
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1   )
 
523
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
524
524
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
525
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2   )
526
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3   ) PORT_NAME("Key In")
527
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_COIN4   ) PORT_NAME("Key Down")      // pays out
 
525
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN2 )
 
526
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_KEYIN )
 
527
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT ) PORT_NAME("Key Down")        // pays out
528
528
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
529
529
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
530
530
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
531
531
 
532
532
        PORT_START("BUTTONS1")
533
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Stop 1")
534
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Stop 2")
535
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Stop 3")
536
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("Stop")
 
533
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SLOT_STOP1 )
 
534
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SLOT_STOP2 )
 
535
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SLOT_STOP3 )
 
536
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_CODE(KEYCODE_V) PORT_NAME("Stop")
537
537
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
538
538
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
539
539
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
540
540
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
541
541
 
542
542
        PORT_START("BUTTONS2")
543
 
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1  ) PORT_NAME("Start/H_Dup")
544
 
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Small")
545
 
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("Left Bet/H_Dup")
546
 
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_START4  ) PORT_NAME("Take")
547
 
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("Right Bet/Dup")
548
 
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Big")
 
543
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1  ) PORT_NAME("Start / H_Dup")
 
544
        PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_GAMBLE_LOW ) PORT_NAME("Small")
 
545
        PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Left Bet / H_Dup")
 
546
        PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE )
 
547
        PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Right Bet / Dup")
 
548
        PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH ) PORT_NAME("Big")
549
549
        PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
550
550
        PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
551
551
INPUT_PORTS_END
716
716
        ROM_REGION( 0x8000, "data", 0 )
717
717
        ROM_LOAD( "jingle133i7.u43", 0x0000, 0x8000, CRC(a7affa15) SHA1(f9d33e32b57ad267d383e075663994e0af0b3016) )
718
718
 
719
 
        ROM_REGION( 0x30000, "gfx1", ROMREGION_DISPOSE )
 
719
        ROM_REGION( 0x30000, "gfx1", 0 )
720
720
        ROM_LOAD( "jingle133i1.u17", 0x00000, 0x10000, CRC(cadd7910) SHA1(aa514ddb29c8c9a77478d56bea4ae71995fdd518) )
721
721
        ROM_LOAD( "jingle133i2.u16", 0x10000, 0x10000, CRC(a9e1f5aa) SHA1(68d7f4e9e9a5bbce0904e406ee6fe82e9e52a9ba) )
722
722
        ROM_LOAD( "jingle133i3.u15", 0x20000, 0x10000, CRC(865b7d3a) SHA1(c1dff3a27d747ee499aaee0c4468534f0249a3e5) )
723
723
 
724
 
        ROM_REGION( 0xc0000, "gfx2", ROMREGION_DISPOSE )
 
724
        ROM_REGION( 0xc0000, "gfx2", 0 )
725
725
        ROM_LOAD( "jingle133i4.u25", 0x00000, 0x40000, CRC(7aa1d344) SHA1(141e27df93cb35ab852d9022e0b08bd596f1186b) )
726
726
        ROM_LOAD( "jingle133i5.u24", 0x40000, 0x40000, CRC(021261d1) SHA1(5b23f9bd818193c343f9f4c9317955b17efb8cfa) )
727
727
        ROM_LOAD( "jingle133i6.u23", 0x80000, 0x40000, CRC(c40228fd) SHA1(4dc05337d64ed2b8d66fc5f0ca8ffbf96799f768) )
728
728
 
729
 
        ROM_REGION( 0x20000, "oki", 0 )
 
729
        ROM_REGION( 0x40000, "oki", 0 )
730
730
        ROM_LOAD( "jingle133isp.u38", 0x00000, 0x20000, CRC(a42d73b1) SHA1(93157e9630d5c8bb34c71186415d0aa8c5d51951) )
731
731
 
732
732
        ROM_REGION( 0x2dd, "plds",0 )
772
772
        ROM_REGION( 0x8000, "data", 0 )
773
773
        ROM_COPY( "maincpu", 0x18000, 0x00000, 0x8000 )
774
774
 
775
 
        ROM_REGION( 0x180000, "tempgfx", ROMREGION_DISPOSE ) // 6bpp (2bpp per rom) font at tile # 0x4000
 
775
        ROM_REGION( 0x180000, "tempgfx", 0 ) // 6bpp (2bpp per rom) font at tile # 0x4000
776
776
        ROM_LOAD( "49", 0x000000, 0x80000, BAD_DUMP CRC(a9d9367d) SHA1(91c74740fc8394f1e1cd68feb8c993afd2042d70) )
777
777
        ROM_LOAD( "50", 0x080000, 0x80000, CRC(48f6190d) SHA1(b430131a258b4e2fc178ac0e3e3f0010a82eac65) )
778
778
        ROM_LOAD( "51", 0x100000, 0x80000, CRC(30a2ef85) SHA1(38ea637acd83b175eccd2969ef21879265b88992) )
779
779
 
780
 
        ROM_REGION( 0xc0000, "gfx1", ROMREGION_DISPOSE )
 
780
        ROM_REGION( 0xc0000, "gfx1", 0 )
781
781
        ROM_COPY( "tempgfx", 0x000000, 0x00000, 0x40000 )
782
782
        ROM_COPY( "tempgfx", 0x080000, 0x40000, 0x40000 )
783
783
        ROM_COPY( "tempgfx", 0x100000, 0x80000, 0x40000 )
784
784
 
785
 
        ROM_REGION( 0xc0000, "gfx2", ROMREGION_DISPOSE )
 
785
        ROM_REGION( 0xc0000, "gfx2", 0 )
786
786
        ROM_COPY( "tempgfx", 0x040000, 0x00000, 0x40000 )
787
787
        ROM_COPY( "tempgfx", 0x0c0000, 0x40000, 0x40000 )
788
788
        ROM_COPY( "tempgfx", 0x140000, 0x80000, 0x40000 )
789
789
 
790
790
 
791
 
        ROM_REGION( 0x20000, "oki", ROMREGION_ERASE00 )
 
791
        ROM_REGION( 0x40000, "oki", ROMREGION_ERASE00 )
792
792
        /* no OKI on this */
793
793
ROM_END
794
794