Hello,

I found this link explaining some difference between AT&T and intel asm syntax:

http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-assembler/i386-syntax.html

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:

Examples:

<begin of snippet>

asm
 movq $9223372036854775807, %rax   // problem ?
 movq %rax, test  // problem ?
end;

writeln('Test: ', test ); // still 4294967295, problem.

Test := 9223372036854775807;

writeln('Test: ', test ); // displays 9223372036854775807, ok.

<end of snippet>

Bye,
Skybuck.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to