trunk/src/mame/includes/system1.h
| r18420 | r18421 | |
| 50 | 50 | DECLARE_READ8_MEMBER(nobb_inport23_r); |
| 51 | 51 | DECLARE_WRITE8_MEMBER(nobb_outport24_w); |
| 52 | 52 | DECLARE_READ8_MEMBER(nob_start_r); |
| 53 | DECLARE_READ8_MEMBER(shtngmst_gunx_r); |
| 53 | 54 | DECLARE_WRITE8_MEMBER(system1_videomode_w); |
| 54 | 55 | DECLARE_READ8_MEMBER(system1_mixer_collision_r); |
| 55 | 56 | DECLARE_WRITE8_MEMBER(system1_mixer_collision_w); |
| r18420 | r18421 | |
| 63 | 64 | DECLARE_CUSTOM_INPUT_MEMBER(dakkochn_mux_data_r); |
| 64 | 65 | DECLARE_CUSTOM_INPUT_MEMBER(dakkochn_mux_status_r); |
| 65 | 66 | DECLARE_WRITE8_MEMBER(sound_control_w); |
| 67 | |
| 66 | 68 | DECLARE_DRIVER_INIT(nobb); |
| 67 | 69 | DECLARE_DRIVER_INIT(wboy2); |
| 68 | 70 | DECLARE_DRIVER_INIT(imsorry); |
trunk/src/mame/drivers/system1.c
| r18420 | r18421 | |
| 465 | 465 | |
| 466 | 466 | /************************************* |
| 467 | 467 | * |
| 468 | * Shooting Master gun input |
| 469 | * |
| 470 | *************************************/ |
| 471 | |
| 472 | READ8_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 | * |
| 468 | 483 | * Sound I/O |
| 469 | 484 | * |
| 470 | 485 | *************************************/ |
| r18420 | r18421 | |
| 669 | 684 | |
| 670 | 685 | /************************************* |
| 671 | 686 | * |
| 672 | | * Generic port definitions |
| 687 | * nob bootleg protection |
| 673 | 688 | * |
| 674 | 689 | *************************************/ |
| 675 | 690 | |
| 676 | | // nobb - these ports are used for some kind of replacement protection system used by the bootleg |
| 677 | | |
| 678 | 691 | READ8_MEMBER(system1_state::nobb_inport1c_r) |
| 679 | 692 | { |
| 680 | 693 | // logerror("IN $1c : pc = %04x - data = 0x80\n",space.device().safe_pc()); |
| r18420 | r18421 | |
| 1747 | 1760 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 1748 | 1761 | |
| 1749 | 1762 | 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) |
| 1751 | 1764 | |
| 1752 | 1765 | 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 |
| 1754 | 1767 | |
| 1755 | 1768 | PORT_START("18") /* 18 */ |
| 1756 | 1769 | /* what is this? check the game code... */ |
| r18420 | r18421 | |
| 4782 | 4795 | address_space &iospace = machine().device("maincpu")->memory().space(AS_IO); |
| 4783 | 4796 | iospace.install_read_port(0x12, 0x12, 0x00, 0x00, "TRIGGER"); |
| 4784 | 4797 | 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)); |
| 4786 | 4799 | iospace.install_read_port(0x1d, 0x1d, 0x00, 0x02, "GUNY"); |
| 4787 | 4800 | DRIVER_INIT_CALL(bank0c); |
| 4788 | 4801 | } |