Example #1
0
 protected override MemoryArea RewriteCode(uint[] words)
 {
     byte[] bytes = words.SelectMany(w => new byte[]
     {
         (byte) w,
         (byte) (w >> 8),
         (byte) (w >> 16),
         (byte) (w >> 24)
     }).ToArray();
     this.image = new MemoryArea(LoadAddress, bytes);
     var dasm = new RiscVDisassembler(arch, image.CreateLeReader(LoadAddress));
     return image;
 }
Example #2
0
        protected override MemoryArea RewriteCode(uint[] words)
        {
            byte[] bytes = words.SelectMany(w => new byte[]
            {
                (byte)w,
                (byte)(w >> 8),
                (byte)(w >> 16),
                (byte)(w >> 24)
            }).ToArray();
            this.image = new MemoryArea(LoadAddress, bytes);
            var dasm = new RiscVDisassembler(arch, image.CreateLeReader(LoadAddress));

            return(image);
        }