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