mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
Attempts MOVEP.
This commit is contained in:
parent
64586ca7ba
commit
665f2d4c00
@ -1176,6 +1176,22 @@ template <
|
|||||||
#undef set_neg_zero_overflow
|
#undef set_neg_zero_overflow
|
||||||
#undef set_neg_zero
|
#undef set_neg_zero
|
||||||
|
|
||||||
|
case Operation::MOVEPl:
|
||||||
|
if(instruction.mode<0>() == AddressingMode::DataRegisterDirect) {
|
||||||
|
flow_controller.template movep_fromR<uint16_t>(src.l, dest.l);
|
||||||
|
} else {
|
||||||
|
flow_controller.template movep_toR<uint16_t>(src.l, dest.l);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case Operation::MOVEPw:
|
||||||
|
if(instruction.mode<0>() == AddressingMode::DataRegisterDirect) {
|
||||||
|
flow_controller.template movep_fromR<uint32_t>(src.l, dest.l);
|
||||||
|
} else {
|
||||||
|
flow_controller.template movep_toR<uint32_t>(src.l, dest.l);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
RTE and RTR share an implementation.
|
RTE and RTR share an implementation.
|
||||||
*/
|
*/
|
||||||
|
@ -264,6 +264,7 @@ template <Model model, Operation t_operation = Operation::Undefined> uint8_t ope
|
|||||||
//
|
//
|
||||||
case Operation::PEA:
|
case Operation::PEA:
|
||||||
case Operation::JMP: case Operation::JSR:
|
case Operation::JMP: case Operation::JSR:
|
||||||
|
case Operation::MOVEPw: case Operation::MOVEPl:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user