@Nonnull private BuilderInstruction21t newBuilderInstruction21t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction21t instruction) { return new BuilderInstruction21t( instruction.getOpcode(), instruction.getRegisterA(), newLabel(codeAddressToIndex, codeAddress + instruction.getCodeOffset())); }
((Instruction21t)analyzedInstruction.instruction).getCodeOffset(); AnalyzedInstruction branchInstruction = analyzedInstructions.get(nextAddress);
@Nonnull private BuilderInstruction21t newBuilderInstruction21t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction21t instruction) { return new BuilderInstruction21t( instruction.getOpcode(), instruction.getRegisterA(), newLabel(codeAddressToIndex, codeAddress + instruction.getCodeOffset())); }
@Nonnull private BuilderInstruction21t newBuilderInstruction21t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction21t instruction) { return new BuilderInstruction21t( instruction.getOpcode(), instruction.getRegisterA(), newLabel(codeAddressToIndex, codeAddress + instruction.getCodeOffset())); }
@Nonnull private BuilderInstruction21t newBuilderInstruction21t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction21t instruction) { return new BuilderInstruction21t( instruction.getOpcode(), instruction.getRegisterA(), newLabel(codeAddressToIndex, codeAddress + instruction.getCodeOffset())); }
@Nonnull private BuilderInstruction21t newBuilderInstruction21t(int codeAddress, int[] codeAddressToIndex, @Nonnull Instruction21t instruction) { return new BuilderInstruction21t( instruction.getOpcode(), instruction.getRegisterA(), newLabel(codeAddressToIndex, codeAddress + instruction.getCodeOffset())); }
public static ImmutableInstruction21t of(Instruction21t instruction) { if (instruction instanceof ImmutableInstruction21t) { return (ImmutableInstruction21t)instruction; } return new ImmutableInstruction21t( instruction.getOpcode(), instruction.getRegisterA(), instruction.getCodeOffset()); }
public void write(@Nonnull Instruction21t instruction) { try { writer.write(instruction.getOpcode().value); writer.write(instruction.getRegisterA()); writer.writeShort(instruction.getCodeOffset()); } catch (IOException ex) { throw new RuntimeException(ex); } }
public static ImmutableInstruction21t of(Instruction21t instruction) { if (instruction instanceof ImmutableInstruction21t) { return (ImmutableInstruction21t)instruction; } return new ImmutableInstruction21t( instruction.getOpcode(), instruction.getRegisterA(), instruction.getCodeOffset()); }
public static ImmutableInstruction21t of(Instruction21t instruction) { if (instruction instanceof ImmutableInstruction21t) { return (ImmutableInstruction21t)instruction; } return new ImmutableInstruction21t( instruction.getOpcode(), instruction.getRegisterA(), instruction.getCodeOffset()); }
public void write(@Nonnull Instruction21t instruction) { try { writer.write(getOpcodeValue(instruction.getOpcode())); writer.write(instruction.getRegisterA()); writer.writeShort(instruction.getCodeOffset()); } catch (IOException ex) { throw new RuntimeException(ex); } }
public void write(@Nonnull Instruction21t instruction) { try { writer.write(getOpcodeValue(instruction.getOpcode())); writer.write(instruction.getRegisterA()); writer.writeShort(instruction.getCodeOffset()); } catch (IOException ex) { throw new RuntimeException(ex); } }
((Instruction21t)analyzedInstruction.instruction).getCodeOffset(); AnalyzedInstruction branchInstruction = analyzedInstructions.get(nextAddress);
case IF_EQZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.EQZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_NEZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.NEZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_LTZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.LTZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_GEZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.GEZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_GTZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.GTZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_LEZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.LEZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this));
case IF_EQZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.EQZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_NEZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.NEZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_LTZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.LTZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_GEZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.GEZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_GTZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.GTZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this)); break; case IF_LEZ: instructions.add(new Branch.UnaryBranch(instLoc, ((Instruction21t)inst).getCodeOffset(), Branch.UnaryBranch.CompareOp.LEZ, ((Instruction21t)inst).getRegisterA(), inst.getOpcode(), this));