MSVC fixes

This commit is contained in:
Aaron Giles 2021-08-13 22:09:25 -07:00
parent 45545a3216
commit 1f192de48f
3 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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();
}

View File

@ -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;