Hi! I am trying to translate a piece of assembly code written for GAS(I guess it is gas, cuz it's a Linux site) to NASM syntax.
Here:
https://github.com/torvalds/linux/blob/ ... 4-asm_64.S
at the line 206 I have the "RA" "RB" "RC" and "RD" I don't know where they are coming from.
I am not a GAS user, so please help me!!!!
I will appreciate it a lot!
Thanks!
Mysterious RA value in assembly file
Mysterious RA value in assembly file
Last edited by newanabe on Mon Aug 05, 2013 12:27 pm, edited 1 time in total.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Please help me with a GAS doubt!!!!!!!
I'm sure you didn't read the forum rules properly yet.!!!!!!!
(...)
!!!!
Learn macro syntax, look at line 54-62 and 193."RA" "RB" "RC" and "RD" I don't know where they are coming from.
Re: Please help me with a GAS doubt!!!!!!!
Thank you for the help!
I think i could understand it now.
What have i done wrong? Where can I read the rules?
I think i could understand it now.
What have i done wrong? Where can I read the rules?
Re: Please help me with a GAS doubt!!!!!!!
Please don't use a lot of exclamation marks and beg for help. Your question isn't that important to warrant that many exclamation marks, and even if it wasn't, it isn't that important to those that would help you. If I see 7 exclamation marks, your statement better be about the imminent explosion of the sun and the annihilation of all life on Earth.
For example:
Bad topic: Please help me with a GAS doubt!!!!!!!
Good topic: Mysterious RA value in assembly file
To answer your question, look into how the GNU C preprocessor works and how the assembly file in question is preprocessed. It uses the ## assembly operator to concatenate a RA and 1 to form the RA1 value.
For example:
Bad topic: Please help me with a GAS doubt!!!!!!!
Good topic: Mysterious RA value in assembly file
To answer your question, look into how the GNU C preprocessor works and how the assembly file in question is preprocessed. It uses the ## assembly operator to concatenate a RA and 1 to form the RA1 value.
Re: Mysterious RA value in assembly file
ok, I fixed the title.
and I understood the RA problem after the combuster's answer.
thank you!
and I understood the RA problem after the combuster's answer.
thank you!