@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, 0L, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, 0L, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = nibble2(opcodeUnit); int literal = (nibble3(opcodeUnit) << 28) >> 28; // sign-extend return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, literal, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, 0L, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = nibble2(opcodeUnit); int literal = (nibble3(opcodeUnit) << 28) >> 28; // sign-extend return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, literal, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = nibble2(opcodeUnit); int literal = (nibble3(opcodeUnit) << 28) >> 28; // sign-extend return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, literal, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = nibble2(opcodeUnit); int literal = (nibble3(opcodeUnit) << 28) >> 28; // sign-extend return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, literal, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int literal = (short) in.read(); // sign-extend return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, literal, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int literal = in.readInt(); return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, literal, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int literal = in.readInt(); return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, literal, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int literal = in.readInt(); return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, literal, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int literal = in.readInt(); return new OneRegisterDecodedInstruction( this, opcode, 0, null, 0, literal, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int baseAddress = in.cursor() - 1; int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int target = (short) in.read(); // sign-extend return new OneRegisterDecodedInstruction( this, opcode, 0, null, baseAddress + target, 0L, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int index = in.readInt(); IndexType indexType = OpcodeInfo.getIndexType(opcode); return new OneRegisterDecodedInstruction( this, opcode, index, indexType, 0, 0L, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int baseAddress = in.cursor() - 1; int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int target = (short) in.read(); // sign-extend return new OneRegisterDecodedInstruction( this, opcode, 0, null, baseAddress + target, 0L, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int index = in.read(); IndexType indexType = OpcodeInfo.getIndexType(opcode); return new OneRegisterDecodedInstruction( this, opcode, index, indexType, 0, 0L, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int index = in.read(); IndexType indexType = OpcodeInfo.getIndexType(opcode); return new OneRegisterDecodedInstruction( this, opcode, index, indexType, 0, 0L, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int opcode = byte0(opcodeUnit); int a = byte1(opcodeUnit); int index = in.read(); IndexType indexType = OpcodeInfo.getIndexType(opcode); return new OneRegisterDecodedInstruction( this, opcode, index, indexType, 0, 0L, a); }
@Override public DecodedInstruction decode(int opcodeUnit, CodeInput in) throws EOFException { int index = in.readInt(); int a = in.read(); IndexType indexType = OpcodeInfo.getIndexType(opcodeUnit); return new OneRegisterDecodedInstruction( this, opcodeUnit, index, indexType, 0, 0L, a); }
/** @inheritDoc */ public DecodedInstruction withIndex(int newIndex) { return new OneRegisterDecodedInstruction( getFormat(), getOpcode(), newIndex, getIndexType(), getTarget(), getLiteral(), a); } }