Ignore:
Timestamp:
Apr 18, 2026, 7:24:02 PM (9 days ago)
Author:
chronos
Message:
  • Added: Some I/O ports handling.
  • Added: Messages form for capturing error messages.
  • Added: Go to address action.
  • Added: Allow to view all used memory areas in Memory window.
  • Added: Allow to reset CPU execution.
  • Modified: Improved memory mapping for MZ-700 and MZ-800 modes.
  • Fixed: Focusing currently executed instruction position.
  • Fixed: Wrong order or 8-bit registers in 16-bit pair.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormDisassembler.pas

    r2 r5  
    7171  Item: TListItem;
    7272  DecodedInstruction: TDecodedInstruction;
     73  Index: Integer;
    7374begin
    74   DecodedInstruction := Disassembler.DecodedInstructions.SearchAddress(Address);
    75   if Assigned(DecodedInstruction) then begin
    76     Item := ListView1.Items[Disassembler.DecodedInstructions.IndexOf(DecodedInstruction)];
     75  Index := Disassembler.DecodedInstructions.SearchAddressIndex(Address);
     76  if Index >= 0 then begin
     77    DecodedInstruction := Disassembler.DecodedInstructions[Index];
     78    Item := ListView1.Items[Index];
    7779    if Assigned(Item) then begin
    7880      Item.MakeVisible(False);
    79       Item.Focused := True;
    80       Item.Selected := True;
     81      //Item.Focused := False;
     82      //Item.Selected := False;
     83      //Item.Focused := True;
     84      //Item.Selected := True;
     85      ListView1.ItemIndex := Index;
     86      ListView1.Selected := ListView1.Items[Index];
     87      ListView1.Items[Index].Focused := True;
    8188    end;
    8289  end;
Note: See TracChangeset for help on using the changeset viewer.