mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:52:26 +02:00
Asm-Dialog: fix for 3.2.2 / Issue #39645
This commit is contained in:
parent
deea0b1e74
commit
4ef4408529
@ -704,9 +704,14 @@ end;
|
|||||||
procedure TAssemblerDlg.popCopyAddrClick(Sender: TObject);
|
procedure TAssemblerDlg.popCopyAddrClick(Sender: TObject);
|
||||||
var
|
var
|
||||||
Entry: TAsmDlgLineEntry;
|
Entry: TAsmDlgLineEntry;
|
||||||
|
W: Integer;
|
||||||
begin
|
begin
|
||||||
|
if FDebugger = nil
|
||||||
|
then W := 16
|
||||||
|
else W := FDebugger.TargetWidth div 4;
|
||||||
|
|
||||||
if GetLinMapEntryForLine(FSelectLine, Entry) then
|
if GetLinMapEntryForLine(FSelectLine, Entry) then
|
||||||
Clipboard.AsText := '$'+IntToHex(Entry.Addr);
|
Clipboard.AsText := '$'+IntToHex(Entry.Addr, W);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAssemblerDlg.FormatLine(ALine: TAsmDlgLineEntry; W: Integer) : String;
|
function TAssemblerDlg.FormatLine(ALine: TAsmDlgLineEntry; W: Integer) : String;
|
||||||
|
Loading…
Reference in New Issue
Block a user