Class SWAP

java.lang.Object
CPU.instructions.SWAP
All Implemented Interfaces:
InstructionSet

public class SWAP extends Object implements InstructionSet
The SWAP instruction in all of its variants. 0100100001000rrr =0x4840 where rrr = data reg to be swapped
  • Constructor Details

    • SWAP

      public SWAP()
  • Method Details

    • register

      public final void register(MC68000Cpu cpu2)
      Description copied from interface: InstructionSet
      Registers the InstructionSet with the cpu.
      Specified by:
      register in interface InstructionSet
      Parameters:
      cpu2 - the cpu to use.