Changeset 78 for trunk/Forms/UFormMemory.pas
- Timestamp:
- Jan 1, 2017, 12:59:53 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 LazFuck 6 6 compiled 7 heaptrclog.trc
-
- Property svn:ignore
-
trunk/Forms/UFormMemory.pas
r67 r78 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls ;9 ComCtrls, Math; 10 10 11 11 const … … 42 42 if Core.CurrentTarget is TTargetInterpretter then 43 43 with TTargetInterpretter(Core.CurrentTarget) do begin 44 ListViewMemory.Items.Count := Trunc(Length(Memory)/ RowSize);44 ListViewMemory.Items.Count := Ceil(MemoryMaxUsed / RowSize); 45 45 ListViewMemory.Refresh; 46 46 end; … … 54 54 if Core.CurrentTarget is TTargetInterpretter then 55 55 with TTargetInterpretter(Core.CurrentTarget) do 56 if (Item.Index >= 0) and (Item.Index < Trunc(Length(Memory)/ RowSize)) then begin56 if (Item.Index >= 0) and (Item.Index <= Trunc(MemoryMaxUsed / RowSize)) then begin 57 57 Item.Caption := IntToHex(Item.Index * RowSize, 8); 58 58 Row := ''; 59 59 for I := 0 to RowSize - 1 do 60 Row := Row + ' ' + IntToHex(Memory[Item.Index * RowSize + I], 2); 60 if (Item.Index * RowSize + I) < MemoryMaxUsed then 61 Row := Row + ' ' + IntToHex(Memory[Item.Index * RowSize + I], 2); 61 62 Item.SubItems.Add(Row); 62 63 end;
Note:
See TracChangeset
for help on using the changeset viewer.