Skip to content

Commit d35353b

Browse files
authored
-misc/multfish.cpp: Minor cleanups: (#12862)
* Use more appropriate types for integer variables, and made some variables constant. * Allocate video RAM on start, and reduced run-time tag lookups. * Improved some function and variable names, and reduced use of static functions and preprocessor macros. * Cleaned up spacing, and converted single-line comments to C++ line comments. -machine/timekeeper.cpp: Suppress side effects for debugger reads. -misc/multfish_boot.cpp: Converted single-line comments to C++ line comments.
1 parent 2443fb6 commit d35353b

File tree

4 files changed

+676
-670
lines changed

4 files changed

+676
-670
lines changed

src/devices/machine/timekpr.cpp

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,13 +432,18 @@ u8 timekeeper_device::read(offs_t offset)
432432
}
433433
else if (offset == m_offset_flags && type() == M48T37)
434434
{
435-
// Clear the watchdog flag
436-
m_data[m_offset_flags] &= ~FLAGS_WDF;
437-
// Clear callbacks
438-
m_reset_cb(CLEAR_LINE);
439-
m_irq_cb(CLEAR_LINE);
435+
if (!machine().side_effects_disabled())
436+
{
437+
// Clear the watchdog flag
438+
m_data[m_offset_flags] &= ~FLAGS_WDF;
439+
// Clear callbacks
440+
m_reset_cb(CLEAR_LINE);
441+
m_irq_cb(CLEAR_LINE);
442+
}
440443
}
441-
LOG("timekeeper_device::read: %04x (%02x)\n", offset, result);
444+
if (!machine().side_effects_disabled())
445+
LOG("timekeeper_device::read: %04x (%02x)\n", offset, result);
446+
442447
return result;
443448
}
444449

0 commit comments

Comments
 (0)