diff --git a/Processors/6502/Implementation/6502Implementation.hpp b/Processors/6502/Implementation/6502Implementation.hpp index b39122e8b..7dbe6d069 100644 --- a/Processors/6502/Implementation/6502Implementation.hpp +++ b/Processors/6502/Implementation/6502Implementation.hpp @@ -367,6 +367,8 @@ if(number_of_cycles <= Cycles(0)) break; case OperationINC: operand_++; negative_result_ = zero_result_ = operand_; continue; case OperationDEC: operand_--; negative_result_ = zero_result_ = operand_; continue; + case OperationINA: a_++; negative_result_ = zero_result_ = a_; continue; + case OperationDEA: a_--; negative_result_ = zero_result_ = a_; continue; case OperationINX: x_++; negative_result_ = zero_result_ = x_; continue; case OperationDEX: x_--; negative_result_ = zero_result_ = x_; continue; case OperationINY: y_++; negative_result_ = zero_result_ = y_; continue; diff --git a/Processors/6502/Implementation/6502Storage.cpp b/Processors/6502/Implementation/6502Storage.cpp index 92e200182..d117a82fb 100644 --- a/Processors/6502/Implementation/6502Storage.cpp +++ b/Processors/6502/Implementation/6502Storage.cpp @@ -269,6 +269,10 @@ ProcessorStorage::ProcessorStorage(Personality personality) { OperationCorrectAddressHigh, CycleReadPCLFromAddress, // (5) read from real (addr+x) CycleReadPCHFromAddressInc // (6) read from addr+x+1 )); + + // Add INA and DEA. + Install(0x1a, Program(OperationINA)); + Install(0x3a, Program(OperationDEA)); } #undef Install } diff --git a/Processors/6502/Implementation/6502Storage.hpp b/Processors/6502/Implementation/6502Storage.hpp index d77a18103..ec48d8d36 100644 --- a/Processors/6502/Implementation/6502Storage.hpp +++ b/Processors/6502/Implementation/6502Storage.hpp @@ -54,9 +54,10 @@ class ProcessorStorage { OperationASO, OperationROL, OperationRLA, OperationLSR, OperationLSE, OperationASR, OperationROR, OperationRRA, OperationCLC, OperationCLI, OperationCLV, OperationCLD, - OperationSEC, OperationSEI, OperationSED, OperationINC, - OperationDEC, OperationINX, OperationDEX, OperationINY, - OperationDEY, + OperationSEC, OperationSEI, OperationSED, + + OperationINC, OperationDEC, OperationINX, OperationDEX, + OperationINY, OperationDEY, OperationINA, OperationDEA, OperationBPL, OperationBMI, OperationBVC, OperationBVS, OperationBCC, OperationBCS, OperationBNE, OperationBEQ,