Exemple #1
0
        public static OpcodeEncoder AppendConditionalREXPrefix(this OpcodeEncoder encoder, bool w, bool r, bool x, bool b, bool include)
        {
            if (!include)
            {
                return(encoder);
            }

            // REX Prefix Fields [BITS: 0100WRXB]
            encoder.AppendNibble(Bits.b0100);
            encoder.AppendBit(w);
            encoder.AppendBit(r);
            encoder.AppendBit(x);
            encoder.AppendBit(b);

            return(encoder);
        }
Exemple #2
0
 public static OpcodeEncoder AppendWidthBit(this OpcodeEncoder encoder, bool width)
 {
     return(encoder.AppendBit(width ? 1 : 0));
 }