summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2025-02-18 18:09:43 +0100
committer hap <happppp@users.noreply.github.com>2025-02-18 18:09:56 +0100
commitd912c4f2d05055ef05cce3c5c73db29c5a4f375d (patch)
tree3948e863c72231cc87b4b777f2d644e85caa2dd2
parente708996ebc6b7b434411dd13ae55ecf38a6c8bd9 (diff)
alibaba: add debugger side effects check
-rw-r--r--src/mame/handheld/hh_rw5000.cpp2
-rw-r--r--src/mame/pacman/pacman.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/mame/handheld/hh_rw5000.cpp b/src/mame/handheld/hh_rw5000.cpp
index 24f524d46c0..0fb2444f034 100644
--- a/src/mame/handheld/hh_rw5000.cpp
+++ b/src/mame/handheld/hh_rw5000.cpp
@@ -735,7 +735,7 @@ ROM_END
/*******************************************************************************
Rockwell 8R "Automatic Percent", Rockwell 18R "Memory"
- * B5000 MCU (label B5000CC, die label B5000)
+ * B5000 MCU (label B5000CB/CC, die label B5000)
* 8-digit 7seg LED display
This MCU was used in Rockwell 8R, 18R, and 9TR. It was also sold by
diff --git a/src/mame/pacman/pacman.cpp b/src/mame/pacman/pacman.cpp
index 4316ef936cb..45bd7ee1b27 100644
--- a/src/mame/pacman/pacman.cpp
+++ b/src/mame/pacman/pacman.cpp
@@ -581,7 +581,10 @@ void alibaba_state::mystery_tick(int state)
uint8_t alibaba_state::mystery_1_r()
{
// the return value determines what the mystery item is
- return machine().rand() & 0x0f;
+ if (!machine().side_effects_disabled())
+ return machine().rand() & 0x0f;
+
+ return 0;
}
uint8_t alibaba_state::mystery_2_r()