mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-07 23:25:00 +00:00
Assert on some hopefully unreachables.
This commit is contained in:
@@ -361,21 +361,29 @@ template <
|
|||||||
case Operation::POPF:
|
case Operation::POPF:
|
||||||
if constexpr (std::is_same_v<IntT, uint16_t> || std::is_same_v<IntT, uint32_t>) {
|
if constexpr (std::is_same_v<IntT, uint16_t> || std::is_same_v<IntT, uint32_t>) {
|
||||||
Primitive::popf(context);
|
Primitive::popf(context);
|
||||||
|
} else {
|
||||||
|
assert(false);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case Operation::PUSHF:
|
case Operation::PUSHF:
|
||||||
if constexpr (std::is_same_v<IntT, uint16_t> || std::is_same_v<IntT, uint32_t>) {
|
if constexpr (std::is_same_v<IntT, uint16_t> || std::is_same_v<IntT, uint32_t>) {
|
||||||
Primitive::pushf(context);
|
Primitive::pushf(context);
|
||||||
|
} else {
|
||||||
|
assert(false);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case Operation::POPA:
|
case Operation::POPA:
|
||||||
if constexpr (std::is_same_v<IntT, uint16_t> || std::is_same_v<IntT, uint32_t>) {
|
if constexpr (std::is_same_v<IntT, uint16_t> || std::is_same_v<IntT, uint32_t>) {
|
||||||
Primitive::popa<IntT>(context);
|
Primitive::popa<IntT>(context);
|
||||||
|
} else {
|
||||||
|
assert(false);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case Operation::PUSHA:
|
case Operation::PUSHA:
|
||||||
if constexpr (std::is_same_v<IntT, uint16_t> || std::is_same_v<IntT, uint32_t>) {
|
if constexpr (std::is_same_v<IntT, uint16_t> || std::is_same_v<IntT, uint32_t>) {
|
||||||
Primitive::pusha<IntT>(context);
|
Primitive::pusha<IntT>(context);
|
||||||
|
} else {
|
||||||
|
assert(false);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user