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

Decode SWAP.

This commit is contained in:
Thomas Harte 2022-04-19 08:37:13 -04:00
parent 5509f20025
commit 1abd3bd7f3

View File

@ -371,6 +371,15 @@ template <uint8_t op, bool validate> Preinstruction Predecoder<model>::decode(ui
AddressingMode::DataRegisterDirect, ea_register,
AddressingMode::ImmediateData, 0);
//
// MARK: SWAP
//
// b0b2: a data register.
//
case OpT(Operation::SWAP):
return Preinstruction(operation,
AddressingMode::DataRegisterDirect, ea_register);
//
// MARK: MOVEMtoMw, MOVEMtoMl, MOVEMtoRw, MOVEMtoRl
//