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

« back to all changes in this revision

Viewing changes to src/mame/drivers/hcastle.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:
62
62
        AM_RANGE(0x0411, 0x0411) AM_READ_PORT("P1")
63
63
        AM_RANGE(0x0412, 0x0412) AM_READ_PORT("P2")
64
64
        AM_RANGE(0x0413, 0x0413) AM_READ_PORT("DSW3")
65
 
        AM_RANGE(0x0414, 0x0414) AM_READ_PORT("DSW2")
66
 
        AM_RANGE(0x0415, 0x0415) AM_READ_PORT("DSW1")
 
65
        AM_RANGE(0x0414, 0x0414) AM_READ_PORT("DSW1")
 
66
        AM_RANGE(0x0415, 0x0415) AM_READ_PORT("DSW2")
67
67
        AM_RANGE(0x0418, 0x0418) AM_READWRITE(hcastle_gfxbank_r, hcastle_gfxbank_w)
68
68
        AM_RANGE(0x0600, 0x06ff) AM_RAM AM_BASE(&paletteram)
69
69
        AM_RANGE(0x0700, 0x1fff) AM_RAM
110
110
        KONAMI8_COCKTAIL_B12_UNK
111
111
 
112
112
        PORT_START("DSW1")
113
 
        PORT_DIPNAME( 0x01, 0x01, "Unused SW 1-0" )
114
 
        PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
115
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
116
 
        PORT_DIPNAME( 0x02, 0x02, "Unused SW 1-1" )
117
 
        PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
118
 
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
119
 
        PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) )
 
113
        KONAMI_COINAGE_LOC(DEF_STR( Free_Play ), "Invalid", SW1)
 
114
        /* "Invalid" = both coin slots disabled */
 
115
 
 
116
        PORT_START("DSW2")
 
117
        PORT_DIPUNUSED_DIPLOC( 0x01, 0x01, "SW2:1" )            /* Listed as "Unused" */
 
118
        PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW2:2" )            /* Listed as "Unused" */
 
119
        PORT_DIPNAME( 0x04, 0x00, DEF_STR( Cabinet ) )          PORT_DIPLOCATION("SW2:3")
120
120
        PORT_DIPSETTING(    0x00, DEF_STR( Upright ) )
121
121
        PORT_DIPSETTING(    0x04, DEF_STR( Cocktail ) )
122
 
        PORT_DIPNAME( 0x18, 0x10, DEF_STR( Difficulty ) )       // "Difficulty 1"
123
 
        PORT_DIPSETTING(    0x18, DEF_STR( Easy ) )                     // DEF_STR( Easy )
124
 
        PORT_DIPSETTING(    0x10, DEF_STR( Normal ) )           // "Nomal" !
125
 
        PORT_DIPSETTING(    0x08, DEF_STR( Hard ) )                     // "Difficult"
126
 
        PORT_DIPSETTING(    0x00, DEF_STR( Hardest ) )          // "Very Difficult"
127
 
        PORT_DIPNAME( 0x60, 0x40, "Damage" )                            // "Difficulty 2"
128
 
        PORT_DIPSETTING(    0x60, "Small" )                                     // "Strong"
129
 
        PORT_DIPSETTING(    0x40, DEF_STR( Normal ) )           // "Nomal" !
130
 
        PORT_DIPSETTING(    0x20, "Big" )                                       // "Weak"
131
 
        PORT_DIPSETTING(    0x00, "Biggest" )                           // "Very Weak"
132
 
        PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) )
 
122
        PORT_DIPNAME( 0x18, 0x10, "Difficulty 1 (Game)" )               PORT_DIPLOCATION("SW2:4,5")     /* Overall difficulty of game */
 
123
        PORT_DIPSETTING(    0x18, DEF_STR( Easy ) )
 
124
        PORT_DIPSETTING(    0x10, DEF_STR( Normal ) )
 
125
        PORT_DIPSETTING(    0x08, DEF_STR( Difficult ) )
 
126
        PORT_DIPSETTING(    0x00, DEF_STR( Very_Difficult ) )
 
127
        PORT_DIPNAME( 0x60, 0x40, "Difficulty 2 (Strength)" )           PORT_DIPLOCATION("SW2:6,7")     /* Listed in manual as "Strength of Player" */
 
128
        PORT_DIPSETTING(    0x00, "Very Weak" )                                                 /* Takes most damage per hit */
 
129
        PORT_DIPSETTING(    0x20, "Weak" )                                                      /* Takes more damage per hit */
 
130
        PORT_DIPSETTING(    0x40, DEF_STR( Normal ) )                                           /* Takes average damage per hit */
 
131
        PORT_DIPSETTING(    0x60, "Strong" )                                                    /* Takes least damage per hit */
 
132
        PORT_DIPNAME( 0x80, 0x00, DEF_STR( Demo_Sounds ) )      PORT_DIPLOCATION("SW2:8")
133
133
        PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
134
134
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
135
135
 
136
 
        PORT_START("DSW2")
137
 
        KONAMI_COINAGE(DEF_STR( Free_Play ), "Invalid")
138
 
        /* "Invalid" = both coin slots disabled */
139
 
 
140
136
        PORT_START("DSW3")
141
 
        PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) )
 
137
        PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) )      PORT_DIPLOCATION("SW3:1")
142
138
        PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
143
139
        PORT_DIPSETTING(    0x00, DEF_STR( On ) )
144
 
        PORT_DIPNAME( 0x02, 0x02, "Upright Controls" )
 
140
        PORT_DIPNAME( 0x02, 0x02, "Upright Controls" )          PORT_DIPLOCATION("SW3:2")
145
141
        PORT_DIPSETTING(    0x02, DEF_STR( Single ) )
146
142
        PORT_DIPSETTING(    0x00, DEF_STR( Dual ) )
147
 
        PORT_SERVICE( 0x04, IP_ACTIVE_LOW )
148
 
        PORT_DIPNAME( 0x08, 0x08, DEF_STR( Allow_Continue ) )
 
143
        PORT_SERVICE_DIPLOC(  0x04, IP_ACTIVE_LOW, "SW3:3" )
 
144
        PORT_DIPNAME( 0x08, 0x08, DEF_STR( Allow_Continue ) )   PORT_DIPLOCATION("SW3:4")
149
145
        PORT_DIPSETTING(    0x00, DEF_STR( No ) )
150
 
        PORT_DIPSETTING(    0x08, DEF_STR( Yes ) )
 
146
        PORT_DIPSETTING(    0x08, "Up to 3 Times" )
151
147
        PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
152
148
INPUT_PORTS_END
153
149
 
245
241
        ROM_REGION( 0x10000, "audiocpu", 0 )
246
242
        ROM_LOAD( "768.e01",      0x00000, 0x08000, CRC(b9fff184) SHA1(c55f468c0da6afdaa2af65a111583c0c42868bd1) )
247
243
 
248
 
        ROM_REGION( 0x100000, "gfx1", ROMREGION_DISPOSE )
 
244
        ROM_REGION( 0x100000, "gfx1", 0 )
249
245
        ROM_LOAD( "768c09.g21",   0x000000, 0x80000, CRC(e3be3fdd) SHA1(01a686af33a0a700066b1a5334d8552454ff186f) )
250
246
        ROM_LOAD( "768c08.g19",   0x080000, 0x80000, CRC(9633db8b) SHA1(fe1b117c2566288b88f000106c649c2fa5648ddc) )
251
247
 
252
 
        ROM_REGION( 0x100000, "gfx2", ROMREGION_DISPOSE )
 
248
        ROM_REGION( 0x100000, "gfx2", 0 )
253
249
        ROM_LOAD( "768c04.j5",    0x000000, 0x80000, CRC(2960680e) SHA1(72e1f025496c907de8516e3b5f1781e73d5b2c6c) )
254
250
        ROM_LOAD( "768c05.j6",    0x080000, 0x80000, CRC(65a2f227) SHA1(43f368e533d6a164dc68d54130b81883e0d1bafe) )
255
251
 
272
268
        ROM_REGION( 0x10000, "audiocpu", 0 )
273
269
        ROM_LOAD( "768.e01",      0x00000, 0x08000, CRC(b9fff184) SHA1(c55f468c0da6afdaa2af65a111583c0c42868bd1) )
274
270
 
275
 
        ROM_REGION( 0x100000, "gfx1", ROMREGION_DISPOSE )
 
271
        ROM_REGION( 0x100000, "gfx1", 0 )
276
272
        ROM_LOAD( "768c09.g21",   0x000000, 0x80000, CRC(e3be3fdd) SHA1(01a686af33a0a700066b1a5334d8552454ff186f) )
277
273
        ROM_LOAD( "768c08.g19",   0x080000, 0x80000, CRC(9633db8b) SHA1(fe1b117c2566288b88f000106c649c2fa5648ddc) )
278
274
 
279
 
        ROM_REGION( 0x100000, "gfx2", ROMREGION_DISPOSE )
 
275
        ROM_REGION( 0x100000, "gfx2", 0 )
280
276
        ROM_LOAD( "768c04.j5",    0x000000, 0x80000, CRC(2960680e) SHA1(72e1f025496c907de8516e3b5f1781e73d5b2c6c) )
281
277
        ROM_LOAD( "768c05.j6",    0x080000, 0x80000, CRC(65a2f227) SHA1(43f368e533d6a164dc68d54130b81883e0d1bafe) )
282
278
 
299
295
        ROM_REGION( 0x10000, "audiocpu", 0 )
300
296
        ROM_LOAD( "768.e01",   0x00000, 0x08000, CRC(b9fff184) SHA1(c55f468c0da6afdaa2af65a111583c0c42868bd1) )
301
297
 
302
 
        ROM_REGION( 0x100000, "gfx1", ROMREGION_DISPOSE )
 
298
        ROM_REGION( 0x100000, "gfx1", 0 )
303
299
        ROM_LOAD( "768c09.g21",   0x000000, 0x80000, CRC(e3be3fdd) SHA1(01a686af33a0a700066b1a5334d8552454ff186f) )
304
300
        ROM_LOAD( "768c08.g19",   0x080000, 0x80000, CRC(9633db8b) SHA1(fe1b117c2566288b88f000106c649c2fa5648ddc) )
305
301
 
306
 
        ROM_REGION( 0x100000, "gfx2", ROMREGION_DISPOSE )
 
302
        ROM_REGION( 0x100000, "gfx2", 0 )
307
303
        ROM_LOAD( "768c04.j5",    0x000000, 0x80000, CRC(2960680e) SHA1(72e1f025496c907de8516e3b5f1781e73d5b2c6c) )
308
304
        ROM_LOAD( "768c05.j6",    0x080000, 0x80000, CRC(65a2f227) SHA1(43f368e533d6a164dc68d54130b81883e0d1bafe) )
309
305
 
326
322
        ROM_REGION( 0x10000, "audiocpu", 0 )
327
323
        ROM_LOAD( "768.e01",   0x00000, 0x08000, CRC(b9fff184) SHA1(c55f468c0da6afdaa2af65a111583c0c42868bd1) )
328
324
 
329
 
        ROM_REGION( 0x100000, "gfx1", ROMREGION_DISPOSE )
 
325
        ROM_REGION( 0x100000, "gfx1", 0 )
330
326
        ROM_LOAD( "768c09.g21",   0x000000, 0x80000, CRC(e3be3fdd) SHA1(01a686af33a0a700066b1a5334d8552454ff186f) )
331
327
        ROM_LOAD( "768c08.g19",   0x080000, 0x80000, CRC(9633db8b) SHA1(fe1b117c2566288b88f000106c649c2fa5648ddc) )
332
328
 
333
 
        ROM_REGION( 0x100000, "gfx2", ROMREGION_DISPOSE )
 
329
        ROM_REGION( 0x100000, "gfx2", 0 )
334
330
        ROM_LOAD( "768c04.j5",    0x000000, 0x80000, CRC(2960680e) SHA1(72e1f025496c907de8516e3b5f1781e73d5b2c6c) )
335
331
        ROM_LOAD( "768c05.j6",    0x080000, 0x80000, CRC(65a2f227) SHA1(43f368e533d6a164dc68d54130b81883e0d1bafe) )
336
332