x_64 registers

Everything else that doesn't fall into one of the other PB categories.
Denis
Enthusiast
Enthusiast
Posts: 790
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: x_64 registers

Post by Denis »

Trond wrote:
DarkDragon wrote:
Denis wrote:DarkDragon, why did you say that. It's related for x_86 in the PB help file. It's a possibility to code in asm with PB, so PB rules have to be known.
That are assembler rules, not PB rules:
http://flatassembler.net/docs.php?article=manual#2.1.19
No, in pure assembly you can use registers are you please. This information tells us which registers PB expect NOT to change and which PB expect to change. We can't know what PB expects unless it says in the manual.
I agreed with you Trond.

Documentation Intel for info (pdf files) :

http://www.intel.com/products/processor/manuals/
A+
Denis
Helle
Enthusiast
Enthusiast
Posts: 178
Joined: Wed Apr 12, 2006 7:59 pm
Location: Germany
Contact:

Re: x_64 registers

Post by Helle »

Gentlemen, if PB make his own rules, this is the end of 64-bit PB-inline assembler! I have e.g. problems with the return value of float/double-values of procedures. PB gives this value in ST0; the rest of the world in in xmm0. Sh...
Helle
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Re: x_64 registers

Post by remi_meier »

Oh nice... So that means I will not be able to use
my .SO in other programs (on Linux), not that
this was ever really possible without problems...

It's actually allowed to return (complex) long double
values in ST0, but that is not the case here... Why
doesn't Fred add a simple MOV to xmm0? Or finally
use SSE instead of x87? Oh well.

Cheers
Remi
Athlon64 3700+, 1024MB Ram, Radeon X1600
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Re: x_64 registers

Post by Thorium »

Actualy there are more volatile registers: http://msdn.microsoft.com/en-us/library/9z1stfyw.aspx
However this are windows rules, this does not need to be the same on every OS.
Post Reply