Changeset 184 for branches/virtualcpu4/Forms/UFormMain.pas
- Timestamp:
- Apr 25, 2019, 4:20:43 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.