Exemplo n.º 1
0
        public int AddBreakpointOnProgramLine(int lineNumber)
        {
            ProgramLine programLine = programInMemory.Lines[lineNumber - 1];
            InstructionAddressCondition instructionAddressCondition = new InstructionAddressCondition(programLine.LineAddress);
            int breakpointIndex = cpu.AddExitCondition(instructionAddressCondition);

            return(breakpointIndex);
        }
 public int AddBreakpointOnProgramLine(ProgramInMemory programInMemory, int lineNumber)
 {
     ProgramLine programLine = programInMemory.Program.Lines[lineNumber - 1];
     InstructionAddressCondition instructionAddressCondition = new InstructionAddressCondition(programLine.LineAddress);
     int breakpointIndex = CPU.AddExitCondition(instructionAddressCondition);
     return breakpointIndex;
 }