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

« back to all changes in this revision

Viewing changes to src/mame/drivers/starwars.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:
26
26
#include "cpu/m6809/m6809.h"
27
27
#include "video/vector.h"
28
28
#include "video/avgdvg.h"
29
 
#include "sound/5220intf.h"
 
29
#include "sound/tms5220.h"
30
30
#include "sound/pokey.h"
31
31
#include "starwars.h"
32
32
#include "slapstic.h"
211
211
 *
212
212
 *  Port definitions
213
213
 *
 
214
 *  Dips Manual Verified and Defaults
 
215
 *  set for starwars and esb - 06/2009
 
216
 *
214
217
 *************************************/
215
218
 
 
219
 
 
220
 
 
221
 
216
222
static INPUT_PORTS_START( starwars )
217
223
        PORT_START("IN0")
218
224
        PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN2 )
237
243
        PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM(matrix_flag_r, NULL)
238
244
 
239
245
        PORT_START("DSW0")
240
 
        PORT_DIPNAME( 0x03, 0x00, "Starting Shields" )
 
246
        PORT_DIPNAME( 0x03, 0x02, "Starting Shields" )  PORT_DIPLOCATION("10D:1,2")
241
247
        PORT_DIPSETTING(    0x00, "6" )
242
248
        PORT_DIPSETTING(    0x01, "7" )
243
249
        PORT_DIPSETTING(    0x02, "8" )
244
250
        PORT_DIPSETTING(    0x03, "9" )
245
 
        PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Difficulty ) )
 
251
        PORT_DIPNAME( 0x0c, 0x04, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("10D:3,4")
246
252
        PORT_DIPSETTING(    0x00, DEF_STR( Easy ) )
247
253
        PORT_DIPSETTING(    0x04, "Moderate" )
248
254
        PORT_DIPSETTING(    0x08, DEF_STR( Hard ) )
249
255
        PORT_DIPSETTING(    0x0c, DEF_STR( Hardest ) )
250
 
        PORT_DIPNAME( 0x30, 0x00, "Bonus Shields" )
 
256
        PORT_DIPNAME( 0x30, 0x10, "Bonus Shields" )  PORT_DIPLOCATION("10D:5,6")
251
257
        PORT_DIPSETTING(    0x00, "0" )
252
258
        PORT_DIPSETTING(    0x10, "1" )
253
259
        PORT_DIPSETTING(    0x20, "2" )
254
260
        PORT_DIPSETTING(    0x30, "3" )
255
 
        PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) )
 
261
        PORT_DIPNAME( 0x40, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("10D:7")
256
262
        PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
257
263
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
258
 
        PORT_DIPNAME( 0x80, 0x80, "Freeze" )
 
264
        PORT_DIPNAME( 0x80, 0x80, "Freeze" )  PORT_DIPLOCATION("10D:8")
259
265
        PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
260
266
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
261
267
 
262
268
        PORT_START("DSW1")
263
 
        PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coinage ) )
 
269
        PORT_DIPNAME( 0x03, 0x02, DEF_STR( Coinage ) )  PORT_DIPLOCATION("10EF:1,2")
264
270
        PORT_DIPSETTING(    0x03, DEF_STR( 2C_1C ) )
265
271
        PORT_DIPSETTING(    0x02, DEF_STR( 1C_1C ) )
266
272
        PORT_DIPSETTING(    0x01, DEF_STR( 1C_2C ) )
267
273
        PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
268
 
        PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) )
 
274
        /* Manual shows Coin_B (Right) as Bit 4,5 - actually Bit 3,4 */
 
275
        PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Coin_B ) )  PORT_DIPLOCATION("10EF:3,4")
269
276
        PORT_DIPSETTING(    0x00, "*1" )
270
277
        PORT_DIPSETTING(    0x04, "*4" )
271
278
        PORT_DIPSETTING(    0x08, "*5" )
272
279
        PORT_DIPSETTING(    0x0c, "*6" )
273
 
        PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coin_A ) )
 
280
        /* Manual shows Coin_A (Left) as Bit 3 - actually Bit 5 */
 
281
        PORT_DIPNAME( 0x10, 0x00, DEF_STR( Coin_A ) )  PORT_DIPLOCATION("10EF:5")
274
282
        PORT_DIPSETTING(    0x00, "*1" )
275
283
        PORT_DIPSETTING(    0x10, "*2" )
276
 
        PORT_DIPNAME( 0xe0, 0x00, "Bonus Coinage" )
 
284
        PORT_DIPNAME( 0xe0, 0x00, "Bonus Coin Adder" )  PORT_DIPLOCATION("10EF:6,7,8")
277
285
        PORT_DIPSETTING(    0x20, "2 gives 1" )
278
286
        PORT_DIPSETTING(    0x60, "4 gives 2" )
279
287
        PORT_DIPSETTING(    0xa0, "3 gives 1" )
282
290
        PORT_DIPSETTING(    0x00, DEF_STR( None ) )
283
291
        /* 0xc0 and 0xe0 None */
284
292
 
 
293
 
285
294
        PORT_START("STICKY")
286
295
        PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(70) PORT_KEYDELTA(30)
287
296
 
294
303
        PORT_INCLUDE( starwars )
295
304
 
296
305
        PORT_MODIFY("DSW0")
297
 
        PORT_DIPNAME( 0x03, 0x03, "Starting Shields" )
 
306
        PORT_DIPNAME( 0x03, 0x03, "Starting Shields" )  PORT_DIPLOCATION("10D:1,2")
298
307
        PORT_DIPSETTING(    0x01, "2" )
299
308
        PORT_DIPSETTING(    0x00, "3" )
300
309
        PORT_DIPSETTING(    0x03, "4" )
301
310
        PORT_DIPSETTING(    0x02, "5" )
302
 
        PORT_DIPNAME( 0x30, 0x30, "Jedi-Letter Mode" )
 
311
        PORT_DIPNAME( 0x30, 0x30, "Jedi-Letter Mode" )  PORT_DIPLOCATION("10D:5,6")
303
312
        PORT_DIPSETTING(    0x00, "Level Only" )
304
313
        PORT_DIPSETTING(    0x10, "Level" )
305
314
        PORT_DIPSETTING(    0x20, "Increment Only" )
367
376
 *
368
377
 *************************************/
369
378
 
370
 
ROM_START( starwar1 )
 
379
ROM_START( starwars1 )
371
380
        ROM_REGION( 0x12000, "maincpu", 0 )     /* 2 64k ROM spaces */
372
381
        ROM_LOAD( "136021.105",   0x3000, 0x1000, CRC(538e7d2f) SHA1(032c933fd94a6b0b294beee29159a24494ae969b) ) /* 3000-3fff is 4k vector rom */
373
382
        ROM_LOAD( "136021.114",   0x6000, 0x2000, CRC(e75ff867) SHA1(3a40de920c31ffa3c3e67f3edf653b79fcc5ddd7) )   /* ROM 0 bank pages 0 and 1 */
554
563
 *************************************/
555
564
 
556
565
GAME( 1983, starwars, 0,        starwars, starwars, starwars, ROT0, "Atari", "Star Wars (rev 2)", 0 )
557
 
GAME( 1983, starwar1, starwars, starwars, starwars, starwars, ROT0, "Atari", "Star Wars (rev 1)", 0 )
 
566
GAME( 1983, starwars1,starwars, starwars, starwars, starwars, ROT0, "Atari", "Star Wars (rev 1)", 0 )
558
567
GAME( 1983, tomcatsw, tomcat,   starwars, starwars, starwars, ROT0, "Atari", "TomCat (Star Wars hardware, prototype)", GAME_NO_SOUND )
559
568
GAME( 1985, esb,      0,        starwars, esb,      esb,      ROT0, "Atari Games", "The Empire Strikes Back", 0 )