Ejemplo n.º 1
0
        private void UpdateDisplay(ulong address, byte[] memory)
        {
            instructions.Clear();

            var disassembler = new Disassembler("x86");

            disassembler.SetMemory(memory, address);

            foreach (var instruction in disassembler.Decode())
            {
                var entry = new InstructionEntry()
                {
                    IP          = instruction.Address,
                    Length      = instruction.Length,
                    Instruction = instruction.Instruction.ToString()
                };

                instructions.Add(entry);
            }
        }