aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-08-27 07:00:30 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-08-27 07:09:07 +0200
commit8736745acd3594d1f6200cbfb56fee5f4b17885f (patch)
tree3b75a5a600edbf4c94a2a381b8598302b3000da8
parentf8f81929ddc5293de65003959f7f49bf7e208cc0 (diff)
downloadtools.nes-8736745acd3594d1f6200cbfb56fee5f4b17885f.tar.gz
tools.nes-8736745acd3594d1f6200cbfb56fee5f4b17885f.zip
Fix cycle count for the plp instruction
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
-rw-r--r--lib/xixanta/src/opcodes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xixanta/src/opcodes.rs b/lib/xixanta/src/opcodes.rs
index e8d1e4c..3884b86 100644
--- a/lib/xixanta/src/opcodes.rs
+++ b/lib/xixanta/src/opcodes.rs
@@ -3686,7 +3686,7 @@ pub static OPCODES: LazyLock<HashMap<u8, Instruction>> = LazyLock::new(|| {
Instruction {
identifier: InstructionIdentifier::Pla,
addressing_mode: AddressingMode::Implied,
- cycles: 3,
+ cycles: 4,
size: 1,
opcode: 0x68,
affected_on_page: false,
@@ -3700,7 +3700,7 @@ pub static OPCODES: LazyLock<HashMap<u8, Instruction>> = LazyLock::new(|| {
Instruction {
identifier: InstructionIdentifier::Plp,
addressing_mode: AddressingMode::Implied,
- cycles: 3,
+ cycles: 4,
size: 1,
opcode: 0x28,
affected_on_page: false,