mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-30 04:50:08 +00:00
Make requires_supervisor
explicitly compile-time usable.
This commit is contained in:
parent
dbf7909b85
commit
3da720c789
@ -104,9 +104,9 @@ enum class Operation: uint8_t {
|
|||||||
Max = RESET
|
Max = RESET
|
||||||
};
|
};
|
||||||
|
|
||||||
template <Model model>
|
template <Model model, Operation t_op = Operation::Undefined>
|
||||||
constexpr bool requires_supervisor(Operation op) {
|
constexpr bool requires_supervisor(Operation r_op = Operation::Undefined) {
|
||||||
switch(op) {
|
switch(t_op != Operation::Undefined ? t_op : r_op) {
|
||||||
case Operation::MOVEfromSR:
|
case Operation::MOVEfromSR:
|
||||||
if constexpr (model == Model::M68000) {
|
if constexpr (model == Model::M68000) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user