x_64 registers
x_64 registers
Fred/Freak, there's no information about x_64 registers to use without saving them firt (eax, edx, ecx in x_86).
I've done search here but without succes. English PB help file is not available when installing PB x_64, so, it's not possible to take a look at it.
German doc is like french doc.
wich registers ?
Fred, please add these infos in help file.
Merci
I've done search here but without succes. English PB help file is not available when installing PB x_64, so, it's not possible to take a look at it.
German doc is like french doc.
wich registers ?
Fred, please add these infos in help file.
Merci
A+
Denis
Denis
Re: x_64 registers
rax, rdx, rcx in x_64Denis wrote:which registers ?
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: x_64 registers
This information isn't related to purebasic, so it should never get into the purebasic manual, should it?
bye,
Daniel
Daniel
Re: x_64 registers
Demivec, I think that's the same as x_86 (rax for eax etc.) but no infos for that (may be a thread on it but i didn't found it).Demivec wrote:rax, rdx, rcx in x_64Denis wrote:which registers ?
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.DarkDragon wrote:This information isn't related to purebasic, so it should never get into the purebasic manual, should it?
Thanks both.
A+
Denis
Denis
Re: x_64 registers
Yes it is the same, that's the point.Denis wrote:Demivec, I think that's the same as x_86 (rax for eax etc.) but no infos for that (may be a thread on it but i didn't found it).Demivec wrote:rax, rdx, rcx in x_64Denis wrote:which registers ?
It would be nice if there was a note in the manual about it (for 64-bit in-line assembly).
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: x_64 registers
That are assembler rules, not PB rules: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.
http://flatassembler.net/docs.php?article=manual#2.1.19
bye,
Daniel
Daniel
Re: x_64 registers
To use inline assembler in PB you have to follow PB's rules, which may have originated in the document you linked to. Nevertheless they are also present in PB with regard to crafting assembly code that works alongside PB's language framework and it's foundations in assembly.DarkDragon wrote:That are assembler rules, not PB rules: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.
http://flatassembler.net/docs.php?article=manual#2.1.19
The registers that need to be preserved for x86 are listed in the manual under the 'Rules' heading of 'Inline x86 ASM'.
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: x_64 registers
Yes, well for this documentation part it might be senseful, but don't insert a whole assembler documentation into the purebasic help!Demivec wrote:To use inline assembler in PB you have to follow PB's rules, which may have originated in the document you linked to. Nevertheless they are also present in PB with regard to crafting assembly code that works alongside PB's language framework and it's foundations in assembly.DarkDragon wrote:That are assembler rules, not PB rules: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.
http://flatassembler.net/docs.php?article=manual#2.1.19
The registers that need to be preserved for x86 are listed in the manual under the 'Rules' heading of 'Inline x86 ASM'.
Denis sounded like he didn't know assembler and purebasic are two different things.
bye,
Daniel
Daniel
Re: x_64 registers
DarkDragon, i take a quickly look to the FASM doc (big doc) but i didn't find thoses rules.
I just want to have those infos in PB doc.
I just want to have those infos in PB doc.
A+
Denis
Denis
Re: x_64 registers
Agreed!DarkDragon wrote:Yes, well for this documentation part it might be senseful, but don't insert a whole assembler documentation into the purebasic help!
Re: x_64 registers
DarkDragon,
I think that Denis only wants to have the equivalent statement for x64 to this rule in the help:
I think that Denis only wants to have the equivalent statement for x64 to this rule in the help:
So that he knows which x64 registers he has to preserve in his x64 asm code block...Inline x86 ASM help wrote:- The available volatile registers are: eax, edx and ecx. All others must be always preserved.
-
remi_meier
- Enthusiast

- Posts: 468
- Joined: Sat Dec 20, 2003 6:19 pm
- Location: Switzerland
Re: x_64 registers
Or just here:
http://en.wikipedia.org/wiki/X86_callin ... onventions
and here:
http://msdn.microsoft.com/en-us/library/6t169e9c.aspx
Edit: Linux: http://www.x86-64.org/documentation/abi.pdf (p. 21)
http://en.wikipedia.org/wiki/X86_callin ... onventions
and here:
http://msdn.microsoft.com/en-us/library/6t169e9c.aspx
Edit: Linux: http://www.x86-64.org/documentation/abi.pdf (p. 21)
Athlon64 3700+, 1024MB Ram, Radeon X1600
-
DarkDragon
- Addict

- Posts: 2348
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: x_64 registers
I posted a link to it! It scrolls right there after loading the page.Denis wrote:DarkDragon, i take a quickly look to the FASM doc (big doc) but i didn't find thoses rules.
I just want to have those infos in PB doc.
Do you also expect all the assembler keywords inside the PB doc? That would mess everything up like hell.
@Shardik: but for now it sounds like he wants everything inside the PB documentation.
[EDIT]
Ok, do what you want to.
Last edited by DarkDragon on Thu Jun 16, 2011 12:25 pm, edited 2 times in total.
bye,
Daniel
Daniel
Re: x_64 registers
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.DarkDragon wrote:That are assembler rules, not PB rules: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.
http://flatassembler.net/docs.php?article=manual#2.1.19
