From bee9b0b371279f086e0a495f18837e7445fc541c Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Wed, 7 Nov 2018 17:26:53 +0100
Subject: Add mac.tex

---
 system-v-abi.tex | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 system-v-abi.tex

(limited to 'system-v-abi.tex')

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}%
+}%
-- 
cgit v1.2.3

