public void Setup()
 {
     this.mr         = new MockRepository();
     this.arch       = new MipsLe32Architecture();
     this.typeLoader = mr.Stub <ISerializedTypeVisitor <DataType> >();
     this.ssig       = null;
     this.sig        = null;
 }
示例#2
0
        private void Given_Mips_Image(params uint[] words)
        {
            var image = new MemoryArea(
                Address.Ptr32(0x10000),
                words.Select(w => new[]
            {
                (byte)w,
                (byte)(w >> 8),
                (byte)(w >> 16),
                (byte)(w >> 24)
            })
                .SelectMany(w => w)
                .ToArray());
            var arch = new MipsLe32Architecture("mips-le-32");

            CreateProgram(image, arch);
        }
示例#3
0
        private void Given_Mips_Image(params uint[] words)
        {
            var image = new ByteMemoryArea(
                Address.Ptr32(0x10000),
                words.Select(w => new[]
            {
                (byte)w,
                (byte)(w >> 8),
                (byte)(w >> 16),
                (byte)(w >> 24)
            })
                .SelectMany(w => w)
                .ToArray());
            var arch = new MipsLe32Architecture(new ServiceContainer(), "mips-le-32", new Dictionary <string, object>());

            CreateProgram(image, arch);
        }
示例#4
0
 public void Setup()
 {
     this.mr   = new MockRepository();
     this.arch = new MipsLe32Architecture("mips-le-32");
 }
示例#5
0
 public void Setup()
 {
     this.arch = new MipsLe32Architecture(new ServiceContainer(), "mips-le-32", new Dictionary <string, object>());
 }
示例#6
0
 public NanoMipsRewriterTests()
 {
     this.arch = new MipsLe32Architecture(CreateServiceContainer(), "nano-mips", new Dictionary <string, object>());
     this.addr = Address.Ptr32(0x0010_0000);
 }
示例#7
0
 public NanoMipsRewriterTests()
 {
     this.arch = new MipsLe32Architecture(CreateServiceContainer(), "nano-mips");
     this.addr = Address.Ptr32(0x0010_0000);
 }
示例#8
0
 public void Setup()
 {
     this.arch = new MipsLe32Architecture(new ServiceContainer(), "mips-le-32");
 }
示例#9
0
 public void Setup()
 {
     this.arch = new MipsLe32Architecture("mips-le-32");
 }