Ignore:
Timestamp:
May 17, 2019, 10:06:59 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Redraw output form content only if output instruction was used in interpretter mode.
  • Modified: Redraw memory form content only if memory was written in interpretter mode.
  • Fixed: Replace windows newlines by unix newlines in interpretter output under Linux.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMemory.pas

    r78 r112  
    4242  if Core.CurrentTarget is TTargetInterpretter then
    4343  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;
    4649  end;
    4750end;
     
    5457  if Core.CurrentTarget is TTargetInterpretter then
    5558  with TTargetInterpretter(Core.CurrentTarget) do
    56   if (Item.Index >= 0) and (Item.Index <= Trunc(MemoryMaxUsed / RowSize)) then begin
     59  if (Item.Index >= 0) and (Item.Index <= Trunc((MemoryMaxUsedAddr + 1) / RowSize)) then begin
    5760    Item.Caption := IntToHex(Item.Index * RowSize, 8);
    5861    Row := '';
    5962    for I := 0 to RowSize - 1 do
    60       if (Item.Index * RowSize + I) < MemoryMaxUsed then
     63      if (Item.Index * RowSize + I) < (MemoryMaxUsedAddr + 1) then
    6164        Row := Row + ' ' + IntToHex(Memory[Item.Index * RowSize + I], 2);
    6265    Item.SubItems.Add(Row);
Note: See TracChangeset for help on using the changeset viewer.