Changeset 186 for branches/virtualcpu4/Forms/UFormMain.pas
- Timestamp:
- May 1, 2019, 11:39:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/virtualcpu4/Forms/UFormMain.pas
r185 r186 15 15 TFormMain = class(TForm) 16 16 ButtonAssembler: TButton; 17 ButtonCompilerPascal: TButton; 17 18 ButtonClearMemory: TButton; 18 19 ButtonScreen: TButton; … … 25 26 procedure ButtonAssemblerClick(Sender: TObject); 26 27 procedure ButtonClearMemoryClick(Sender: TObject); 28 procedure ButtonCompilerPascalClick(Sender: TObject); 27 29 procedure ButtonConsoleClick(Sender: TObject); 28 30 procedure ButtonCpuStateClick(Sender: TObject); … … 52 54 uses 53 55 UFormDisassembler, UFormMemory, UFormCpuState, UFormScreen, UFormConsole, 54 UFormAssembler ;56 UFormAssembler, UFormCompilerPascal; 55 57 56 58 { TFormMain } … … 116 118 begin 117 119 Machine.ClearMemory; 120 end; 121 122 procedure TFormMain.ButtonCompilerPascalClick(Sender: TObject); 123 begin 124 if not Assigned(FormCompilerPascal) then 125 FormCompilerPascal := TFormCompilerPascal.Create(Self); 126 FormCompilerPascal.CompilerPascal.Reader.Cpu := Machine.Cpu; 127 FormCompilerPascal.Show; 118 128 end; 119 129
Note:
See TracChangeset
for help on using the changeset viewer.