From c434d8e4d7c1442d9175ff58ae3a406aed5fda38 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 23 Jun 2024 21:10:08 +0200 Subject: [PATCH] order --- mmu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmu.cpp b/mmu.cpp index 56edc3c..bc4e2c6 100644 --- a/mmu.cpp +++ b/mmu.cpp @@ -478,12 +478,12 @@ uint32_t mmu::calculate_physical_address(cpu *const c, const int run_mode, const uint32_t m_offset = a; if (is_enabled() || (is_write && (getMMR0() & (1 << 8 /* maintenance check */)))) { - uint8_t apf = a >> 13; // active page field - bool d = space == d_space && get_use_data_space(run_mode); uint16_t p_offset = a & 8191; // page offset + uint8_t apf = a >> 13; // active page field + m_offset = get_physical_memory_offset(run_mode, d, apf); m_offset += p_offset;