Changeset 35 for branches/UltimatOS/UCpu.pas
- Timestamp:
- Jul 14, 2022, 11:29:01 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UltimatOS/UCpu.pas
r34 r35 82 82 procedure InstructionDisableInt; 83 83 public 84 ExecutedCount: Integer;84 Ticks: Int64; 85 85 InterruptCount: Integer; 86 86 Terminated: Boolean; … … 159 159 if AValue and not Assigned(FCpuThread) then begin 160 160 FCpuThread := TCpuThread.Create(True); 161 FCpuThread.FreeOnTerminate := True;161 FCpuThread.FreeOnTerminate := False; 162 162 FCpuThread.Cpu := Self; 163 163 FCpuThread.Start; … … 488 488 FInstructionHandlers[Instruction] 489 489 else raise Exception.Create('Missing handler for instruction ' + IntToStr(Integer(Instruction))); 490 Inc( ExecutedCount);490 Inc(Ticks); 491 491 end; 492 492 … … 496 496 IP := 0; 497 497 SP := 0; 498 ExecutedCount:= 0;498 Ticks := 0; 499 499 InterruptEnabled := True; 500 500 InterruptPending := False;
Note:
See TracChangeset
for help on using the changeset viewer.