Previous 199869 Revisions Next

r32665 Saturday 11th October, 2014 at 20:34:18 UTC by David Haywood
make pengojpm do more (nw)
[src/mame/drivers]pacman.c

trunk/src/mame/drivers/pacman.c
r32664r32665
13181318
13191319
13201320static ADDRESS_MAP_START( pengojpm_map, AS_PROGRAM, 8, pacman_state )
1321   AM_RANGE(0x0000, 0x7fff) AM_ROM
1321   AM_RANGE(0x0000, 0x0fff) AM_ROM
1322   AM_RANGE(0x4000, 0x7fff) AM_ROM
13221323
13231324   AM_RANGE(0x8000, 0x83ff) AM_RAM_WRITE(pacman_videoram_w) AM_SHARE("videoram")
13241325   AM_RANGE(0x8400, 0x87ff) AM_RAM_WRITE(pacman_colorram_w) AM_SHARE("colorram")
1325   AM_RANGE(0x8800, 0x8bff) AM_READ(pacman_read_nop) AM_WRITENOP
1326
1327   AM_RANGE(0x8800, 0x8bff) AM_RAM
1328//   AM_RANGE(0x8800, 0x8bff) AM_READ(pacman_read_nop) AM_WRITENOP
13261329   AM_RANGE(0x8c00, 0x8fef) AM_RAM
13271330   AM_RANGE(0x8ff0, 0x8fff) AM_RAM AM_SHARE("spriteram")
13281331   AM_RANGE(0x9000, 0x9000) AM_WRITE(irq_mask_w)
r32664r32665
32653268INPUT_PORTS_END
32663269
32673270
3271static INPUT_PORTS_START( pengojpm )
3272   PORT_START("IN0")
3273   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )    PORT_PLAYER(1) PORT_4WAY
3274   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )  PORT_PLAYER(1) PORT_4WAY
3275   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_4WAY
3276   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )  PORT_PLAYER(1) PORT_4WAY
3277   PORT_DIPNAME(0x10, 0x10, "Rack Test (Cheat)" ) PORT_CODE(KEYCODE_F1)
3278   PORT_DIPSETTING(   0x10, DEF_STR( Off ) )
3279   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
3280   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN1 )
3281   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 )
3282   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )
32683283
3284   PORT_START("IN1")
3285   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )    PORT_PLAYER(2) PORT_4WAY PORT_COCKTAIL
3286   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )  PORT_PLAYER(2) PORT_4WAY PORT_COCKTAIL
3287   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2) PORT_4WAY PORT_COCKTAIL
3288   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )  PORT_PLAYER(2) PORT_4WAY PORT_COCKTAIL
3289   PORT_SERVICE( 0x10, IP_ACTIVE_LOW )
3290   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 )
3291   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_START2 )
3292   PORT_DIPNAME(0x80, 0x80, DEF_STR( Cabinet ) )
3293   PORT_DIPSETTING(   0x80, DEF_STR( Upright ) )
3294   PORT_DIPSETTING(   0x00, DEF_STR( Cocktail ) )
3295
3296   PORT_START("DSW1")
3297   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
3298   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
3299   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3300   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
3301   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
3302   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3303   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
3304   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
3305   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3306   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
3307   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
3308   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3309   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
3310   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
3311   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3312   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
3313   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
3314   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3315   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
3316   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
3317   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3318   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
3319   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
3320   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3321
3322   PORT_START("DSW2")
3323   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
3324   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
3325   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3326   PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
3327   PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
3328   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3329   PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
3330   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
3331   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3332   PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
3333   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
3334   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3335   PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
3336   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
3337   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3338   PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
3339   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
3340   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3341   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
3342   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
3343   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3344   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
3345   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
3346   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3347INPUT_PORTS_END
3348
3349
32693350/*************************************
32703351 *
32713352 *  Graphics layouts
r32664r32665
41044185
41054186ROM_START( pengojpm )
41064187   ROM_REGION( 0x10000, "maincpu", 0 )
4107   ROM_LOAD( "pengo1.bin",      0x0000, 0x1000, CRC(1519d59b) SHA1(13b99780fcccac61b16201500e309c9b442406c8) )
4108   ROM_RELOAD(0x4000,0x1000)
4109   ROM_LOAD( "pengo2.bin",      0x1000, 0x1000, CRC(1b90c32c) SHA1(1761add93d71d29840b1462b9747a3d463b7148d) )
4110   ROM_RELOAD(0x5000,0x1000)
4111   ROM_LOAD( "pengo3.bin",      0x2000, 0x1000, CRC(aff4fba1) SHA1(8083352b3a2a4a70b2db778074826a55177e06ab) )
4112   ROM_RELOAD(0x6000,0x1000)
4113   ROM_LOAD( "pengo4.bin",      0x3000, 0x1000, CRC(1628eb6d) SHA1(44bd9d30828bb2440599fcd4a46f20fd798c24d5) )
4114   ROM_RELOAD(0x7000,0x1000)
4115
4116   ROM_LOAD( "pengo5.bin",      0xd000, 0x0800, CRC(7458f816) SHA1(bc5d3a4f374d5b93aefa7378eae1492956cca6af) )
4188   ROM_LOAD( "pengo5.bin",      0x0800, 0x0800, CRC(7458f816) SHA1(bc5d3a4f374d5b93aefa7378eae1492956cca6af) )
41174189   ROM_CONTINUE(0x000,0x800) // this contains z80 interrupt stuff? does it get banked in at 0?
4190   ROM_LOAD( "pengo1.bin",      0x4000, 0x1000, CRC(1519d59b) SHA1(13b99780fcccac61b16201500e309c9b442406c8) )
4191   ROM_LOAD( "pengo2.bin",      0x5000, 0x1000, CRC(1b90c32c) SHA1(1761add93d71d29840b1462b9747a3d463b7148d) )
4192   ROM_LOAD( "pengo3.bin",      0x6000, 0x1000, CRC(aff4fba1) SHA1(8083352b3a2a4a70b2db778074826a55177e06ab) )
4193   ROM_LOAD( "pengo4.bin",      0x7000, 0x1000, CRC(1628eb6d) SHA1(44bd9d30828bb2440599fcd4a46f20fd798c24d5) )
41184194
4195
41194196   ROM_REGION( 0x2000, "gfx1", 0 )
41204197   ROM_LOAD( "pengoa.bin",      0x0000, 0x0800, CRC(ad88978a) SHA1(a568baf751753660223958b722980f031310eba1) )
41214198   ROM_LOAD( "pengob.bin",      0x0800, 0x0800, CRC(bae319a3) SHA1(88f0562ba2501f16ddfaffb12c4d1c00315f4225) )
r32664r32665
66606737GAME( 1999, superabc, 0,        superabc, superabc, pacman_state,  superabc, ROT90,  "hack (Two-Bit Score)", "Super ABC (Pac-Man multigame kit, Sep. 03 1999)", GAME_SUPPORTS_SAVE )
66616738GAME( 1999, superabco,superabc, superabc, superabc, pacman_state,  superabc, ROT90,  "hack (Two-Bit Score)", "Super ABC (Pac-Man multigame kit, Mar. 08 1999)", GAME_SUPPORTS_SAVE )
66626739
6663GAME( 1981, pengojpm, pengo,    pengojpm, pacman,  driver_device, 0,        ROT90,  "bootleg", "Pengo (bootleg on JPM Pac-Man hardware)", GAME_NOT_WORKING ) // conversion of pacmanjpm board with wire mods
6740GAME( 1981, pengojpm, pengo,    pengojpm, pengojpm, driver_device, 0,        ROT90,  "bootleg", "Pengo (bootleg on JPM Pac-Man hardware)", GAME_NOT_WORKING ) // conversion of pacmanjpm board with wire mods

Previous 199869 Revisions Next


© 1997-2024 The MAME Team