From 0d72c75e159ccafddea3ddd570848396f6c5d74b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 24 Oct 2025 16:51:07 -0400 Subject: [PATCH] Give modify stalls to fast NOPs. --- Processors/6502Mk2/Decoder.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Processors/6502Mk2/Decoder.hpp b/Processors/6502Mk2/Decoder.hpp index fd07c4c85..e0a0f8d08 100644 --- a/Processors/6502Mk2/Decoder.hpp +++ b/Processors/6502Mk2/Decoder.hpp @@ -106,6 +106,7 @@ constexpr Type type_of(const Operation operation) { case Operation::JSR: case Operation::RTI: case Operation::RTS: case Operation::PHP: case Operation::PLP: case Operation::JMP: case Operation::BBRBBS: + case Operation::FastNOP: return Type::Modify; case Operation::ORA: case Operation::AND: case Operation::EOR: @@ -116,7 +117,7 @@ constexpr Type type_of(const Operation operation) { case Operation::LDY: case Operation::LAX: case Operation::ARR: case Operation::SBX: case Operation::LXA: case Operation::ANE: case Operation::ANC: case Operation::LAS: - case Operation::NOP: case Operation::FastNOP: + case Operation::NOP: return Type::Read; case Operation::STA: case Operation::STX: case Operation::STY: @@ -555,6 +556,7 @@ struct Decoder> { case 0x1c: return {Absolute, Operation::TRB}; case 0x3c: return {AbsoluteIndexed, Operation::BIT}; + case 0x5c: return {AbsoluteIndexed, Operation::FastNOP}; case 0x9c: return {Absolute, Operation::STZ}; case 0x1e: return {FastAbsoluteIndexedModify, Operation::ASL};