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

Fix postincrement mode.

This commit is contained in:
Thomas Harte 2022-05-20 21:01:23 -04:00
parent 256da43fe5
commit 4bd9c36922

View File

@ -1595,6 +1595,12 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
// Perform one more read, spuriously.
Access(temporary_value_.low); // nr
// Write the address back to the register if
// this was post-increment mode.
if(instruction_.mode(1) == Mode::AddressRegisterIndirectWithPostincrement) {
registers_[8 + instruction_.reg(1)].l = effective_address_[1];
}
Prefetch(); // np
MoveToState(Decode);