Ejemplo n.º 1
0
 public BuilderInstruction23x(
     @Nonnull Opcode opcode, int registerA, int registerB, int registerC) {
   super(opcode);
   this.registerA = Preconditions.checkByteRegister(registerA);
   this.registerB = Preconditions.checkByteRegister(registerB);
   this.registerC = Preconditions.checkByteRegister(registerC);
 }
Ejemplo n.º 2
0
 public BuilderInstruction35c(
     @Nonnull Opcode opcode,
     int registerCount,
     int registerC,
     int registerD,
     int registerE,
     int registerF,
     int registerG,
     @Nonnull Reference reference) {
   super(opcode);
   this.registerCount = Preconditions.check35cRegisterCount(registerCount);
   this.registerC = (registerCount > 0) ? Preconditions.checkNibbleRegister(registerC) : 0;
   this.registerD = (registerCount > 1) ? Preconditions.checkNibbleRegister(registerD) : 0;
   this.registerE = (registerCount > 2) ? Preconditions.checkNibbleRegister(registerE) : 0;
   this.registerF = (registerCount > 3) ? Preconditions.checkNibbleRegister(registerF) : 0;
   this.registerG = (registerCount > 4) ? Preconditions.checkNibbleRegister(registerG) : 0;
   this.reference = reference;
 }
 public ImmutableInstruction51l(@Nonnull Opcode opcode, int registerA, long literal) {
   super(opcode);
   this.registerA = Preconditions.checkByteRegister(registerA);
   this.literal = literal;
 }