1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-29 20:31:46 +00:00

DBcc: add write-back.

This commit is contained in:
Thomas Harte 2022-05-20 11:37:18 -04:00
parent 860cc63e21
commit 4327af3760

View File

@ -1109,7 +1109,11 @@ void Processor<BusHandler, dtack_is_implicit, permit_overrun, signal_will_perfor
InstructionSet::M68k::Operation::DBcc
>(
instruction_, operand_[0], operand_[1], status_, *static_cast<ProcessorBase *>(this));
// Next state is set by complete_dbcc
// Just do the write-back here.
registers_[instruction_.reg(0)].w = operand_[0].w;
// Next state was set by complete_dbcc. Branch to it.
break;
BeginState(DBcc_branch_taken):