1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
{ %cpu=x86_64 } {$asmmode intel} procedure test; var TestVar : Int64; begin TestVar:=1234123412341234; asm MOV RAX,0 LEA RBX,TestVar MOV QWORD [RBX],RAX end; writeln(TestVar); if TestVar<>0 then halt(1); end; begin test; writeln('ok'); end.