[fpc-pascal] fpc-2.1.4.x86_64-win64.exe: Test := 9223372036854775807; and writeln does work... asm stuff does not work.

Skybuck Flying skybuck2000 at hotmail.com
Thu Jul 26 11:45:01 CEST 2007


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. 




More information about the fpc-pascal mailing list