1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-03-25 06:30:38 +00:00

Fix Scc, add operand flags for DBcc.

This commit is contained in:
Thomas Harte 2022-05-03 14:23:57 -04:00
parent b6ffff5bbd
commit 1b224c961e
2 changed files with 3 additions and 1 deletions
InstructionSets/M68k

@ -311,7 +311,7 @@ template <
break;
case Operation::Scc:
dest.b = status.evaluate_condition(instruction.condition()) ? 0xff : 0x00;
src.b = status.evaluate_condition(instruction.condition()) ? 0xff : 0x00;
break;
/*

@ -277,6 +277,7 @@ template <Model model, Operation t_operation = Operation::Undefined> uint8_t ope
// Single-operand write.
//
case Operation::MOVEfromSR: case Operation::MOVEfromUSP:
case Operation::Scc:
return StoreOp1;
//
@ -291,6 +292,7 @@ template <Model model, Operation t_operation = Operation::Undefined> uint8_t ope
//
case Operation::CMPb: case Operation::CMPw: case Operation::CMPl:
case Operation::CMPAw: case Operation::CMPAl:
case Operation::DBcc:
return FetchOp1 | FetchOp2;
//