113
WRITE8_HANDLER( naughtyb_videoreg_w )
114
WRITE8_MEMBER(naughtyb_state::naughtyb_videoreg_w)
115
naughtyb_state *state = space->machine().driver_data<naughtyb_state>();
116
116
// bits 4+5 control the sound circuit
117
pleiads_sound_control_c_w(space->machine().device("cust"),offset,data);
117
pleiads_sound_control_c_w(machine().device("cust"),offset,data);
120
( ( input_port_read(space->machine(), "DSW0") & 0x80 ) && // cabinet == cocktail
120
( ( ioport("DSW0")->read() & 0x80 ) && // cabinet == cocktail
121
121
( data & 0x01 ) ); // handling player 2
122
state->m_palreg = (data >> 1) & 0x03; // palette sel is bit 1 & 2
123
state->m_bankreg = (data >> 2) & 0x01; // banksel is just bit 2
122
m_palreg = (data >> 1) & 0x03; // palette sel is bit 1 & 2
123
m_bankreg = (data >> 2) & 0x01; // banksel is just bit 2
126
WRITE8_HANDLER( popflame_videoreg_w )
126
WRITE8_MEMBER(naughtyb_state::popflame_videoreg_w)
128
naughtyb_state *state = space->machine().driver_data<naughtyb_state>();
129
128
// bits 4+5 control the sound circuit
130
pleiads_sound_control_c_w(space->machine().device("cust"),offset,data);
129
pleiads_sound_control_c_w(machine().device("cust"),offset,data);
133
( ( input_port_read(space->machine(), "DSW0") & 0x80 ) && // cabinet == cocktail
132
( ( ioport("DSW0")->read() & 0x80 ) && // cabinet == cocktail
134
133
( data & 0x01 ) ); // handling player 2
135
state->m_palreg = (data >> 1) & 0x03; // palette sel is bit 1 & 2
136
state->m_bankreg = (data >> 3) & 0x01; // banksel is just bit 3
134
m_palreg = (data >> 1) & 0x03; // palette sel is bit 1 & 2
135
m_bankreg = (data >> 3) & 0x01; // banksel is just bit 3