From 069a057a945ae0a16ed938c900ea90ac5fb35e8b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 24 Jun 2022 07:26:07 -0400 Subject: [PATCH] Resolve assumption of arithmetic shifts. --- Processors/65816/Implementation/65816Implementation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processors/65816/Implementation/65816Implementation.hpp b/Processors/65816/Implementation/65816Implementation.hpp index 4e542236f..7ac380c08 100644 --- a/Processors/65816/Implementation/65816Implementation.hpp +++ b/Processors/65816/Implementation/65816Implementation.hpp @@ -925,7 +925,7 @@ template void Processor> 16) & adjustment; \ - result &= (carry & ~(result >> 31)) | (carry - 1); + result &= (carry & ~(result >> 1)) | (carry - 1); // i.e. add the next nibble to that in the accumulator, with carry, and // store it to result. Keep a copy for the partials.