Changeset 185 for branches/virtualcpu4/Forms
- Timestamp:
- May 1, 2019, 9:48:46 PM (6 years ago)
- Location:
- branches/virtualcpu4/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/virtualcpu4/Forms/UFormAssembler.lfm
r184 r185 1 1 object FormAssembler: TFormAssembler 2 2 Left = 474 3 Height = 5403 Height = 648 4 4 Top = 313 5 Width = 7055 Width = 846 6 6 Caption = 'Assembler' 7 ClientHeight = 5408 ClientWidth = 7059 DesignTimePPI = 1 207 ClientHeight = 648 8 ClientWidth = 846 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 LCLVersion = '2.0. 2.0'12 LCLVersion = '2.0.0.4' 13 13 object MemoSource: TMemo 14 Left = 815 Height = 38316 Top = 817 Width = 69114 Left = 10 15 Height = 459 16 Top = 10 17 Width = 829 18 18 Anchors = [akTop, akLeft, akRight, akBottom] 19 19 Lines.Strings = ( 20 'LD R1, R2' 21 'LDI R1, 10' 20 ' // Print Hello world text' 21 ' LDI R1, HelloWorld' 22 ' LDI R2, 13' 23 ' CALL Print' 24 ' HALT' 25 '' 26 'Print:' 27 ' PUSH R3' 28 ' PUSH R2' 29 ' PUSH R1' 30 'PrintLoop:' 31 ' DP8 ;LDM R3, R1' 32 ' AP8; DP8; OUT (0), R3' 33 ' INC R1' 34 ' DEC R2' 35 ' TEST R2' 36 ' AP8; JRNZ PrintLoop' 37 ' POP R1' 38 ' POP R2' 39 ' POP R3' 40 ' RET' 41 'HelloWorld:' 42 ' STRING ''Hello_World!''' 22 43 ) 44 ParentFont = False 23 45 ScrollBars = ssAutoBoth 24 46 TabOrder = 0 25 47 end 26 48 object ButtonLoadFromFile: TButton 27 Left = 828 Height = 3 129 Top = 50230 Width = 1 3649 Left = 10 50 Height = 37 51 Top = 603 52 Width = 163 31 53 Anchors = [akLeft, akBottom] 32 54 Caption = 'Load from file' 33 55 OnClick = ButtonLoadFromFileClick 56 ParentFont = False 34 57 TabOrder = 1 35 58 end 36 59 object ButtonSaveToFile: TButton 37 Left = 1 6038 Height = 3 139 Top = 50240 Width = 1 2860 Left = 192 61 Height = 37 62 Top = 603 63 Width = 154 41 64 Anchors = [akLeft, akBottom] 42 65 Caption = 'Save to file' 43 66 OnClick = ButtonSaveToFileClick 67 ParentFont = False 44 68 TabOrder = 2 45 69 end 46 70 object ButtonCompile: TButton 47 Left = 29748 Height = 3 149 Top = 50250 Width = 1 2671 Left = 356 72 Height = 37 73 Top = 603 74 Width = 151 51 75 Anchors = [akLeft, akBottom] 52 76 Caption = 'Compile' 53 77 OnClick = ButtonCompileClick 78 ParentFont = False 54 79 TabOrder = 3 55 80 end 56 81 object MemoMessages: TMemo 57 Left = 858 Height = 9759 Top = 4 0260 Width = 68982 Left = 10 83 Height = 116 84 Top = 483 85 Width = 826 61 86 Anchors = [akLeft, akRight, akBottom] 87 ParentFont = False 62 88 ReadOnly = True 63 89 ScrollBars = ssAutoBoth … … 65 91 end 66 92 object OpenDialog1: TOpenDialog 67 left = 1 1468 top = 1 5293 left = 137 94 top = 182 69 95 end 70 96 object SaveDialog1: TSaveDialog 71 left = 37972 top = 1 5297 left = 455 98 top = 182 73 99 end 74 100 end -
branches/virtualcpu4/Forms/UFormMain.lfm
r184 r185 1 1 object FormMain: TFormMain 2 2 Left = 780 3 Height = 2 243 Height = 269 4 4 Top = 527 5 Width = 5495 Width = 659 6 6 Caption = 'VirtCpu4' 7 ClientHeight = 2 248 ClientWidth = 5499 DesignTimePPI = 1 207 ClientHeight = 269 8 ClientWidth = 659 9 DesignTimePPI = 144 10 10 OnCreate = FormCreate 11 11 OnDestroy = FormDestroy 12 12 OnShow = FormShow 13 LCLVersion = '2.0. 2.0'13 LCLVersion = '2.0.0.4' 14 14 object ButtonStart: TButton 15 Left = 19116 Height = 3 117 Top = 1 418 Width = 9415 Left = 229 16 Height = 37 17 Top = 17 18 Width = 113 19 19 Caption = 'Start' 20 20 OnClick = ButtonStartClick … … 23 23 end 24 24 object ButtonStop: TButton 25 Left = 19126 Height = 3 127 Top = 5428 Width = 9425 Left = 229 26 Height = 37 27 Top = 65 28 Width = 113 29 29 Caption = 'Stop' 30 30 OnClick = ButtonStopClick … … 33 33 end 34 34 object ButtonDisassembler: TButton 35 Left = 3 0936 Height = 3 237 Top = 1 438 Width = 1 5435 Left = 371 36 Height = 38 37 Top = 17 38 Width = 185 39 39 Caption = 'Disassembler' 40 40 OnClick = ButtonDisassemblerClick … … 43 43 end 44 44 object ButtonMemory: TButton 45 Left = 3 0946 Height = 3 247 Top = 5348 Width = 1 5445 Left = 371 46 Height = 38 47 Top = 64 48 Width = 185 49 49 Caption = 'Memory' 50 50 OnClick = ButtonMemoryClick … … 53 53 end 54 54 object ButtonCpuState: TButton 55 Left = 3 0956 Height = 3 257 Top = 9258 Width = 1 5455 Left = 371 56 Height = 38 57 Top = 110 58 Width = 185 59 59 Caption = 'CPU state' 60 60 OnClick = ButtonCpuStateClick … … 63 63 end 64 64 object ButtonScreen: TButton 65 Left = 2 066 Height = 3 267 Top = 1 368 Width = 1 5465 Left = 24 66 Height = 38 67 Top = 16 68 Width = 185 69 69 Caption = 'Screen' 70 70 OnClick = ButtonScreenClick … … 73 73 end 74 74 object ButtonConsole: TButton 75 Left = 2 076 Height = 3 277 Top = 5378 Width = 1 5475 Left = 24 76 Height = 38 77 Top = 64 78 Width = 185 79 79 Caption = 'Console' 80 80 OnClick = ButtonConsoleClick … … 83 83 end 84 84 object ButtonAssembler: TButton 85 Left = 3 0986 Height = 3 287 Top = 1 2888 Width = 1 5485 Left = 371 86 Height = 38 87 Top = 154 88 Width = 185 89 89 Caption = 'Assembler' 90 90 OnClick = ButtonAssemblerClick … … 92 92 TabOrder = 7 93 93 end 94 object ButtonClearMemory: TButton 95 Left = 371 96 Height = 38 97 Top = 192 98 Width = 185 99 Caption = 'Clear memory' 100 OnClick = ButtonClearMemoryClick 101 ParentFont = False 102 TabOrder = 8 103 end 94 104 end -
branches/virtualcpu4/Forms/UFormMain.pas
r184 r185 15 15 TFormMain = class(TForm) 16 16 ButtonAssembler: TButton; 17 ButtonClearMemory: TButton; 17 18 ButtonScreen: TButton; 18 19 ButtonDisassembler: TButton; … … 23 24 ButtonStop: TButton; 24 25 procedure ButtonAssemblerClick(Sender: TObject); 26 procedure ButtonClearMemoryClick(Sender: TObject); 25 27 procedure ButtonConsoleClick(Sender: TObject); 26 28 procedure ButtonCpuStateClick(Sender: TObject); … … 111 113 end; 112 114 115 procedure TFormMain.ButtonClearMemoryClick(Sender: TObject); 116 begin 117 Machine.ClearMemory; 118 end; 119 113 120 procedure TFormMain.ButtonStopClick(Sender: TObject); 114 121 begin
Note:
See TracChangeset
for help on using the changeset viewer.