Class ASRimm

java.lang.Object
CPU.instructions.ASR.ASRimm
All Implemented Interfaces:
InstructionSet

public class ASRimm extends Object implements InstructionSet
The ASR instruction where data to be shifted is in a data reg and the shift count is immediate. 1110ccc0ss000rrr = 0xe000 mmm = mode 010 rrr = data register to be shifted ccc = the shift count ss =size : 00 = byte 01 = word 10 = long
  • Constructor Details

    • ASRimm

      public ASRimm()
  • 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.
    • disassembleOp

      protected final DisassembledInstruction disassembleOp(int address, int opcode, Size sz, MC68000Cpu cpu)
      Disassemble the instruction.
      Parameters:
      address - address of op in memory
      opcode - MC68000 opcode of operation
      sz - size (.b, .w, .l)
      cpu - cpu used
      Returns:
      the DisassembledInstruction