1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-08-09 05:25:01 +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

View File

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

View File

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