Ignore:
Timestamp:
Jul 14, 2022, 11:29:01 PM (22 months ago)
Author:
chronos
Message:
  • Added: Cpu state window.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UltimatOS/UCpu.pas

    r34 r35  
    8282    procedure InstructionDisableInt;
    8383  public
    84     ExecutedCount: Integer;
     84    Ticks: Int64;
    8585    InterruptCount: Integer;
    8686    Terminated: Boolean;
     
    159159  if AValue and not Assigned(FCpuThread) then begin
    160160    FCpuThread := TCpuThread.Create(True);
    161     FCpuThread.FreeOnTerminate := True;
     161    FCpuThread.FreeOnTerminate := False;
    162162    FCpuThread.Cpu := Self;
    163163    FCpuThread.Start;
     
    488488    FInstructionHandlers[Instruction]
    489489    else raise Exception.Create('Missing handler for instruction ' + IntToStr(Integer(Instruction)));
    490   Inc(ExecutedCount);
     490  Inc(Ticks);
    491491end;
    492492
     
    496496  IP := 0;
    497497  SP := 0;
    498   ExecutedCount := 0;
     498  Ticks := 0;
    499499  InterruptEnabled := True;
    500500  InterruptPending := False;
Note: See TracChangeset for help on using the changeset viewer.