[fpc-pascal] fpc-2.1.4.x86_64-win64.exe: Test := 9223372036854775807; and writeln does work... asm stuff does not work.
skybuck2000 at hotmail.com
Thu Jul 26 11:45:01 CEST 2007
I found this link explaining some difference between AT&T and intel asm
So I tried to add q behind mov maybe that was the problem...
Kinda strange that mov is allowed to compile.
Anyway it's still not working.
However assigning directly to test via pascal code does work:
<begin of snippet>
movq $9223372036854775807, %rax // problem ?
movq %rax, test // problem ?
writeln('Test: ', test ); // still 4294967295, problem.
Test := 9223372036854775807;
writeln('Test: ', test ); // displays 9223372036854775807, ok.
<end of snippet>
More information about the fpc-pascal