Changeset 5 for trunk/Disassembler.pas


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/Disassembler.pas

    r2 r5  
    2424  TDecodedInstructions = class(TObjectList<TDecodedInstruction>)
    2525    function SearchAddress(Address: Word): TDecodedInstruction;
     26    function SearchAddressIndex(Address: Word): Integer;
    2627  end;
    2728
     
    5253  if I < Count then Result := Items[I]
    5354    else Result := nil;
     55end;
     56
     57function TDecodedInstructions.SearchAddressIndex(Address: Word): Integer;
     58var
     59  I: Integer;
     60begin
     61  I := 0;
     62  while (I < Count) and (Items[I].Address <> Address) do Inc(I);
     63  if I < Count then Result := I
     64    else Result := -1;
    5465end;
    5566
Note: See TracChangeset for help on using the changeset viewer.