From 77c19bfbb53da158c93a28ca9bebf70228cbdf8a Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 8 Feb 2024 18:02:41 +0100 Subject: h8: remove unnneeded mask after prev commit, turbos24k: invert lcd enable --- src/devices/cpu/h8/h8.cpp | 6 +++--- src/mame/layout/saitek_turbos24k.lay | 6 +++--- src/mame/saitek/turbos24k.cpp | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/devices/cpu/h8/h8.cpp b/src/devices/cpu/h8/h8.cpp index 28d08cabe81..e08adcfc2a8 100644 --- a/src/devices/cpu/h8/h8.cpp +++ b/src/devices/cpu/h8/h8.cpp @@ -1330,7 +1330,7 @@ uint8_t h8_device::do_rotxl2_8(uint8_t v) m_CCR &= ~(F_N|F_V|F_Z|F_C); if(v & 0x40) m_CCR |= F_C; - v = (v << 2) | (c << 1) | ((v >> 7) & 0x01); + v = (v << 2) | (c << 1) | (v >> 7); if(!v) m_CCR |= F_Z; else if(int8_t(v) < 0) @@ -1344,7 +1344,7 @@ uint16_t h8_device::do_rotxl2_16(uint16_t v) m_CCR &= ~(F_N|F_V|F_Z|F_C); if(v & 0x4000) m_CCR |= F_C; - v = (v << 2) | (c << 1) | ((v >> 15) & 0x0001); + v = (v << 2) | (c << 1) | (v >> 15); if(!v) m_CCR |= F_Z; else if(int16_t(v) < 0) @@ -1358,7 +1358,7 @@ uint32_t h8_device::do_rotxl2_32(uint32_t v) m_CCR &= ~(F_N|F_V|F_Z|F_C); if(v & 0x40000000) m_CCR |= F_C; - v = (v << 2) | (c << 1) | ((v >> 31) & 0x00000001); + v = (v << 2) | (c << 1) | (v >> 31); if(!v) m_CCR |= F_Z; else if(int32_t(v) < 0) diff --git a/src/mame/layout/saitek_turbos24k.lay b/src/mame/layout/saitek_turbos24k.lay index 8d7fcf7eed3..6802e86b52b 100644 --- a/src/mame/layout/saitek_turbos24k.lay +++ b/src/mame/layout/saitek_turbos24k.lay @@ -57,8 +57,8 @@ authors:hap - - + + @@ -590,7 +590,7 @@ authors:hap - + diff --git a/src/mame/saitek/turbos24k.cpp b/src/mame/saitek/turbos24k.cpp index 50a75341ca8..38ab76fcd7c 100644 --- a/src/mame/saitek/turbos24k.cpp +++ b/src/mame/saitek/turbos24k.cpp @@ -200,7 +200,7 @@ void turbos24k_state::p2_w(u8 data) void turbos24k_state::p5_w(u8 data) { // P53,P54: LCD clocks enabled - lcd_enable(data >> 3 & 3); + lcd_enable(~data >> 3 & 3); // P55: LCD clocks power (both) m_lcd_clock[0]->power_w(BIT(data, 5)); -- cgit v1.2.3