Exemplo n.º 1
0
        public override X86Disassembler CreateDisassembler(EndianImageReader rdr, X86Options options)
        {
            var dasm = new X86Disassembler(this, rdr, PrimitiveType.Word16, PrimitiveType.Word16, false);

            if (options != null)
            {
                dasm.Emulate8087 = options.Emulate8087;
            }
            return(dasm);
        }
Exemplo n.º 2
0
 public abstract X86Disassembler CreateDisassembler(EndianImageReader rdr, X86Options options);
Exemplo n.º 3
0
 public override X86Disassembler CreateDisassembler(EndianImageReader rdr, X86Options options)
 {
     return(new X86Disassembler(this, rdr, PrimitiveType.Word32, PrimitiveType.Word64, true));
 }
Exemplo n.º 4
0
 public override X86Disassembler CreateDisassembler(ImageReader rdr, X86Options options)
 {
     return new X86Disassembler(this, rdr, PrimitiveType.Word32, PrimitiveType.Word64, true);
 }
Exemplo n.º 5
0
 public abstract X86Disassembler CreateDisassembler(ImageReader rdr, X86Options options);
Exemplo n.º 6
0
 public abstract X86Disassembler CreateDisassembler(IServiceProvider services, EndianImageReader rdr, X86Options options);
Exemplo n.º 7
0
 public override X86Disassembler CreateDisassembler(ImageReader rdr, X86Options options)
 {
     var dasm = new X86Disassembler(this, rdr, PrimitiveType.Word16, PrimitiveType.Word16, false);
     if (options != null)
     {
         dasm.Emulate8087 = options.Emulate8087;
     }
     return dasm;
 }
Exemplo n.º 8
0
 public override X86Disassembler CreateDisassembler(ImageReader rdr, X86Options options)
 {
     return(new X86Disassembler(this, rdr, PrimitiveType.Word16, PrimitiveType.Word16, false));
 }
Exemplo n.º 9
0
 public override X86Disassembler CreateDisassembler(IServiceProvider services, EndianImageReader rdr, X86Options options)
 {
     return(new X86Disassembler(services, this, rdr, PrimitiveType.Word32, PrimitiveType.Word32, false));
 }
Exemplo n.º 10
0
 public void Dis_x86_emulate_x87_int_3C()
 {
     options = new X86Options { Emulate8087 = true };
     CreateDisassembler16(0xCD, 0x3C, 0xDD, 0x06, 0x8B, 0x04);
     var instrs = dasm.Take(2)
         .Select(i => i.ToString())
         .ToArray();
     Assert.AreEqual("nop\t", instrs[0]);
     Assert.AreEqual("fld\tdouble ptr es:[048B]", instrs[1]);
 }
Exemplo n.º 11
0
 public void Dis_x86_emulate_x87_int_39()
 {
     options = new X86Options { Emulate8087 = true };
     CreateDisassembler16(0xCD, 0x39, 0x5E, 0xEA);
     var instrs = dasm.Take(2)
         .Select(i => i.ToString())
         .ToArray();
     Assert.AreEqual("nop\t", instrs[0]);
     Assert.AreEqual("fstp\tdouble ptr [bp-16]", instrs[1]);
 }
Exemplo n.º 12
0
 public void Setup()
 {
     options = null;
 }