From 13be24749502b7fdfbd0332d3b1f93e63677ad38 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 30 Aug 2023 23:08:42 -0400 Subject: [PATCH] Comment. --- Processors/6502/Implementation/6502Implementation.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Processors/6502/Implementation/6502Implementation.hpp b/Processors/6502/Implementation/6502Implementation.hpp index 0481b84ba..3a223eeae 100644 --- a/Processors/6502/Implementation/6502Implementation.hpp +++ b/Processors/6502/Implementation/6502Implementation.hpp @@ -347,6 +347,8 @@ template void Proces a_ = result; if(is_65c02(personality)) { + // 65C02 fix: N and Z are set correctly based on the final BCD result, at the cost of + // an extra cycle. flags_.set_nz(a_); read_mem(operand_, address_.full); break;