From 66aaa9dc37d0c2d00bcd46e9c97b867c4a807303 Mon Sep 17 00:00:00 2001 From: Oxore Date: Mon, 26 Sep 2022 02:44:17 +0300 Subject: Use correct bitness for 32-bit write --- bus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus.cpp b/bus.cpp index 085275a..0003405 100644 --- a/bus.cpp +++ b/bus.cpp @@ -313,7 +313,7 @@ void m68k_write_memory_16(const unsigned int address_a, const unsigned int value void m68k_write_memory_32(const unsigned int address_a, const unsigned int value) { const uint32_t address = MASK_24(address_a); - const bool successful = memory_write(BITNESS_16, address, value); + const bool successful = memory_write(BITNESS_32, address, value); if (!successful) { report_error("Attempted to write 0x%08x (u32) to address %08x", value&0xff, address); m68k_breakpoint_callback(); -- cgit v1.2.3