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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
    Toaplan Board Number:   TP-009
11
11
    Taito Game Number:      B25
12
 
        Wardners Forest (World)
 
12
        Wardner         (World)
13
13
        Pyros           (USA)
14
 
        Wardna no Mori  (Japan)
 
14
        Wardner no Mori (Japan)
15
15
 
16
16
Notes:
17
 
        Basically the same video and machine hardware as Flying shark,
 
17
        Basically the same video and machine hardware as Flying Shark,
18
18
          except for the Main CPU which is a Z80 here.
19
19
        See twincobr.c machine and video drivers to complete the
20
20
          hardware setup.
21
21
        To enter the "test mode", press START1 when the grid is displayed.
22
 
        Press F1 (initially P1 button 3) on startup to skip some video RAM tests
 
22
        Press 0 (actually P1 button 3) on startup to skip some video RAM tests
23
23
        (code at 0x6d25 in 'wardner', 0x6d2f in 'wardnerj' or 0x6d2c in 'pyros').
24
24
 
25
25
**************************** Memory & I/O Maps *****************************
28
28
7000-7fff Main RAM
29
29
8000-ffff Level and scenery ROMS. This is banked with the following
30
30
8000-8fff Sprite RAM
31
 
a000-adff Pallette RAM
32
 
ae00-afff Spare unused, but tested Pallette RAM
 
31
a000-adff Palette RAM
 
32
ae00-afff Spare unused, but tested Palette RAM
33
33
c000-c7ff Sound RAM - shared with C000-C7FF in Z80(1) RAM
34
34
 
35
35
in:
108
108
 
109
109
 
110
110
 
111
 
TMS320C10 DSP: Harvard type architecture. RAM and ROM on seperate data buses.
 
111
TMS320C10 DSP: Harvard type architecture. RAM and ROM on separate data buses.
112
112
0000-05ff ROM 16-bit opcodes (word access only).
113
113
0000-0090 Internal RAM (words).
114
114
 
275
275
 
276
276
/* verified from Z80 code */
277
277
static INPUT_PORTS_START( wardner_generic )
278
 
        PORT_START("DSWA")
279
 
        TOAPLAN_MACHINE_COCKTAIL
280
 
        TOAPLAN_COINAGE_WORLD
281
 
 
282
 
        PORT_START("DSWB")
283
 
        TOAPLAN_DIFFICULTY
284
 
        PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) )       /* table at 0x13ce ('wardner') or 0x13de ('wardnerj') */
285
 
        PORT_DIPSETTING(        0x00, "30k 80k 50k+" )
286
 
        PORT_DIPSETTING(        0x04, "50k 100k 50k+" )
287
 
        PORT_DIPSETTING(        0x08, "30k Only" )
288
 
        PORT_DIPSETTING(        0x0c, "50k Only" )
289
 
        PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) )
290
 
        PORT_DIPSETTING(        0x30, "1" )
291
 
        PORT_DIPSETTING(        0x00, "3" )
292
 
        PORT_DIPSETTING(        0x10, "4" )
293
 
        PORT_DIPSETTING(        0x20, "5" )
294
 
        PORT_DIPUNUSED( 0x40, IP_ACTIVE_HIGH )
295
 
        PORT_DIPUNUSED( 0x80, IP_ACTIVE_HIGH )
296
 
 
297
278
        PORT_START("P1")
298
279
        TOAPLAN_JOY_UDLR_2_BUTTONS( 1 )                         /* buttons 3 & 4 named "SHOTC" and "SHOTD" in "test mode" */
299
280
 
303
284
        PORT_START("SYSTEM")
304
285
        PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE1 )
305
286
        PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_TILT )
306
 
        PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_UNUSED )            /* "TEST" in "test mode" - no effect outside */
 
287
        TOAPLAN_TEST_SWITCH( 0x04, IP_ACTIVE_HIGH )             /* "TEST" in "test mode" */
307
288
        PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN1 )
308
289
        PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN2 )
309
290
        PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START1 )
310
291
        PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START2 )
311
292
        PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_VBLANK )            /* "V-BLANKING" in "test mode" */
 
293
 
 
294
        PORT_START("DSWA")
 
295
        TOAPLAN_MACHINE_COCKTAIL_LOC(SW1)
 
296
        TOAPLAN_COINAGE_WORLD_LOC(SW1)
 
297
 
 
298
        PORT_START("DSWB")
 
299
        TOAPLAN_DIFFICULTY_LOC(SW2)
 
300
        PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:!3,!4") /* table at 0x13ce ('wardner') or 0x13de ('wardnerj') */
 
301
        PORT_DIPSETTING(        0x00, "30k 80k 50k+" )
 
302
        PORT_DIPSETTING(        0x04, "50k 100k 50k+" )
 
303
        PORT_DIPSETTING(        0x08, "30k Only" )
 
304
        PORT_DIPSETTING(        0x0c, "50k Only" )
 
305
        PORT_DIPNAME( 0x30, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:!5,!6")
 
306
        PORT_DIPSETTING(        0x30, "1" )
 
307
        PORT_DIPSETTING(        0x00, "3" )
 
308
        PORT_DIPSETTING(        0x10, "4" )
 
309
        PORT_DIPSETTING(        0x20, "5" )
 
310
        PORT_DIPUNUSED_DIPLOC( 0x40, IP_ACTIVE_HIGH, "SW2:!7" )
 
311
        PORT_DIPUNUSED_DIPLOC( 0x80, IP_ACTIVE_HIGH, "SW2:!8" )
312
312
INPUT_PORTS_END
313
313
 
314
314
/* verified from Z80 code */
316
316
        PORT_INCLUDE( wardner_generic )
317
317
 
318
318
        PORT_MODIFY("P1")
319
 
        PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Skip Video RAM Tests") PORT_CODE(KEYCODE_F1)
 
319
        PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_OTHER ) PORT_NAME("Skip Video RAM Tests") PORT_CODE(KEYCODE_0)
 
320
        /* actually player 1 button 3 - not used in gameplay */
320
321
        /* code at 0x6d25 ('wardner'), 0x6d2f ('wardnerj') or 0x6d2c ('pyros') */
321
322
INPUT_PORTS_END
322
323
 
325
326
        PORT_INCLUDE( wardner )
326
327
 
327
328
        PORT_MODIFY("DSWA")
328
 
        TOAPLAN_COINAGE_JAPAN_OLD
 
329
        TOAPLAN_COINAGE_JAPAN_LOC(SW1)
329
330
INPUT_PORTS_END
330
331
 
331
332
/* verified from Z80 code */
333
334
        PORT_INCLUDE( wardnerj )
334
335
 
335
336
        PORT_MODIFY("DSWB")
336
 
        PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) )       /* table at 0x13ce */
 
337
        PORT_DIPNAME( 0x0c, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW2:!3,!4") /* table at 0x13ce */
337
338
        PORT_DIPSETTING(        0x00, "30k 80k 50k+" )
338
339
        PORT_DIPSETTING(        0x04, "50k 100k 50k+" )
339
340
        PORT_DIPSETTING(        0x08, "50k Only" )
340
341
        PORT_DIPSETTING(        0x0c, "100k Only" )
341
 
        PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) )   /* additional code at 0x6037 */
 
342
        PORT_DIPNAME( 0x40, 0x00, DEF_STR( Allow_Continue ) ) PORT_DIPLOCATION("SW2:!7")   /* additional code at 0x6037 */
342
343
        PORT_DIPSETTING(        0x40, DEF_STR( No ) )
343
344
        PORT_DIPSETTING(        0x00, DEF_STR( Yes ) )
344
345
INPUT_PORTS_END