aboutsummaryrefslogtreecommitdiff
path: root/system-v-abi.tex
diff options
context:
space:
mode:
Diffstat (limited to 'system-v-abi.tex')
-rw-r--r--system-v-abi.tex14
1 files changed, 14 insertions, 0 deletions
diff --git a/system-v-abi.tex b/system-v-abi.tex
new file mode 100644
index 0000000..fccfab5
--- /dev/null
+++ b/system-v-abi.tex
@@ -0,0 +1,14 @@
+\fcolorbox{black}{white}{%
+ \setlength{\tabcolsep}{.2em}%
+ \begin{tabular}{lcccccc}
+ \multicolumn{7}{c}{\textbf{Function Calls}}\\\hline
+ Arguments: & rdi & rsi & rdx & rcx & r8 & r9\\
+ & hp & asp & A1 & A0 & A2 & scr\\
+ \hline
+ Result: & rax & rdx \\
+ & B0 & A1 \\
+ \hline
+ Callee-saved: & rbx & rbp & r12 & r13 & r14 & r15 \\
+ & B1 & scr & B4 & B5 & B6 & free \\
+ \end{tabular}%
+}%