1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Map STA (d), y to correct calculator.

This commit is contained in:
Thomas Harte 2022-06-23 20:57:47 -04:00
parent da552abf75
commit a23b0f5122

View File

@ -479,7 +479,11 @@ struct CPU::WDC65816::ProcessorStorageConstructor {
target(CycleFetchData); // AAH.
target(OperationCopyDataToInstruction);
target(OperationConstructAbsoluteYRead);
if(type == AccessType::Read) {
target(OperationConstructAbsoluteYRead); // Calculate data address, potentially skipping the next fetch.
} else {
target(OperationConstructAbsoluteY); // Calculate data address.
}
target(CycleFetchIncorrectDataAddress); // IO.
read_write(type, is8bit, target);