Changeset 112 for trunk/Forms
- Timestamp:
- May 17, 2019, 10:06:59 PM (6 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMemory.lfm
r103 r112 8 8 ClientWidth = 586 9 9 DesignTimePPI = 144 10 LCLVersion = '2.0. 0.4'10 LCLVersion = '2.0.2.0' 11 11 object Label6: TLabel 12 12 Left = 6 13 Height = 2 513 Height = 26 14 14 Top = 6 15 15 Width = 574 … … 22 22 object ListViewMemory: TListView 23 23 Left = 6 24 Height = 34 525 Top = 3 724 Height = 344 25 Top = 38 26 26 Width = 574 27 27 Align = alClient -
trunk/Forms/UFormMemory.pas
r78 r112 42 42 if Core.CurrentTarget is TTargetInterpretter then 43 43 with TTargetInterpretter(Core.CurrentTarget) do begin 44 ListViewMemory.Items.Count := Ceil(MemoryMaxUsed / RowSize); 45 ListViewMemory.Refresh; 44 if MemoryChanged then begin 45 MemoryChanged := False; 46 ListViewMemory.Items.Count := Ceil((MemoryMaxUsedAddr + 1) / RowSize); 47 ListViewMemory.Refresh; 48 end; 46 49 end; 47 50 end; … … 54 57 if Core.CurrentTarget is TTargetInterpretter then 55 58 with TTargetInterpretter(Core.CurrentTarget) do 56 if (Item.Index >= 0) and (Item.Index <= Trunc( MemoryMaxUsed/ RowSize)) then begin59 if (Item.Index >= 0) and (Item.Index <= Trunc((MemoryMaxUsedAddr + 1) / RowSize)) then begin 57 60 Item.Caption := IntToHex(Item.Index * RowSize, 8); 58 61 Row := ''; 59 62 for I := 0 to RowSize - 1 do 60 if (Item.Index * RowSize + I) < MemoryMaxUsedthen63 if (Item.Index * RowSize + I) < (MemoryMaxUsedAddr + 1) then 61 64 Row := Row + ' ' + IntToHex(Memory[Item.Index * RowSize + I], 2); 62 65 Item.SubItems.Add(Row); -
trunk/Forms/UFormOutput.lfm
r103 r112 1 1 object FormOutput: TFormOutput 2 Left = 2563 Height = 4404 Top = 325 Width = 3202 Left = 736 3 Height = 343 4 Top = 502 5 Width = 640 6 6 Caption = 'Output' 7 ClientHeight = 4408 ClientWidth = 3207 ClientHeight = 343 8 ClientWidth = 640 9 9 DesignTimePPI = 144 10 LCLVersion = '2.0. 0.4'10 LCLVersion = '2.0.2.0' 11 11 object Label2: TLabel 12 12 Left = 4 13 Height = 2 513 Height = 26 14 14 Top = 4 15 Width = 31215 Width = 632 16 16 Align = alTop 17 17 BorderSpacing.Around = 4 … … 21 21 object MemoOutput: TMemo 22 22 Left = 4 23 Height = 40324 Top = 3 325 Width = 31223 Height = 305 24 Top = 34 25 Width = 632 26 26 Align = alClient 27 27 BorderSpacing.Around = 4 -
trunk/Forms/UFormOutput.pas
r100 r112 37 37 if Core.CurrentTarget is TTargetInterpretter then 38 38 with TTargetInterpretter(Core.CurrentTarget) do begin 39 MemoOutput.Lines.Text := Output; 39 if OutputChanged then begin 40 OutputChanged := False; 41 {$IFDEF LINUX} 42 MemoOutput.Lines.Text := StringReplace(Output, #10#13, LineEnding, [rfReplaceAll]) 43 {$ELSE} 44 MemoOutput.Lines.Text := Output; 45 {$ENDIF} 46 end; 40 47 end; 41 48 end;
Note:
See TracChangeset
for help on using the changeset viewer.