From f48db625a0ea504557d2fbda9fd0a3606a58e27a Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 12 Apr 2019 16:41:00 -0400 Subject: [PATCH] Corrects write-back and zero flag for ADD/SUB.l. --- Processors/68000/Implementation/68000Implementation.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index 1e9f08a31..61ce90032 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -136,7 +136,7 @@ template void Processor: const uint32_t destination = active_program_->destination->full; const uint64_t result = destination + source; - zero_result_ = active_program_->destination->halves.low.full = uint32_t(result); + zero_result_ = active_program_->destination->full = uint32_t(result); extend_flag_ = carry_flag_ = result >> 32; negative_flag_ = result & 0x80000000; overflow_flag_ = add_overflow() & 0x80000000; @@ -506,7 +506,7 @@ template void Processor: const uint32_t destination = active_program_->destination->full; const uint64_t result = destination - source; - zero_result_ = active_program_->destination->halves.low.full = uint32_t(result); + zero_result_ = active_program_->destination->full = uint32_t(result); extend_flag_ = carry_flag_ = result >> 32; negative_flag_ = result & 0x80000000; overflow_flag_ = sub_overflow() & 0x80000000;