diff --git a/src/mame/drivers/enmirage.cpp b/src/mame/drivers/enmirage.cpp index 3aff190371d..5684c66d0fe 100644 --- a/src/mame/drivers/enmirage.cpp +++ b/src/mame/drivers/enmirage.cpp @@ -171,7 +171,7 @@ static void ensoniq_floppies(device_slot_interface &device) uint8_t enmirage_state::mirage_adc_read() { - uint8_t value; + uint8_t value = 0; switch(m_mux_value & 0x03) { case 0: diff --git a/src/mame/drivers/royalmah.cpp b/src/mame/drivers/royalmah.cpp index abd99d8190b..c4ae4be0222 100644 --- a/src/mame/drivers/royalmah.cpp +++ b/src/mame/drivers/royalmah.cpp @@ -5519,7 +5519,7 @@ void royalmah_state::init_mjsenka() rom[i] = bitswap<8>(rom[i], 0, 6, 5, 4, 3, 1, 2, 7); } - m_mainopbank->configure_entries(0, 8, m_decrypted_opcodes + 0x8000, 0x400); + m_mainopbank->configure_entries(0, 8, &m_decrypted_opcodes[0x8000], 0x400); init_chalgirl(); } diff --git a/src/mame/drivers/stv.cpp b/src/mame/drivers/stv.cpp index 61f259ccf11..68f70050581 100644 --- a/src/mame/drivers/stv.cpp +++ b/src/mame/drivers/stv.cpp @@ -191,10 +191,10 @@ uint8_t stv_state::critcrsh_ioga_r(offs_t offset) void stv_state::critcrsh_ioga_w(offs_t offset, uint8_t data) { + static uint8_t const bcd2hex[] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7c, 0x07, 0x7f, 0x67, 0x58, 0x4c, 0x62, 0x49, 0x78, 0x00 }; // TODO: chip type unknown switch (offset * 2 + 1) { case 0x0b: - static uint8_t bcd2hex[] = { 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7c, 0x07, 0x7f, 0x67, 0x58, 0x4c, 0x62, 0x49, 0x78, 0x00 }; // TODO: chip type unknown m_cc_digits[0] = bcd2hex[(data & 0xf0) >> 4]; m_cc_digits[1] = bcd2hex[data & 0x0f]; break;