mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-23 20:29:42 +00:00
Make steps more visible.
This commit is contained in:
parent
b9d243552c
commit
cde75a1c00
@ -26,7 +26,22 @@ template<Model model> uint16_t Sequence<model>::steps_for(Operation operation) {
|
||||
//
|
||||
// Single operand, read-modify-write.
|
||||
//
|
||||
case Operation::NBCD: return Steps< Step::FetchOp1, Step::Perform, Step::StoreOp1 >::value;
|
||||
case Operation::NBCD: return Steps<
|
||||
Step::FetchOp1,
|
||||
Step::Perform,
|
||||
Step::StoreOp1
|
||||
>::value;
|
||||
|
||||
//
|
||||
// Two operand, read-write.
|
||||
//
|
||||
case Operation::MOVEb: case Operation::MOVEw: case Operation::MOVEl:
|
||||
case Operation::MOVEAw: case Operation::MOVEAl:
|
||||
return Steps<
|
||||
Step::FetchOp1,
|
||||
Step::Perform,
|
||||
Step::StoreOp2
|
||||
>::value;
|
||||
|
||||
//
|
||||
// Two operand, read-modify-write.
|
||||
@ -38,14 +53,12 @@ template<Model model> uint16_t Sequence<model>::steps_for(Operation operation) {
|
||||
case Operation::SUBb: case Operation::SUBw: case Operation::SUBl:
|
||||
case Operation::SUBAw: case Operation::SUBAl:
|
||||
case Operation::SUBXb: case Operation::SUBXw: case Operation::SUBXl:
|
||||
return Steps< Step::FetchOp1, Step::FetchOp2, Step::Perform, Step::StoreOp2 >::value;
|
||||
|
||||
//
|
||||
// Two operand, read-write.
|
||||
//
|
||||
case Operation::MOVEb: case Operation::MOVEw: case Operation::MOVEl:
|
||||
case Operation::MOVEAw: case Operation::MOVEAl:
|
||||
return Steps< Step::FetchOp1, Step::Perform, Step::StoreOp2 >::value;
|
||||
return Steps<
|
||||
Step::FetchOp1,
|
||||
Step::FetchOp2,
|
||||
Step::Perform,
|
||||
Step::StoreOp2
|
||||
>::value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user