Class ANDreg

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

public class ANDreg extends Object implements InstructionSet
The AND instruction where the destination is a register, in all of its variants. fedcba9876543210 1100dddooommmrrr = c000 where rrr = ea reg mmm = ea mode ooo = opmode/size = 0ss ddd = destination data reg
  • Constructor Details

    • ANDreg

      public ANDreg()
  • 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 int getDisplacement(MC68000Cpu cpu)
      Gets the displacement and increments the PC.
      Parameters:
      cpu - the smsqmulator.cpu.MC68000Cpu used the cpu used.
      Returns:
      the displacement