summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2026-05-04 04:00:55 +1000
committer Vas Crabb <vas@vastheman.com>2026-05-04 04:00:55 +1000
commit37ee3f7cd3fbc151b80dff0d620b2cea2dfe54c0 (patch)
treeece384537fdfa4f8f8a135743c052532a09a8a1d /src/devices
parentc4a7de0fad78dac4d0399e7b1cb909ddab3ac8c1 (diff)
ui/ui.cpp: Fixed variable name auto-complete gone wrong.
Also cleaned up a bunch of recent changes.
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/cpu/i386/x87ops.hxx3
-rw-r--r--src/devices/machine/i8087.cpp9
-rw-r--r--src/devices/video/huc6260.cpp44
3 files changed, 32 insertions, 24 deletions
diff --git a/src/devices/cpu/i386/x87ops.hxx b/src/devices/cpu/i386/x87ops.hxx
index a9c53159642..8e3a988a9d7 100644
--- a/src/devices/cpu/i386/x87ops.hxx
+++ b/src/devices/cpu/i386/x87ops.hxx
@@ -2307,7 +2307,8 @@ void i386_device::x87_fprem1(uint8_t modrm)
m_x87_sw &= ~X87_SW_C2;
- if (!extFloat80_ieee754_remainder(ST(0), ST(1), result, q)) {
+ if (!extFloat80_ieee754_remainder(ST(0), ST(1), result, q))
+ {
m_x87_sw &= ~(X87_SW_C0|X87_SW_C3|X87_SW_C1);
if (q & 1)
m_x87_sw |= X87_SW_C1;
diff --git a/src/devices/machine/i8087.cpp b/src/devices/machine/i8087.cpp
index ffa18dfb4d4..896b30014ba 100644
--- a/src/devices/machine/i8087.cpp
+++ b/src/devices/machine/i8087.cpp
@@ -423,7 +423,11 @@ int i8087_device::check_exceptions(bool store)
if ((m_sw & ~m_cw) & 0x3f)
{
// interrupt handler
- if (!(m_cw & X87_CW_IEM)) { m_sw |= X87_SW_ES; m_int_handler(1); }
+ if (!(m_cw & X87_CW_IEM))
+ {
+ m_sw |= X87_SW_ES;
+ m_int_handler(1);
+ }
logerror("Unmasked x87 exception (CW:%.4x, SW:%.4x)\n", m_cw, m_sw);
if (store || !(unmasked & (X87_SW_OE | X87_SW_UE)))
return 0;
@@ -2141,7 +2145,8 @@ void i8087_device::fprem1(u8 modrm)
m_sw &= ~X87_SW_C2;
- if (!extFloat80_ieee754_remainder(ST(0), ST(1), result, q)) {
+ if (!extFloat80_ieee754_remainder(ST(0), ST(1), result, q))
+ {
m_sw &= ~(X87_SW_C0|X87_SW_C3|X87_SW_C1);
if (q & 1)
m_sw |= X87_SW_C1;
diff --git a/src/devices/video/huc6260.cpp b/src/devices/video/huc6260.cpp
index c9a5d5cfac3..0d7508ddfb8 100644
--- a/src/devices/video/huc6260.cpp
+++ b/src/devices/video/huc6260.cpp
@@ -113,23 +113,25 @@ TIMER_CALLBACK_MEMBER(huc6260_device::update_events)
{
case HUC6260_HSYNC_START: /* Start of HSync */
m_hsync_changed_cb(0);
-// if (v == 0)
-// {
-// /* Check if the screen should be resized */
-// m_height = LPF - (m_blur ? 1 : 0);
-// if (m_height != video_screen_get_height(m_screen))
-// {
-// rectangle visible_area;
-//
-// /* TODO: Set proper visible area parameters */
-// visible_area.min_x = 64;
-// visible_area.min_y = 18;
-// visible_area.max_x = 64 + 1024 + 64 - 1;
-// visible_area.max_y = 18 + 242 - 1;
-//
-// video_screen_configure(m_screen, WPF, m_height, &visible_area, HZ_TO_ATTOSECONDS(device->clock / (WPF * m_height)));
-// }
-// }
+#if 0
+ if (v == 0)
+ {
+ /* Check if the screen should be resized */
+ m_height = LPF - (m_blur ? 1 : 0);
+ if (m_height != video_screen_get_height(m_screen))
+ {
+ rectangle visible_area;
+
+ /* TODO: Set proper visible area parameters */
+ visible_area.min_x = 64;
+ visible_area.min_y = 18;
+ visible_area.max_x = 64 + 1024 + 64 - 1;
+ visible_area.max_y = 18 + 242 - 1;
+
+ video_screen_configure(m_screen, WPF, m_height, &visible_area, HZ_TO_ATTOSECONDS(device->clock / (WPF * m_height)));
+ }
+ }
+#endif
break;
case 0: /* End of HSync */
@@ -256,19 +258,19 @@ void huc6260_device::write(offs_t offset, u8 data)
break;
case 0x02: /* Color table address LSB */
- m_address = (m_address & 0x100) | data;
+ m_address = (m_address & 0x100) | u16(data);
break;
case 0x03: /* Color table address MSB */
- m_address = ((m_address & 0x0ff) | (BIT(data, 0) << 8)) & 0x1ff;
+ m_address = (m_address & 0x0ff) | (u16(BIT(data, 0)) << 8);
break;
case 0x04: /* Color table data LSB */
- m_palette[m_address] = (m_palette[m_address] & 0x100) | data;
+ m_palette[m_address] = (m_palette[m_address] & 0x100) | u16(data);
break;
case 0x05: /* Color table data MSB */
- m_palette[m_address] = ((m_palette[m_address] & 0x0ff) | (BIT(data, 0) << 8)) & 0x1ff;
+ m_palette[m_address] = (m_palette[m_address] & 0x0ff) | (u16(BIT(data, 0)) << 8);
/* Increment internal address */
m_address = (m_address + 1) & 0x1ff;