Part VII: Quick Reference
This guide is part seven of the series, X86–64 Assembly Language Program. This article is more of a reference guide for those learning x86–64 Assembly Language. I hope you find the information and links at the bottom helpful. Registers General-purpose registers — there are 16 general-purpose registers — rax, rbx, rcx, rdx, rbp, rsp, rsi, rdi, r8, r9, r10, r11, r12, r13, r14, r15 data- section is used for declaring initialized data or constants bss- section is used for declaring non initialized variables text- section is used for code rdi- first argument rsi- second argument rdx- third argument rcx- fourth argument r8- fifth argument r9- sixth The first six integer or pointer arguments are passed in registers rdi, rsi, rdx, rcx, r8, r9. r10 is used as a static chain pointer in the case of nested functions. ...