From ceebecec8d488f25ccdec7b20c2a007753a19b39 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 29 Apr 2019 17:54:33 -0400 Subject: [PATCH] Corrects zero and negative flags for EXT.w. --- Processors/68000/Implementation/68000Implementation.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Processors/68000/Implementation/68000Implementation.hpp b/Processors/68000/Implementation/68000Implementation.hpp index f9ef748eb..15e4a5a37 100644 --- a/Processors/68000/Implementation/68000Implementation.hpp +++ b/Processors/68000/Implementation/68000Implementation.hpp @@ -668,7 +668,7 @@ template void Proces active_program_->destination->halves.low.halves.high = (active_program_->destination->halves.low.halves.low & 0x80) ? 0xff : 0x00; overflow_flag_ = carry_flag_ = 0; - zero_result_ = active_program_->destination->halves.low.halves.high; + zero_result_ = active_program_->destination->halves.low.full; negative_flag_ = zero_result_ & 0x8000; break;