1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

Attempts MOVEP.

This commit is contained in:
Thomas Harte 2022-05-05 09:00:33 -04:00
parent 64586ca7ba
commit 665f2d4c00
2 changed files with 17 additions and 0 deletions

View File

@ -1176,6 +1176,22 @@ template <
#undef set_neg_zero_overflow
#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.
*/

View File

@ -264,6 +264,7 @@ template <Model model, Operation t_operation = Operation::Undefined> uint8_t ope
//
case Operation::PEA:
case Operation::JMP: case Operation::JSR:
case Operation::MOVEPw: case Operation::MOVEPl:
return 0;
//