appease vs2019 (nw)

This commit is contained in:
smf- 2020-04-25 09:12:02 +01:00
parent e399125082
commit 9c756b09d8
4 changed files with 7 additions and 7 deletions

View File

@ -264,7 +264,7 @@ void ks0164_cpu_device::execute_run()
case 0xc: cond = (m_r[R_PSW] & F_Z) || ((m_r[R_PSW] & F_N) && !(m_r[R_PSW] & F_V)) || ((m_r[R_PSW] & F_V) && !(m_r[R_PSW] & F_N)); break;
case 0xd: cond = ((m_r[R_PSW] & F_N) && (m_r[R_PSW] & F_V)) || (!(m_r[R_PSW] & F_V) && !(m_r[R_PSW] & F_N)); break;
case 0xe: cond = ((m_r[R_PSW] & F_N) && !(m_r[R_PSW] & F_V)) || ((m_r[R_PSW] & F_V) && !(m_r[R_PSW] & F_N)); break;
case 0xf: cond = true; break;
case 0xf: default: cond = true; break;
}
if(cond) {
if(opcode & 0x200)
@ -355,7 +355,7 @@ void ks0164_cpu_device::execute_run()
case 0: res = v1 > v2 ? v1 : v2; break;
case 1: res = s16(v1) > s16(v2) ? v1 : v2; break;
case 2: res = v1 < v2 ? v1 : v2; break;
case 3: res = s16(v1) < s16(v2) ? v1 : v2; break;
case 3: default: res = s16(v1) < s16(v2) ? v1 : v2; break;
}
m_r[(opcode >> 8) & 7] = res;
break;

View File

@ -142,7 +142,7 @@ void alphajuno_state::ajuno1(machine_config &config)
HD44780(config, m_lcdc, 0);
m_lcdc->set_lcd_size(2, 8);
m_lcdc->set_pixel_update_cb(FUNC(alphajuno_state::lcd_pixel_update));
m_lcdc->set_busy_factor(0.005);
m_lcdc->set_busy_factor(0.005f);
}
void alphajuno_state::ajuno2(machine_config &config)
@ -181,7 +181,7 @@ void alphajuno_state::mks50(machine_config &config)
HD44780(config, m_lcdc, 0);
m_lcdc->set_lcd_size(2, 8);
m_lcdc->set_pixel_update_cb(FUNC(alphajuno_state::lcd_pixel_update));
m_lcdc->set_busy_factor(0.05);
m_lcdc->set_busy_factor(0.05f);
}
// Original EPROM labels specify major and minor revisions with punch grids; "U" (update?) tag is separate.

View File

@ -302,7 +302,7 @@ WRITE16_MEMBER(microvision_state::tms1100_r_w)
if (~m_r & data & 4 && m_paddle_on)
{
// note that the games don't use the whole range, so there's a deadzone around the edges
const float step = (2000 - 500) / 255.0; // approximation
const float step = (2000 - 500) / 255.0f; // approximation
m_paddle_timer->adjust(attotime::from_usec(500 + m_paddle->read() * step));
}
@ -369,7 +369,7 @@ WRITE8_MEMBER(microvision_state::i8021_p2_w)
// P22,P23: charge paddle capacitor when low
if (m_p2 & 0xc && (data & 0xc) == 0 && m_paddle_on)
{
const float step = (1000 - 10) / 255.0; // approximation
const float step = (1000 - 10) / 255.0f; // approximation
m_paddle_timer->adjust(attotime::from_usec(10 + (m_paddle->read() ^ 0xff) * step));
}

View File

@ -238,7 +238,7 @@ void roland_s10_state::s10(machine_config &config)
HD44780(config, m_lcdc, 0);
m_lcdc->set_lcd_size(2, 8);
m_lcdc->set_pixel_update_cb(FUNC(roland_s10_state::lcd_pixel_update));
m_lcdc->set_busy_factor(0.005);
m_lcdc->set_busy_factor(0.005f);
UPD7001(config, "adc", RES_K(27), CAP_P(47));