Пример #1
0
 protected int getEncoding(
     final SymbolTable symbolTable,
     final RelocationTable relocationTable,
     final ImportedNames importedNames)
     throws AssemblyException {
   return Bits.replaceBits(
       this.encoding,
       0,
       16,
       (this.immed16 == null)
           ? 0
           : this.mnemonic.makeImmediateData(
               this.address,
               symbolTable,
               relocationTable,
               importedNames,
               this.immed16,
               this.line));
 }
Пример #2
0
 private static int make(final int n, final int n2, final int n3) {
   return Bits.replaceBits(Bits.replaceBits(Bits.replaceBits(0, 16, 5, n3), 21, 5, n2), 26, 6, n);
 }