From 2fe44733e5638718573e8aeba54a58830e6b36e5 Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 16 Sep 2023 10:58:55 +0200 Subject: [PATCH] z80: fix rop() opcode read call --- src/devices/cpu/z80/z80.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/z80/z80.cpp b/src/devices/cpu/z80/z80.cpp index a0d3890a91b..67aaa59f8b9 100644 --- a/src/devices/cpu/z80/z80.cpp +++ b/src/devices/cpu/z80/z80.cpp @@ -407,7 +407,7 @@ inline u8 z80_device::opcode_read() u8 z80_device::rop() { - u8 res = m_opcodes.read_byte(translate_memory_address(PCD)); + u8 res = opcode_read(); T(m_m1_cycles - 2); m_refresh_cb((m_i << 8) | (m_r2 & 0x80) | (m_r & 0x7f), 0x00, 0xff); T(2);