Changeset 136 for trunk/UBFTarget.pas


Ignore:
Timestamp:
Mar 5, 2022, 4:14:27 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Update recent files list in registry immediately.
  • Fixed: Regresion in debugging step in and step out.
  • Fixed: Of by one index in loop start command interpretation.
  • Fixed: Correctly load directory and file name into open and save dialogs.
  • Modified: Faster interval for program output refresh.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UBFTarget.pas

    r128 r136  
    589589      ']': FProgram.Write(TMachineOperation.Create(cmLoopEnd, 0));
    590590    end;
    591     if DebugEnabled and (FProgram.Index <> LastIndex) then
    592       DebugSteps.AddStep(I - 1, FProgram.Index - 1, soNormal);
     591    if DebugEnabled and (FProgram.Index <> LastIndex) then begin
     592      case FSourceCode[I] of
     593        '[': DebugSteps.AddStep(I - 1, FProgram.Index - 1, soStepIn);
     594        ']': DebugSteps.AddStep(I - 1, FProgram.Index - 1, soStepOut);
     595        else DebugSteps.AddStep(I - 1, FProgram.Index - 1, soNormal);
     596      end;
     597    end;
    593598    LastIndex := FProgram.Index;
    594599  end;
Note: See TracChangeset for help on using the changeset viewer.