mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-18 01:30:56 +00:00
Fix postincrement mode.
This commit is contained in:
parent
256da43fe5
commit
4bd9c36922
@ -1595,6 +1595,12 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
|
|||||||
// Perform one more read, spuriously.
|
// Perform one more read, spuriously.
|
||||||
Access(temporary_value_.low); // nr
|
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
|
Prefetch(); // np
|
||||||
MoveToState(Decode);
|
MoveToState(Decode);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user