Class CMP_d8AnXn

java.lang.Object
CPU.instructions.CMP.CMP_d8AnXn
All Implemented Interfaces:
InstructionSet

public class CMP_d8AnXn extends Object implements InstructionSet
The CMP and CMPA instruction where source is d8(An,Xn).
  • Constructor Details

    • CMP_d8AnXn

      public CMP_d8AnXn()
  • 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.
    • getDisplacement

      protected static final int getDisplacement(MC68000Cpu cpu)
      gets the displacement and increments the PC.
      Parameters:
      cpu - the smsqmulator.cpu.MC68000Cpu used
      Returns:
      the displacement
    • disassembleOp

      protected final DisassembledInstruction disassembleOp(int address, int opcode, Size sz, String reg, MC68000Cpu cpu)