Esempio n. 1
0
 public IEnumerable <MachineInstruction> CreateDisassembler(Address addr)
 {
     if (!SegmentMap.TryFindSegment(addr, out var segment))
     {
         throw new ArgumentException(string.Format("The address {0} is invalid.", addr));
     }
     return(Architecture.CreateDisassembler(
                Architecture.CreateImageReader(segment.MemoryArea, addr)));
 }
Esempio n. 2
0
        public TInstruction Disassemble(MemoryArea img)
        {
            var dasm = Architecture.CreateDisassembler(Architecture.CreateImageReader(img, 0U));

            return((TInstruction)dasm.First());
        }
Esempio n. 3
0
 protected virtual IEnumerable <MachineInstruction> CreateDisassembler(EndianImageReader rdr)
 {
     return(Architecture.CreateDisassembler(rdr));
 }
Esempio n. 4
0
 public IEnumerable <MachineInstruction> CreateDisassembler(Address addr)
 {
     return(Architecture.CreateDisassembler(
                Architecture.CreateImageReader(Image, addr)));
 }