From c6e773b0de6c2a0a73291a4cd9b8dee484801ea4 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 10 Apr 2022 15:03:57 +0200 Subject: [PATCH] code clean-up --- cpu.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cpu.cpp b/cpu.cpp index 9d3b523..5e9f55f 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1115,14 +1115,8 @@ bool cpu::single_operand_instructions(const uint16_t instr) setPSW_z(v == 0); setPSW_v(false); - if (dst_mode == 0) - putGAM(dst_mode, dst_reg, false, v, true); - else { - uint16_t a = getGAMAddress(dst_mode, dst_reg, false, false); - - // put in '13/12' address space - b -> write(a, false, v, true); - } + uint16_t a = getGAMAddress(dst_mode, dst_reg, false, false); + b -> write(a, false, v, true); // put in '13/12' address space break; }