~ubuntu-branches/ubuntu/precise/mame/precise-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Cesare Falco
  • Date: 2011-11-30 18:50:10 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111130185010-02hcxybht1mn082w
Tags: 0.144-0ubuntu1
* New upstream release (LP: #913550)
* mame.install:
  - Added artwork/ images to be used with -effect switch
  - Be more selective with hash/ contents
* contrib/mame.ini: added /usr/share/games/mame/artwork/ to artpath

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
data together to give 6bpp.. we cheat by using a custom function in
153
153
konamiic.c and a fixed 6bpp decode.
154
154
 
155
 
japanese version scroll / mirror / guns not set up correctly
156
 
 
157
 
guns might be slightly off center
158
 
 
159
 
'external' rowscroll not hooked up correctly (1st attract level, highscores)
160
 
 
161
 
maybe some priority issues / sprite placement issues..
 
155
mirror not set up correctly
 
156
 
 
157
maybe some sprite placement issues
162
158
 
163
159
***************************************************************************/
164
160
 
181
177
#define GUNX( a ) (( ( input_port_read(space->machine(), gunnames[2 * (a - 1)]) * 287 ) / 0xff ) + 16)
182
178
#define GUNY( a ) (( ( input_port_read(space->machine(), gunnames[2 * (a - 1) + 1]) * 223 ) / 0xff ) + 10)
183
179
 
184
 
 
185
 
/* Default Eeprom for the parent.. otherwise it will always complain first boot */
186
 
/* its easy to init but this saves me a bit of time.. */
187
 
static const UINT8 lethalen_default_eeprom[48] = {
188
 
        0x02, 0x1E, 0x00, 0x00, 0x39, 0x31, 0x39, 0x31, 0x55, 0x45, 0x77, 0x00, 0x00, 0x00, 0x00, 0x01,
189
 
        0x02, 0x01, 0x00, 0x03, 0x05, 0x01, 0x01, 0x02, 0x28, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
190
 
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
191
 
};
192
 
 
193
180
static const eeprom_interface eeprom_intf =
194
181
{
195
182
        7,                      /* address bits */
444
431
                case 0:
445
432
                        return GUNX(1) >> 1;
446
433
                case 1:
447
 
                        if ((240 - GUNY(1)) == 7)
 
434
                        if ((GUNY(1)<=0x0b) || (GUNY(1)>=0xe8))
448
435
                                return 0;
449
436
                        else
450
 
                                return (240 - GUNY(1));
 
437
                                return (232 - GUNY(1));
451
438
                        break;
452
439
                case 2:
453
440
                        return GUNX(2) >> 1;
454
441
                case 3:
455
 
                        if ((240 - GUNY(2)) == 7)
 
442
                        if ((GUNY(2)<=0x0b) || (GUNY(2)>=0xe8))
456
443
                                return 0;
457
444
                        else
458
 
                                return (240 - GUNY(2));
 
445
                                return (232 - GUNY(2));
459
446
                        break;
460
447
        }
461
448
 
675
662
        MCFG_MACHINE_RESET(lethalen)
676
663
 
677
664
        MCFG_EEPROM_ADD("eeprom", eeprom_intf)
678
 
        MCFG_EEPROM_DATA(lethalen_default_eeprom, 48)
679
665
 
680
666
        MCFG_GFXDECODE(lethal)
681
667
 
950
936
GAME( 1992, lethalenux, lethalen, lethalen, lethalen, lethalen, ORIENTATION_FLIP_Y, "Konami", "Lethal Enforcers (ver unknown, US, 08/06/92 15:11, hacked/proto?)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) // writes UA to eeprom but earlier than suspected UAA set, might be a proto, might be hacked, fails rom test, definitely a good dump, another identical set was found in Italy
951
937
GAME( 1992, lethaleneab,lethalen, lethalen, lethalen, lethalen, ORIENTATION_FLIP_Y, "Konami", "Lethal Enforcers (ver EAB, 10/14/92 19:53)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) // writes EC to eeprom?!
952
938
GAME( 1992, lethaleneae,lethalen, lethalen, lethalen, lethalen, ORIENTATION_FLIP_Y, "Konami", "Lethal Enforcers (ver EAE, 11/19/92 16:24)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) // writes EE to eeprom
953
 
// different mirror / display setup, shoot off the top of the screen to reload..
 
939
// different mirror / display setup
954
940
GAME( 1992, lethalenj,  lethalen, lethalej, lethalej, lethalen, ORIENTATION_FLIP_X, "Konami", "Lethal Enforcers (ver JAD, 12/04/92 17:16)", GAME_IMPERFECT_GRAPHICS | GAME_SUPPORTS_SAVE ) // writes JC to eeprom?!