1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +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(CycleFetchData); // AAH.
target(OperationCopyDataToInstruction); 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. target(CycleFetchIncorrectDataAddress); // IO.
read_write(type, is8bit, target); read_write(type, is8bit, target);