@@ -614,6 +614,7 @@ class cmast97_state : public cmaster_state
614614 void cmast97_portmap(address_map &map) ATTR_COLD;
615615 void jpknight_portmap(address_map &map) ATTR_COLD;
616616 void cm97_vid_reg_w(uint8_t data);
617+ void cm97_bgcolor_w(uint8_t data);
617618 uint8_t m_bgcolor = 0;
618619};
619620
@@ -3087,13 +3088,13 @@ void wingco_state::fever_outp_w(offs_t offset, uint8_t data)
30873088
30883089void cmast97_state::cm97_vid_reg_w(uint8_t data)
30893090{
3090- uint8_t nogirl_dsw = !BIT(ioport("DSW1")->read(), 3);
30913091 m_reel_bank = data & 0x03;
30923092 m_gfx_view.select(!BIT(data, 3));
3093- m_bgcolor = m_reel_bank != 0 ? 0x0f : 0x0b;
3093+ }
30943094
3095- if((m_bgcolor == 0x0f) & nogirl_dsw)
3096- m_bgcolor = 0x09;
3095+ void cmast97_state::cm97_bgcolor_w(uint8_t data)
3096+ {
3097+ m_bgcolor = data;
30973098}
30983099
30993100
@@ -3954,6 +3955,7 @@ void cmast97_state::cmast97_portmap(address_map &map)
39543955 map(0x00, 0x00).lw8(NAME([this] (uint8_t data) { logerror("Port 0:m_enable:%02x\n", data);m_enable_reg = data; } ));
39553956 map(0x01, 0x01).lw8(NAME([this] (uint8_t data) { m_tile_bank = (data & 0x0c) >> 2; if (data & 0xf3) logerror("unk tile bank w: %02x\n", data); }));
39563957 map(0x02, 0x02).w(FUNC(cmast97_state::cm97_vid_reg_w));
3958+ map(0x03, 0x03).w(FUNC(cmast97_state::cm97_bgcolor_w));
39573959
39583960 map(0x09, 0x09).r("aysnd", FUNC(ay8910_device::data_r));
39593961 map(0x0a, 0x0b).w("aysnd", FUNC(ay8910_device::data_address_w));
0 commit comments