@Nonnull private BuilderInstruction12x newBuilderInstruction12x(@Nonnull Instruction12x instruction) { return new BuilderInstruction12x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
@Nonnull private BuilderInstruction12x newBuilderInstruction12x(@Nonnull Instruction12x instruction) { return new BuilderInstruction12x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
@Nonnull private BuilderInstruction12x newBuilderInstruction12x(@Nonnull Instruction12x instruction) { return new BuilderInstruction12x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
@Nonnull private BuilderInstruction12x newBuilderInstruction12x(@Nonnull Instruction12x instruction) { return new BuilderInstruction12x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
@Nonnull private BuilderInstruction12x newBuilderInstruction12x(@Nonnull Instruction12x instruction) { return new BuilderInstruction12x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
public static ImmutableInstruction12x of(Instruction12x instruction) { if (instruction instanceof ImmutableInstruction12x) { return (ImmutableInstruction12x)instruction; } return new ImmutableInstruction12x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
public static ImmutableInstruction12x of(Instruction12x instruction) { if (instruction instanceof ImmutableInstruction12x) { return (ImmutableInstruction12x)instruction; } return new ImmutableInstruction12x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
public static ImmutableInstruction12x of(Instruction12x instruction) { if (instruction instanceof ImmutableInstruction12x) { return (ImmutableInstruction12x)instruction; } return new ImmutableInstruction12x( instruction.getOpcode(), instruction.getRegisterA(), instruction.getRegisterB()); }
public void write(@Nonnull Instruction12x instruction) { try { writer.write(instruction.getOpcode().value); writer.write(packNibbles(instruction.getRegisterA(), instruction.getRegisterB())); } catch (IOException ex) { throw new RuntimeException(ex); } }
public void write(@Nonnull Instruction12x instruction) { try { writer.write(getOpcodeValue(instruction.getOpcode())); writer.write(packNibbles(instruction.getRegisterA(), instruction.getRegisterB())); } catch (IOException ex) { throw new RuntimeException(ex); } }
public void write(@Nonnull Instruction12x instruction) { try { writer.write(getOpcodeValue(instruction.getOpcode())); writer.write(packNibbles(instruction.getRegisterA(), instruction.getRegisterB())); } catch (IOException ex) { throw new RuntimeException(ex); } }