mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-19 23:29:05 +00:00
Implements INA and DEA.
This commit is contained in:
parent
bb680b40d8
commit
6f838fe190
@ -367,6 +367,8 @@ if(number_of_cycles <= Cycles(0)) break;
|
|||||||
|
|
||||||
case OperationINC: operand_++; negative_result_ = zero_result_ = operand_; continue;
|
case OperationINC: operand_++; negative_result_ = zero_result_ = operand_; continue;
|
||||||
case OperationDEC: 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 OperationINX: x_++; negative_result_ = zero_result_ = x_; continue;
|
||||||
case OperationDEX: 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;
|
case OperationINY: y_++; negative_result_ = zero_result_ = y_; continue;
|
||||||
|
@ -269,6 +269,10 @@ ProcessorStorage::ProcessorStorage(Personality personality) {
|
|||||||
OperationCorrectAddressHigh, CycleReadPCLFromAddress, // (5) read from real (addr+x)
|
OperationCorrectAddressHigh, CycleReadPCLFromAddress, // (5) read from real (addr+x)
|
||||||
CycleReadPCHFromAddressInc // (6) read from addr+x+1
|
CycleReadPCHFromAddressInc // (6) read from addr+x+1
|
||||||
));
|
));
|
||||||
|
|
||||||
|
// Add INA and DEA.
|
||||||
|
Install(0x1a, Program(OperationINA));
|
||||||
|
Install(0x3a, Program(OperationDEA));
|
||||||
}
|
}
|
||||||
#undef Install
|
#undef Install
|
||||||
}
|
}
|
||||||
|
@ -54,9 +54,10 @@ class ProcessorStorage {
|
|||||||
OperationASO, OperationROL, OperationRLA, OperationLSR,
|
OperationASO, OperationROL, OperationRLA, OperationLSR,
|
||||||
OperationLSE, OperationASR, OperationROR, OperationRRA,
|
OperationLSE, OperationASR, OperationROR, OperationRRA,
|
||||||
OperationCLC, OperationCLI, OperationCLV, OperationCLD,
|
OperationCLC, OperationCLI, OperationCLV, OperationCLD,
|
||||||
OperationSEC, OperationSEI, OperationSED, OperationINC,
|
OperationSEC, OperationSEI, OperationSED,
|
||||||
OperationDEC, OperationINX, OperationDEX, OperationINY,
|
|
||||||
OperationDEY,
|
OperationINC, OperationDEC, OperationINX, OperationDEX,
|
||||||
|
OperationINY, OperationDEY, OperationINA, OperationDEA,
|
||||||
|
|
||||||
OperationBPL, OperationBMI, OperationBVC, OperationBVS,
|
OperationBPL, OperationBMI, OperationBVC, OperationBVS,
|
||||||
OperationBCC, OperationBCS, OperationBNE, OperationBEQ,
|
OperationBCC, OperationBCS, OperationBNE, OperationBEQ,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user