예제 #1
0
        public int GetCurrentInstructionLength()
        {
            var fetcher     = new Fetcher8086(_cpu);
            var instruction = OpCodeManager.Decode(fetcher);

            return(fetcher.GetBytesFetched());
        }
예제 #2
0
        public string GetCurrentInstructionString()
        {
            var fetcher         = new Fetcher8086(_cpu);
            var instruction     = OpCodeManager.Decode(fetcher);
            var instructionText = $"{_cpu.GetRegister(Register.CS):X4}:{_cpu.GetRegister(Register.IP):X4} ";

            instructionText += InstructionStringHelper.OutputInstruction(instruction);
            return(instructionText);
        }