Changeset 152 for trunk/Forms
- Timestamp:
- Jun 6, 2024, 9:10:15 PM (7 months ago)
- Location:
- trunk/Forms
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormCPU.pas
r149 r152 32 32 33 33 uses 34 Core, TargetInterpret ter;34 Core, TargetInterpreter; 35 35 36 36 {$R *.lfm} … … 43 43 procedure TFormCPU.Reload; 44 44 begin 45 if Core.Core.CurrentTarget is TTargetInterpret ter then46 with TTargetInterpret ter(Core.Core.CurrentTarget) do begin45 if Core.Core.CurrentTarget is TTargetInterpreter then 46 with TTargetInterpreter(Core.Core.CurrentTarget) do begin 47 47 LabelProgramPointer.Caption := IntToStr(ProgramIndex); 48 48 LabelMemoryPointer.Caption := IntToStr(MemoryPosition); -
trunk/Forms/FormInput.pas
r149 r152 23 23 24 24 uses 25 Core, TargetInterpret ter;25 Core, TargetInterpreter; 26 26 27 27 procedure TFormInput.MemoInputKeyPress(Sender: TObject; var Key: char); 28 28 begin 29 if Core.Core.CurrentTarget is TTargetInterpret ter then30 with TTargetInterpret ter(Core.Core.CurrentTarget) do29 if Core.Core.CurrentTarget is TTargetInterpreter then 30 with TTargetInterpreter(Core.Core.CurrentTarget) do 31 31 Input := Input + Key; 32 32 end; -
trunk/Forms/FormMain.pas
r149 r152 136 136 procedure AShowTargetPositionExecute(Sender: TObject); 137 137 procedure AViewCompilersExecute(Sender: TObject); 138 procedure AViewInterpret terExecute(Sender: TObject);138 procedure AViewInterpreterExecute(Sender: TObject); 139 139 procedure AViewLogExecute(Sender: TObject); 140 140 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); … … 176 176 177 177 uses 178 Core, TargetInterpret ter, BFTarget, Common, FormAbout;178 Core, TargetInterpreter, BFTarget, Common, FormAbout; 179 179 180 180 resourcestring … … 403 403 procedure TFormMain.AProgramRunExecute(Sender: TObject); 404 404 begin 405 if Core.Core.CurrentTarget is TTargetInterpret ter then406 TTargetInterpret ter(Core.Core.CurrentTarget).Input := FormInput.MemoInput.Lines.Text;405 if Core.Core.CurrentTarget is TTargetInterpreter then 406 TTargetInterpreter(Core.Core.CurrentTarget).Input := FormInput.MemoInput.Lines.Text; 407 407 if not Core.Core.CurrentTarget.Compiled then AProgramCompile.Execute; 408 408 Core.Core.CurrentTarget.Run; … … 442 442 end; 443 443 444 procedure TFormMain.AViewInterpret terExecute(Sender: TObject);444 procedure TFormMain.AViewInterpreterExecute(Sender: TObject); 445 445 begin 446 446 FormCPU.Show; -
trunk/Forms/FormMemory.pas
r149 r152 28 28 29 29 uses 30 Core, TargetInterpret ter;30 Core, TargetInterpreter; 31 31 32 32 { TFormMemory } … … 34 34 procedure TFormMemory.Reload; 35 35 begin 36 if Core.Core.CurrentTarget is TTargetInterpret ter then37 with TTargetInterpret ter(Core.Core.CurrentTarget) do begin36 if Core.Core.CurrentTarget is TTargetInterpreter then 37 with TTargetInterpreter(Core.Core.CurrentTarget) do begin 38 38 if MemoryChanged then begin 39 39 MemoryChanged := False; … … 51 51 Address: Integer; 52 52 begin 53 if Core.Core.CurrentTarget is TTargetInterpret ter then54 with TTargetInterpret ter(Core.Core.CurrentTarget) do53 if Core.Core.CurrentTarget is TTargetInterpreter then 54 with TTargetInterpreter(Core.Core.CurrentTarget) do 55 55 if (Item.Index >= 0) and (Item.Index <= Trunc((MemoryMaxUsedAddr + 1) / RowSize)) then begin 56 56 Item.Caption := IntToHex(Item.Index * RowSize, 8); -
trunk/Forms/FormOutput.pas
r149 r152 24 24 25 25 uses 26 Core, TargetInterpret ter;26 Core, TargetInterpreter; 27 27 28 28 { TFormOutput } … … 30 30 procedure TFormOutput.Reload; 31 31 begin 32 if Core.Core.CurrentTarget is TTargetInterpret ter then33 with TTargetInterpret ter(Core.Core.CurrentTarget) do begin32 if Core.Core.CurrentTarget is TTargetInterpreter then 33 with TTargetInterpreter(Core.Core.CurrentTarget) do begin 34 34 if OutputChanged then begin 35 35 OutputChanged := False;
Note:
See TracChangeset
for help on using the changeset viewer.