I tried to get an address of a label in Raspbian 64bit on RPi4 using Lazarus 2.10/fpc 3.3.1
function test:pointer;
label aaa;
var a:pointer;
begin
asm
aaa: adr x1,aaa
str x1,a
end;
result:=a;
end;
and got "invalid reference syntax" compiler error in line labelled "aaa:"
What I did wrong? How to use adr instruction here? In the standalone assembler as the syntax adr reg,label is ok.