@@ -1637,7 +1637,7 @@ INPUT_PORTS_START( aladbl )
16371637 PORT_DIPSETTING ( 0x05 , DEF_STR ( 1 C_5C ) )
16381638 PORT_DIPSETTING ( 0x06 , DEF_STR ( 1 C_6C ) )
16391639 PORT_DIPSETTING ( 0x07 , DEF_STR ( 1 C_7C ) )
1640- // PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* to avoid it being changed and corrupting Coinage settings */
1640+ // PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* to avoid it being changed and corrupting Coinage settings */
16411641 PORT_DIPNAME ( 0x30 , 0x00 , DEF_STR ( Difficulty ) ) /* code at 0x1b2680 */
16421642 PORT_DIPSETTING ( 0x10 , DEF_STR ( Easy ) ) /* "PRACTICE" */
16431643 PORT_DIPSETTING ( 0x00 , DEF_STR ( Normal ) ) /* "NORMAL" */
@@ -1683,14 +1683,14 @@ static UINT8 megadrive_io_read_data_port_6button(running_machine *machine, int p
16831683 if (io_stage [portnum ] == 2 )
16841684 {
16851685 /* here we read B, C & the additional buttons */
1686- retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1687- (((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0x30 ) |
1686+ retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1687+ (((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0x30 ) |
16881688 (input_port_read_safe (machine , pad6names [portnum ], 0 ) & 0x0f )) & ~helper );
16891689 }
16901690 else
16911691 {
16921692 /* here we read B, C & the directional buttons */
1693- retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1693+ retdata = (megadrive_io_data_regs [portnum ] & helper ) |
16941694 ((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0x3f ) & ~helper );
16951695 }
16961696 }
@@ -1699,20 +1699,20 @@ static UINT8 megadrive_io_read_data_port_6button(running_machine *machine, int p
16991699 if (io_stage [portnum ] == 1 )
17001700 {
17011701 /* here we read ((Start & A) >> 2) | 0x00 */
1702- retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1702+ retdata = (megadrive_io_data_regs [portnum ] & helper ) |
17031703 (((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0xc0 ) >> 2 ) & ~helper );
17041704 }
17051705 else if (io_stage [portnum ]== 2 )
17061706 {
17071707 /* here we read ((Start & A) >> 2) | 0x0f */
1708- retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1708+ retdata = (megadrive_io_data_regs [portnum ] & helper ) |
17091709 ((((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0xc0 ) >> 2 ) | 0x0f ) & ~helper );
17101710 }
17111711 else
17121712 {
17131713 /* here we read ((Start & A) >> 2) | Up and Down */
1714- retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1715- ((((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0xc0 ) >> 2 ) |
1714+ retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1715+ ((((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0xc0 ) >> 2 ) |
17161716 (input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0x03 )) & ~helper );
17171717 }
17181718 }
@@ -1732,14 +1732,14 @@ static UINT8 megadrive_io_read_data_port_3button(running_machine *machine, int p
17321732 if (megadrive_io_data_regs [portnum ] & 0x40 )
17331733 {
17341734 /* here we read B, C & the directional buttons */
1735- retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1735+ retdata = (megadrive_io_data_regs [portnum ] & helper ) |
17361736 (((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0x3f ) | 0x40 ) & ~helper );
17371737 }
17381738 else
17391739 {
17401740 /* here we read ((Start & A) >> 2) | Up and Down */
1741- retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1742- ((((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0xc0 ) >> 2 ) |
1741+ retdata = (megadrive_io_data_regs [portnum ] & helper ) |
1742+ ((((input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0xc0 ) >> 2 ) |
17431743 (input_port_read_safe (machine , pad3names [portnum ], 0 ) & 0x03 ) | 0x40 ) & ~helper );
17441744 }
17451745
@@ -1754,7 +1754,7 @@ UINT8 megatech_bios_port_cc_dc_r(running_machine *machine, int offset, int ctrl)
17541754 if (ctrl == 0x55 )
17551755 {
17561756 /* A keys */
1757- retdata = ((input_port_read (machine , "PAD1" ) & 0x40 ) >> 2 ) |
1757+ retdata = ((input_port_read (machine , "PAD1" ) & 0x40 ) >> 2 ) |
17581758 ((input_port_read (machine , "PAD2" ) & 0x40 ) >> 4 ) | 0xeb ;
17591759 }
17601760 else
@@ -5925,7 +5925,7 @@ VIDEO_EOF(megadriv)
59255925 megadrive_imode_odd_frame ^=1 ;
59265926// cputag_set_input_line(machine, "genesis_snd_z80", 0, CLEAR_LINE); // if the z80 interrupt hasn't happened by now, clear it..
59275927
5928- if (input_port_read_safe (machine , "RESET" , 0x00 ) & 0x01 )
5928+ if (input_port_read_safe (machine , "RESET" , 0x00 ) & 0x01 )
59295929 cputag_set_input_line (machine , "maincpu" , INPUT_LINE_RESET , PULSE_LINE );
59305930
59315931/*
0 commit comments