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

---
 registers.tex | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 registers.tex

(limited to 'registers.tex')

diff --git a/registers.tex b/registers.tex
new file mode 100644
index 0000000..0fd363f
--- /dev/null
+++ b/registers.tex
@@ -0,0 +1,48 @@
+{\hfill%
+\fcolorbox{black}{white}{%
+	\begin{tabular}{ll}
+		A0 & rcx \\
+		A1 & rdx \\
+		A2 & r8 \\
+		\hline
+		B0 & rax \\
+		B1 & rbx \\
+		B2 & r10 \\
+		B3 & r11 \\
+		B4 & r12 \\
+		B5 & r13 \\
+		B6 & r14 \\
+		\hline
+		asp & rsi \\
+		bsp & rsp \\
+		hp & rdi \\
+		free & r15 \\
+		\hline
+		scratch & rbp \\
+		scratch & r9 \\
+	\end{tabular}%
+}%
+\hfill%
+\fcolorbox{black}{white}{%
+	\begin{tabular}{ll}
+		rax & B0 \\
+		rbx & B1 \\
+		rcx & A0 \\
+		rdx & A1 \\
+		\hline
+		rbp & scratch \\
+		rdi & hp \\
+		rsi & asp \\
+		rsp & bsp \\
+		\hline
+		r8  & A2 \\
+		r9  & scratch \\
+		r10 & B2 \\
+		r11 & B3 \\
+		r12 & B4 \\
+		r13 & B5 \\
+		r14 & B6 \\
+		r15 & free \\
+	\end{tabular}%
+}%
+\hfill}%
-- 
cgit v1.2.3

