Example #1
0
        private string GetEffectiveAddressFor(EmulationEventArgs e)
        {
            state = e.MachineState;
            var address = String.Format("{0:x8}", state.InstructionPointer);

            return(address);
        }
Example #2
0
        private static Byte[] GetCodeFor(EmulationEventArgs e)
        {
            var code = new Byte[e.Code.Count];

            e.Code.CopyTo(code, 0);
            return(code);
        }
Example #3
0
        public void PrintInfo(object sender, EmulationEventArgs emulationEvent)
        {
            var address = GetEffectiveAddressFor(emulationEvent);

            Console.Write(address + ":");
            Console.Write("\t");

            var code = GetCodeFor(emulationEvent);

            PrintOpcodeInfoFor(code);

            Console.WriteLine(state.Registers);
            Console.WriteLine();

            HandleInputIfNecessary();
        }