Changeset 186 for branches/virtualcpu4/Forms
- Timestamp:
- May 1, 2019, 11:39:27 PM (6 years ago)
- Location:
- branches/virtualcpu4/Forms
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/virtualcpu4/Forms/UFormMain.lfm
r185 r186 1 1 object FormMain: TFormMain 2 Left = 7803 Height = 2694 Top = 5275 Width = 6592 Left = 686 3 Height = 318 4 Top = 444 5 Width = 806 6 6 Caption = 'VirtCpu4' 7 ClientHeight = 2698 ClientWidth = 6597 ClientHeight = 318 8 ClientWidth = 806 9 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate … … 43 43 end 44 44 object ButtonMemory: TButton 45 Left = 37145 Left = 24 46 46 Height = 38 47 Top = 6447 Top = 112 48 48 Width = 185 49 49 Caption = 'Memory' … … 53 53 end 54 54 object ButtonCpuState: TButton 55 Left = 37155 Left = 24 56 56 Height = 38 57 Top = 1 1057 Top = 160 58 58 Width = 185 59 59 Caption = 'CPU state' … … 85 85 Left = 371 86 86 Height = 38 87 Top = 15487 Top = 56 88 88 Width = 185 89 89 Caption = 'Assembler' … … 93 93 end 94 94 object ButtonClearMemory: TButton 95 Left = 37195 Left = 24 96 96 Height = 38 97 Top = 19297 Top = 208 98 98 Width = 185 99 99 Caption = 'Clear memory' … … 102 102 TabOrder = 8 103 103 end 104 object ButtonCompilerPascal: TButton 105 Left = 371 106 Height = 38 107 Top = 200 108 Width = 185 109 Caption = 'Pascal compiler' 110 OnClick = ButtonCompilerPascalClick 111 ParentFont = False 112 TabOrder = 9 113 end 104 114 end -
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.