Changeset 184 for branches/virtualcpu4/Forms
- Timestamp:
- Apr 25, 2019, 4:20:43 PM (6 years ago)
- Location:
- branches/virtualcpu4/Forms
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/virtualcpu4/Forms/UFormDisassembler.lfm
r181 r184 1 1 object FormDisassembler: TFormDisassembler 2 Left = 6873 Height = 6914 Top = 4165 Width = 7212 Left = 587 3 Height = 576 4 Top = 248 5 Width = 601 6 6 Caption = 'Disassembler' 7 ClientHeight = 6918 ClientWidth = 7219 DesignTimePPI = 1 447 ClientHeight = 576 8 ClientWidth = 601 9 DesignTimePPI = 120 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 LCLVersion = '2.0.0.4' 12 OnShow = FormShow 13 LCLVersion = '2.0.2.0' 13 14 object ListView1: TListView 14 Left = 8 15 Height = 675 16 Top = 8 17 Width = 705 18 Align = alClient 19 BorderSpacing.Around = 8 15 Left = 7 16 Height = 521 17 Top = 7 18 Width = 587 19 Align = alCustom 20 Anchors = [akTop, akLeft, akRight, akBottom] 21 BorderSpacing.Around = 7 20 22 Columns = < 21 23 item 22 24 Caption = 'Address' 23 Width = 10025 Width = 83 24 26 end 25 27 item 26 28 Caption = 'Opcode' 27 Width = 1 5029 Width = 125 28 30 end 29 31 item 30 32 Caption = 'Assembly' 31 Width = 44033 Width = 367 32 34 end> 33 35 OwnerData = True 36 ParentFont = False 34 37 ReadOnly = True 35 38 RowSelect = True … … 38 41 OnData = ListView1Data 39 42 end 43 object ButtonReload: TButton 44 Left = 7 45 Height = 31 46 Top = 536 47 Width = 94 48 Anchors = [akLeft, akBottom] 49 Caption = 'Reload' 50 OnClick = ButtonReloadClick 51 TabOrder = 1 52 end 40 53 end -
branches/virtualcpu4/Forms/UFormDisassembler.pas
r181 r184 6 6 7 7 uses 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, StdCtrls, 9 9 UDisassembler; 10 10 … … 14 14 15 15 TFormDisassembler = class(TForm) 16 ButtonReload: TButton; 16 17 ListView1: TListView; 18 procedure ButtonReloadClick(Sender: TObject); 17 19 procedure FormCreate(Sender: TObject); 18 20 procedure FormDestroy(Sender: TObject); 21 procedure FormShow(Sender: TObject); 19 22 procedure ListView1Data(Sender: TObject; Item: TListItem); 20 23 private … … 39 42 end; 40 43 44 procedure TFormDisassembler.ButtonReloadClick(Sender: TObject); 45 begin 46 Disassembler.Process; 47 Reload; 48 end; 49 41 50 procedure TFormDisassembler.FormDestroy(Sender: TObject); 42 51 begin 43 52 Disassembler.Free; 53 end; 54 55 procedure TFormDisassembler.FormShow(Sender: TObject); 56 begin 57 ButtonReload.Click; 44 58 end; 45 59 -
branches/virtualcpu4/Forms/UFormMain.lfm
r183 r184 82 82 TabOrder = 6 83 83 end 84 object ButtonAssembler: TButton 85 Left = 309 86 Height = 32 87 Top = 128 88 Width = 154 89 Caption = 'Assembler' 90 OnClick = ButtonAssemblerClick 91 ParentFont = False 92 TabOrder = 7 93 end 84 94 end -
branches/virtualcpu4/Forms/UFormMain.pas
r183 r184 14 14 15 15 TFormMain = class(TForm) 16 ButtonAssembler: TButton; 16 17 ButtonScreen: TButton; 17 18 ButtonDisassembler: TButton; … … 21 22 ButtonStart: TButton; 22 23 ButtonStop: TButton; 24 procedure ButtonAssemblerClick(Sender: TObject); 23 25 procedure ButtonConsoleClick(Sender: TObject); 24 26 procedure ButtonCpuStateClick(Sender: TObject); … … 47 49 48 50 uses 49 UFormDisassembler, UFormMemory, UFormCpuState, UFormScreen, UFormConsole; 51 UFormDisassembler, UFormMemory, UFormCpuState, UFormScreen, UFormConsole, 52 UFormAssembler; 50 53 51 54 { TFormMain } … … 61 64 FormDisassembler := TFormDisassembler.Create(Self); 62 65 FormDisassembler.Disassembler.Cpu := Machine.Cpu; 63 FormDisassembler.Disassembler.Process;64 66 FormDisassembler.Show; 65 67 FormDisassembler.Reload; … … 99 101 FormConsole.Machine := Machine; 100 102 FormConsole.Show; 103 end; 104 105 procedure TFormMain.ButtonAssemblerClick(Sender: TObject); 106 begin 107 if not Assigned(FormAssembler) then 108 FormAssembler := TFormAssembler.Create(Self); 109 FormAssembler.Assembler.InstructionWriter.Cpu := Machine.Cpu; 110 FormAssembler.Show; 101 111 end; 102 112
Note:
See TracChangeset
for help on using the changeset viewer.