Beispiel #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)));
 }
Beispiel #2
0
        public TInstruction Disassemble(MemoryArea img)
        {
            var dasm = Architecture.CreateDisassembler(Architecture.CreateImageReader(img, 0U));

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