Changeset 112 for trunk/Forms/UFormMemory.pas
- Timestamp:
- May 17, 2019, 10:06:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.