diff options
author | Aaron Giles <aaron@aarongiles.com> | 2008-08-20 04:17:46 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2008-08-20 04:17:46 +0000 |
commit | 565b5532a7050ec4aa384d72c3dd691d6356ca71 (patch) | |
tree | 8efcec4d72a88a877b7a7a99eb7f52da62caa5eb /src/mame/drivers/pcktgal.c | |
parent | 0941eb004eeac96cb7ef0e7427f1a7a0f1666b6d (diff) |
From: Fabio Priuli [mailto:doge.fabio@gmail.com]
Subject: few patch based on u5
Hi,
since it seems there will be one more update in this cycle, it is probably
better to submit these patches. Hopefully, not too many changes have been
done to the source and these will apply cleanly. Let me know if I have to
re-submit any of the patches.
content of the zip
* Ndriv.diff, OPQdriv.diff and RSdriv.diff: clean up of input ports in drivers
N->R and partially S. as usual AM_READ_PORTs, conversions to full 32bit inputs
where suitable, CUSTOM_PORTs for eeprom bits etc.
* cps1.diff: small clean up of the inputs in cps1.c. In particular, I exploited
a few port_include (modeled on cps2.c) and added specific inputs for sf2 hacks
so that I could simplify input readings in video/cps1.c. Also, I added the 3rd
buttons to games which test it in Service Mode even if they don't use it in game:
if the game code tests for them in the service mode, they were supposed to be
present...
* deco.diff, pgm.diff, psikyo.diff, nbmj.diff, jaleco.diff: clean up for
specific large drivers
* other.diff: some usage of PORT_CUSTOM that I missed to implement previously
Regards,
Fabio Priuli
Diffstat (limited to 'src/mame/drivers/pcktgal.c')
-rw-r--r-- | src/mame/drivers/pcktgal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/pcktgal.c b/src/mame/drivers/pcktgal.c index 5520d995e00..11040084719 100644 --- a/src/mame/drivers/pcktgal.c +++ b/src/mame/drivers/pcktgal.c @@ -78,9 +78,9 @@ static READ8_HANDLER( pcktgal_adpcm_reset_r ) static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 ) AM_RANGE(0x0000, 0x07ff) AM_READ(SMH_RAM) - AM_RANGE(0x1800, 0x1800) AM_READ(input_port_0_r) - AM_RANGE(0x1a00, 0x1a00) AM_READ(input_port_1_r) - AM_RANGE(0x1c00, 0x1c00) AM_READ(input_port_2_r) + AM_RANGE(0x1800, 0x1800) AM_READ_PORT("P1") + AM_RANGE(0x1a00, 0x1a00) AM_READ_PORT("P2") + AM_RANGE(0x1c00, 0x1c00) AM_READ_PORT("DSW") AM_RANGE(0x4000, 0x5fff) AM_READ(SMH_BANK1) AM_RANGE(0x6000, 0x7fff) AM_READ(SMH_BANK2) AM_RANGE(0x8000, 0xffff) AM_READ(SMH_ROM) @@ -141,7 +141,7 @@ static INPUT_PORTS_START( pcktgal ) PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2) PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2) - PORT_START("DSW") /* Dip switch */ + PORT_START("DSW") PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coinage ) ) PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) |