Previous 199869 Revisions Next

r18421 Wednesday 10th October, 2012 at 16:05:05 UTC by hap
fix shtngmst gun position
[src/mame/drivers]system1.c
[src/mame/includes]system1.h

trunk/src/mame/includes/system1.h
r18420r18421
5050   DECLARE_READ8_MEMBER(nobb_inport23_r);
5151   DECLARE_WRITE8_MEMBER(nobb_outport24_w);
5252   DECLARE_READ8_MEMBER(nob_start_r);
53   DECLARE_READ8_MEMBER(shtngmst_gunx_r);
5354   DECLARE_WRITE8_MEMBER(system1_videomode_w);
5455   DECLARE_READ8_MEMBER(system1_mixer_collision_r);
5556   DECLARE_WRITE8_MEMBER(system1_mixer_collision_w);
r18420r18421
6364   DECLARE_CUSTOM_INPUT_MEMBER(dakkochn_mux_data_r);
6465   DECLARE_CUSTOM_INPUT_MEMBER(dakkochn_mux_status_r);
6566   DECLARE_WRITE8_MEMBER(sound_control_w);
67
6668   DECLARE_DRIVER_INIT(nobb);
6769   DECLARE_DRIVER_INIT(wboy2);
6870   DECLARE_DRIVER_INIT(imsorry);
trunk/src/mame/drivers/system1.c
r18420r18421
465465
466466/*************************************
467467 *
468 *  Shooting Master gun input
469 *
470 *************************************/
471
472READ8_MEMBER(system1_state::shtngmst_gunx_r)
473{
474   // x is slightly offset, and has a range of 00-fe
475   UINT8 x = ioport("GUNX")->read() - 0x12;
476   return (x == 0xff) ? 0xfe : x;
477}
478
479
480
481/*************************************
482 *
468483 *  Sound I/O
469484 *
470485 *************************************/
r18420r18421
669684
670685/*************************************
671686 *
672 *  Generic port definitions
687 *  nob bootleg protection
673688 *
674689 *************************************/
675690
676// nobb - these ports are used for some kind of replacement protection system used by the bootleg
677
678691READ8_MEMBER(system1_state::nobb_inport1c_r)
679692{
680693//  logerror("IN  $1c : pc = %04x - data = 0x80\n",space.device().safe_pc());
r18420r18421
17471760   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
17481761
17491762   PORT_START("GUNX") /* 1c */
1750   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1)
1763   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_X ) PORT_CROSSHAIR(X, 1.0, 0.0, 0) PORT_SENSITIVITY(48) PORT_KEYDELTA(8)
17511764
17521765   PORT_START("GUNY") /* 1d */
1753   PORT_BIT( 0xff, 0x80, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, -1.0, 0.0, 0) PORT_SENSITIVITY(25) PORT_KEYDELTA(15) PORT_PLAYER(1) PORT_REVERSE
1766   PORT_BIT( 0xff, 0x90, IPT_LIGHTGUN_Y ) PORT_CROSSHAIR(Y, -1.0, 0.0, 0) PORT_MINMAX(0x20, 0xff) PORT_SENSITIVITY(64) PORT_KEYDELTA(8) PORT_REVERSE
17541767
17551768   PORT_START("18") /* 18 */
17561769   /* what is this? check the game code... */
r18420r18421
47824795   address_space &iospace = machine().device("maincpu")->memory().space(AS_IO);
47834796   iospace.install_read_port(0x12, 0x12, 0x00, 0x00, "TRIGGER");
47844797   iospace.install_read_port(0x18, 0x18, 0x00, 0x03, "18");
4785   iospace.install_read_port(0x1c, 0x1c, 0x00, 0x02, "GUNX");
4798   iospace.install_read_handler(0x1c, 0x1c, 0x00, 0x02, read8_delegate(FUNC(system1_state::shtngmst_gunx_r),this));
47864799   iospace.install_read_port(0x1d, 0x1d, 0x00, 0x02, "GUNY");
47874800   DRIVER_INIT_CALL(bank0c);
47884801}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team