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:
@@ -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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user