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

« back to all changes in this revision

Viewing changes to src/mame/drivers/itgambl2.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:
57
57
#include "sound/upd7759.h"
58
58
 
59
59
 
 
60
static int test_x, test_y, start_offs;
 
61
 
60
62
/*************************
61
63
*     Video Hardware     *
62
64
*************************/
63
65
 
64
66
static VIDEO_START( itgambl2 )
65
67
{
 
68
        test_x = 256;
 
69
        test_y = 256;
 
70
        start_offs = 0;
66
71
}
67
72
 
68
73
/* (dirty) debug code for looking 8bpps blitter-based gfxs */
70
75
{
71
76
        int x,y,count;
72
77
        const UINT8 *blit_ram = memory_region(screen->machine,"gfx1");
73
 
        static int test_x = 256,test_y = 256,start_offs;
74
78
 
75
 
        if(input_code_pressed(KEYCODE_Z))
 
79
        if(input_code_pressed(screen->machine, KEYCODE_Z))
76
80
                test_x++;
77
81
 
78
 
        if(input_code_pressed(KEYCODE_X))
 
82
        if(input_code_pressed(screen->machine, KEYCODE_X))
79
83
                test_x--;
80
84
 
81
 
        if(input_code_pressed(KEYCODE_A))
 
85
        if(input_code_pressed(screen->machine, KEYCODE_A))
82
86
                test_y++;
83
87
 
84
 
        if(input_code_pressed(KEYCODE_S))
 
88
        if(input_code_pressed(screen->machine, KEYCODE_S))
85
89
                test_y--;
86
90
 
87
 
        if(input_code_pressed(KEYCODE_Q))
 
91
        if(input_code_pressed(screen->machine, KEYCODE_Q))
88
92
                start_offs+=0x200;
89
93
 
90
 
        if(input_code_pressed(KEYCODE_W))
 
94
        if(input_code_pressed(screen->machine, KEYCODE_W))
91
95
                start_offs-=0x200;
92
96
 
93
 
        if(input_code_pressed(KEYCODE_E))
 
97
        if(input_code_pressed(screen->machine, KEYCODE_E))
94
98
                start_offs++;
95
99
 
96
 
        if(input_code_pressed(KEYCODE_R))
 
100
        if(input_code_pressed(screen->machine, KEYCODE_R))
97
101
                start_offs--;
98
102
 
99
103
        popmessage("%d %d %04x",test_x,test_y,start_offs);
436
440
        ROM_REGION( 0x1000000, "maincpu", 0 ) /* all the program code is in here */
437
441
        ROM_LOAD( "mdrink_ver1.2_hd64f3337cp16.mcu", 0x00000, 0x4000, NO_DUMP )
438
442
 
439
 
        ROM_REGION( 0x180000, "gfx1", 0 ) /* only 3 ROMs?? */
 
443
        ROM_REGION( 0x180000, "gfx1", 0 )
440
444
        ROM_LOAD( "mdrink-1.bin", 0x000000, 0x80000, CRC(25a7cea9) SHA1(d67a7264501699c8f7a48c3f3956903a5c95898f) )
441
445
        ROM_LOAD( "mdrink-2.bin", 0x080000, 0x80000, CRC(c2a14bca) SHA1(8d0095333c34d81d103f15ee5731e2e4aa4d1fac) )
442
446
        ROM_LOAD( "mdrink-3.bin", 0x100000, 0x80000, CRC(ff593676) SHA1(b21bb85df0b7b79c07ded2c4b950c94719e08302) )
538
542
        ROM_REGION( 0x1000000, "maincpu", 0 ) /* all the program code is in here */
539
543
        ROM_LOAD( "cmagica_ver1.8_hd64f3337cp16.mcu", 0x00000, 0x4000, NO_DUMP )
540
544
 
541
 
        ROM_REGION( 0x180000, "gfx1", 0 ) /* gfx seems 3bpp, not separated bitplanes? */
 
545
        ROM_REGION( 0x180000, "gfx1", 0 )
542
546
        ROM_LOAD( "1.u6", 0x000000, 0x80000, CRC(3e7e6c9f) SHA1(53a7c4422d9a7c63a21cf4d35d4d883dc2d0eac0) )
543
547
        ROM_LOAD( "2.u7", 0x080000, 0x80000, CRC(6339b62d) SHA1(160030e07600c8db365429c27a33081cfa7d3d61) )
544
548
        ROM_LOAD( "3.u4", 0x100000, 0x80000, CRC(ba636099) SHA1(3d3d9eee5d6808d7666dbf113d7c17a03b6b461e) )
586
590
        ROM_REGION( 0x1000000, "maincpu", 0 ) /* all the program code is in here */
587
591
        ROM_LOAD( "millsun_hd64f3337f16.mcu", 0x00000, 0x4000, NO_DUMP )
588
592
 
589
 
        ROM_REGION( 0x200000, "gfx1", 0 ) /* gfx seems 4bpp */
 
593
        ROM_REGION( 0x200000, "gfx1", 0 )
590
594
        ROM_LOAD( "msun_ep1.bin", 0x000000, 0x80000, CRC(06f10795) SHA1(f88a36e11f8ba38439aa066dc013427f204be3d7) )
591
595
        ROM_LOAD( "msun_ep2.bin", 0x080000, 0x80000, CRC(f85d10e6) SHA1(d33017c4a4883a4c9c76132deb5c57eb38f9fdb3) )
592
596
        ROM_LOAD( "msun_ep3.bin", 0x100000, 0x80000, CRC(329d380c) SHA1(618a7010fca8be6c368c3cc09fe129d8a4c72087) )
635
639
        ROM_REGION( 0x1000000, "maincpu", 0 ) /* all the program code is in here */
636
640
        ROM_LOAD( "sspac2k1_hd64f3337f16.mcu", 0x00000, 0x4000, NO_DUMP )
637
641
 
638
 
        ROM_REGION( 0x200000, "gfx1", 0 ) /* gfx seems 4bpp */
 
642
        ROM_REGION( 0x200000, "gfx1", 0 )
639
643
        ROM_LOAD( "sup_spaces_ep1.bin", 0x000000, 0x80000, CRC(d512ee80) SHA1(f113218899394bf1dfe81518746414c4eda9a94c) )
640
644
        ROM_LOAD( "sup_spaces_ep2.bin", 0x080000, 0x80000, CRC(775eb938) SHA1(a83851ea6d90aaf3cad064cdbcc8379eed3d90ca) )
641
645
        ROM_LOAD( "sup_spaces_ep3.bin", 0x100000, 0x80000, CRC(d1d9c06c) SHA1(64993b5572201cc2c29d8900a89f036e96221e05) )
725
729
        ROM_REGION( 0x1000000, "maincpu", 0 ) /* all the program code is in here */
726
730
        ROM_LOAD( "trstar2k_hd64f3337ycp16.mcu", 0x00000, 0x4000, NO_DUMP )
727
731
 
728
 
        ROM_REGION( 0x200000, "gfx1", 0 ) /* gfx seems 4bpp */
 
732
        ROM_REGION( 0x200000, "gfx1", 0 )
729
733
        ROM_LOAD( "ep1.bin", 0x000000, 0x80000, CRC(59394c87) SHA1(a8b5de197b474714a8e5a5c959b81cb78fc69291) )
730
734
        ROM_LOAD( "ep2.bin", 0x080000, 0x80000, CRC(80608870) SHA1(5af501e4bb9498d2b9b614cc98ec9f4c907f207d) )
731
735
        ROM_LOAD( "ep3.bin", 0x100000, 0x80000, CRC(cad4523f) SHA1(1a16f200622a8c9666beea2da2ec64bf7c9195a8) )
745
749
        ROM_REGION( 0x1000000, "maincpu", 0 ) /* all the program code is in here */
746
750
        ROM_LOAD( "sstar_hd64f3337cp16.mcu", 0x00000, 0x4000, NO_DUMP )
747
751
 
748
 
        ROM_REGION( 0x180000, "gfx1", 0 ) /* gfx seems 4bpp */
 
752
        ROM_REGION( 0x180000, "gfx1", 0 )
749
753
        ROM_LOAD( "sstar.ep1", 0x000000, 0x80000, CRC(e798295e) SHA1(ed9a0ceeaefccfb1bde5894548ba91d631055b69) ) //contains C-based strings?
750
754
        ROM_LOAD( "sstar.ep2", 0x080000, 0x80000, CRC(5e9fa33b) SHA1(5196723db69bf9f1df497f4d8f84ac1d9768736f) )
751
755
        ROM_LOAD( "sstar.ep3", 0x100000, 0x80000, CRC(67abc2a1) SHA1(877e233b2120281779a2480e8035a73df87e7240) )
754
758
        ROM_LOAD( "sstar.msg0", 0x00000, 0x20000, CRC(04f44a53) SHA1(0b27d1fe1992d1769abec2078defc30896c36bcb) )
755
759
ROM_END
756
760
 
 
761
/* Pirati
 
762
 
 
763
H8/337 HD64F3337CP16
 
764
16.000 MHz
 
765
14.31818 MHz
 
766
D7759GC
 
767
 
 
768
*/
 
769
 
 
770
ROM_START( pirati )
 
771
        ROM_REGION( 0x1000000, "maincpu", 0 ) /* all the program code is in here */
 
772
        ROM_LOAD( "pirati_hd64f3337cp16.mcu", 0x00000, 0x4000, NO_DUMP )
 
773
 
 
774
        ROM_REGION( 0x180000, "gfx1", 0 )
 
775
        ROM_LOAD( "s.ch.ep1", 0x000000, 0x80000, CRC(735d28a6) SHA1(feaf71b64db45e9dd68bff4daf75d3bd5e6ab6c8) )
 
776
        ROM_LOAD( "s.ch.ep2", 0x080000, 0x80000, CRC(35b75de6) SHA1(95c85c505ed0f3ddcc8c5d0d9e19128515840282) )
 
777
        ROM_LOAD( "s.ch.ep3", 0x100000, 0x80000, CRC(faff2daa) SHA1(ea7376d20d5ddd50c7a4b0c86d7998bcc0fa1598) )
 
778
 
 
779
        ROM_REGION( 0x20000, "upd", 0 ) /* NEC D7759GC samples */
 
780
        ROM_LOAD( "m.s.g.0", 0x00000, 0x20000, CRC(01ed1dcd) SHA1(69b0b4ff2633ca4ca7b3a01830582c8b6df059e8) )
 
781
ROM_END
 
782
 
 
783
 
757
784
/*************************
758
785
*      Game Drivers      *
759
786
*************************/
760
787
 
761
788
/*    YEAR  NAME      PARENT  MACHINE   INPUT     INIT ROT    COMPANY    FULLNAME                          FLAGS  */
762
 
GAME( 1999, ntcash,   0,      itgambl2, itgambl2, 0,   ROT0, "Unknown", "NtCash",                               GAME_NOT_WORKING )
763
 
GAME( 1999, wizard,   0,      itgambl2, itgambl2, 0,   ROT0, "A.A.",    "Wizard (Ver 1.0)",                     GAME_NOT_WORKING )
764
 
GAME( 200?, trstar2k, 0,      itgambl2, itgambl2, 0,   ROT0, "A.M.",    "Triple Star 2000",                     GAME_NOT_WORKING )
765
 
GAME( 2001, laser2k1, 0,      itgambl2, itgambl2, 0,   ROT0, "Unknown", "Laser 2001 (Ver 1.2)",                 GAME_NOT_WORKING )
766
 
GAME( 2001, mdrink,   0,      itgambl2, itgambl2, 0,   ROT0, "Unknown", "Magic Drink (Ver 1.2)",                GAME_NOT_WORKING )
767
 
GAME( 2001, te0144,   0,      itgambl2, itgambl2, 0,   ROT0, "Unknown", "Puzzle Bobble (Italian Gambling Game)",GAME_NOT_WORKING )
768
 
GAME( 200?, cmagica,  0,      itgambl2, itgambl2, 0,   ROT0, "Unknown", "Carta Magica (Ver 1.8)",               GAME_NOT_WORKING )
769
 
GAME( 200?, millsun,  0,      itgambl2, itgambl2, 0,   ROT0, "Unknown", "Millennium Sun",                       GAME_NOT_WORKING )
770
 
GAME( 200?, sspac2k1, 0,      itgambl2, itgambl2, 0,   ROT0, "Unknown", "Super Space 2001",                     GAME_NOT_WORKING )
771
 
GAME( 200?, elvis,    0,      itgambl2, itgambl2, 0,   ROT0, "Unknown", "Elvis?",                               GAME_NOT_WORKING )
772
 
GAME( 200?, sstar,    0,      itgambl2, itgambl2, 0,   ROT0, "Unknown", "Super Star",                           GAME_NOT_WORKING )
 
789
GAME( 1999, ntcash,   0,      itgambl2, itgambl2, 0,   ROT0, "<unknown>", "NtCash",                                GAME_NOT_WORKING )
 
790
GAME( 1999, wizard,   0,      itgambl2, itgambl2, 0,   ROT0, "A.A.",      "Wizard (Ver 1.0)",                      GAME_NOT_WORKING )
 
791
GAME( 200?, trstar2k, 0,      itgambl2, itgambl2, 0,   ROT0, "A.M.",      "Triple Star 2000",                      GAME_NOT_WORKING )
 
792
GAME( 2001, laser2k1, 0,      itgambl2, itgambl2, 0,   ROT0, "<unknown>", "Laser 2001 (Ver 1.2)",                  GAME_NOT_WORKING )
 
793
GAME( 2001, mdrink,   0,      itgambl2, itgambl2, 0,   ROT0, "<unknown>", "Magic Drink (Ver 1.2)",                 GAME_NOT_WORKING )
 
794
GAME( 2001, te0144,   0,      itgambl2, itgambl2, 0,   ROT0, "<unknown>", "Puzzle Bobble (Italian Gambling Game)", GAME_NOT_WORKING )
 
795
GAME( 200?, cmagica,  0,      itgambl2, itgambl2, 0,   ROT0, "<unknown>", "Carta Magica (Ver 1.8)",                GAME_NOT_WORKING )
 
796
GAME( 200?, millsun,  0,      itgambl2, itgambl2, 0,   ROT0, "<unknown>", "Millennium Sun",                        GAME_NOT_WORKING )
 
797
GAME( 200?, sspac2k1, 0,      itgambl2, itgambl2, 0,   ROT0, "<unknown>", "Super Space 2001",                      GAME_NOT_WORKING )
 
798
GAME( 200?, elvis,    0,      itgambl2, itgambl2, 0,   ROT0, "<unknown>", "Elvis?",                                GAME_NOT_WORKING )
 
799
GAME( 200?, sstar,    0,      itgambl2, itgambl2, 0,   ROT0, "<unknown>", "Super Star",                            GAME_NOT_WORKING )
 
800
GAME( 2001, pirati,   0,      itgambl2, itgambl2, 0,   ROT0, "Cin",       "Pirati",                                GAME_NOT_WORKING )