Re:A Crash Course in X86 Assembly for Reverse Engineers (201...
by tedunangst on Saturday December 03, 2016 @12:28PM
(#13096514)
Sometimes the instruction ends in a q for 64 bits.
[ Parent
| on HN ]
Re:A Crash Course in X86 Assembly for Reverse Engineers (201...
by pcwalton on Saturday December 03, 2016 @01:38PM
(#13096841)
The extra registers affect the way programs are written. You get a more RISC-like feel: this shows up most notably in the calling conventions, which pass all arguments in registers most of the time. You see more RISC-like three register arithmetic because the compiler has more opportunities to use LEA. Etc.
Re:A Crash Course in X86 Assembly for Reverse Engineers (201...
by astocko on Saturday December 03, 2016 @01:53PM
(#13096913)
Piggy backing on this comment. Agner Fog has some nice tables at http://www.agner.org/optimize/calling_conventions.pdf describing the register usage and calling coventions. Chapter 6 & 7
Re:A Crash Course in X86 Assembly for Reverse Engineers (201...
by mox1 on Saturday December 03, 2016 @01:06PM
(#13096697)
It is a lot more than that. Calling conventions, register names and usage, etc. etc. I have a "cheatsheet" sitting on my desk that I wrote up last time I need to do some x86-64 reversing. Do no sit down with a x86-64 binary and use this manual as a guide, you will not get very far.