summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2026-05-06 13:37:26 +0200
committer hap <happppp@users.noreply.github.com>2026-05-06 13:37:26 +0200
commit9a9529670ce5733459415e1b318c3ee303190d26 (patch)
tree5d04da9ebe7b555e3104303b38b03dae85e3b192 /src/devices/cpu
parentc1c2aabdbf3ab59eacda1ec8384dcb89672fa51c (diff)
hexa,brixian: increase ay clock (matches pcb videos)
Diffstat (limited to 'src/devices/cpu')
-rw-r--r--src/devices/cpu/mcs51/mcs51ops.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/cpu/mcs51/mcs51ops.cpp b/src/devices/cpu/mcs51/mcs51ops.cpp
index 3042b33a75c..6b6bbf9118c 100644
--- a/src/devices/cpu/mcs51/mcs51ops.cpp
+++ b/src/devices/cpu/mcs51/mcs51ops.cpp
@@ -502,7 +502,7 @@ void mcs51_cpu_device::djnz_mem(u8 r)
s8 rel_addr = m_program.read_byte(m_pc++); //Grab relative code address
u8 data = read_direct(addr) - 1; //Decrement value contained at data address
write_direct(addr, data);
- if (data != 0) //Branch if contents of data address is not 0
+ if (data != 0) //Branch if decremented value is not 0
{
m_pc = m_pc + rel_addr;
}