From 0877e4369991204945621e414172139c53f939de Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 24 Jan 2023 20:49:25 -0500 Subject: nios2: Fix execution of 'or' instruction --- src/devices/cpu/nios2/nios2.cpp | 2 +- src/mame/misc/truesys.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devices/cpu/nios2/nios2.cpp b/src/devices/cpu/nios2/nios2.cpp index b2f1868deed..07cd425c011 100644 --- a/src/devices/cpu/nios2/nios2.cpp +++ b/src/devices/cpu/nios2/nios2.cpp @@ -398,7 +398,7 @@ void nios2_device::execute_run() break; case 0x16: // or - m_gpr[BIT(inst, 17, 5)] = get_reg(BIT(inst, 27, 5)) & get_reg(BIT(inst, 22, 5)); + m_gpr[BIT(inst, 17, 5)] = get_reg(BIT(inst, 27, 5)) | get_reg(BIT(inst, 22, 5)); m_pc += 4; m_icount--; break; diff --git a/src/mame/misc/truesys.cpp b/src/mame/misc/truesys.cpp index ad0fd774ab0..d049b38108e 100644 --- a/src/mame/misc/truesys.cpp +++ b/src/mame/misc/truesys.cpp @@ -63,6 +63,7 @@ void truesys_state::main_map(address_map &map) map(0x00909300, 0x00909303).noprw(); // byte-wide peripheral (SPI?) map(0x00909304, 0x00909307).noprw(); map(0x00909308, 0x0090930b).nopw(); // byte-wide peripheral control? + map(0x01000000, 0x01000fff).ram(); } -- cgit v1.2.3