From 4774d23d1bc908f003238fba9e693efded3d9f44 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Thu, 31 Mar 2022 13:41:53 +0200 Subject: [PATCH] 16b where possible --- cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index a61f185..08d8a31 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1044,7 +1044,7 @@ bool cpu::single_operand_instructions(const uint16_t instr) } else { uint16_t a = getGAMAddress(dst_mode, dst_reg, word_mode, false); - int32_t vl = b -> read(a, word_mode); + uint16_t vl = b -> read(a, word_mode); uint16_t v = (vl << 1) & (word_mode ? 0xff : 0xffff); setPSW_n(SIGN(v, word_mode));