aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2020-04-12 09:24:50 +0200
committerCamil Staps2020-04-12 09:24:50 +0200
commite1d0653f6e6e3c7336be1d88922bad96fe5dd896 (patch)
treead9b98f371cd652677f59e26bef7a79f276980fa
parentBuild Windows x86 PDF in CI (diff)
Fix x86 registers: ebp is scratch, not A2HEADmaster
-rw-r--r--cdecl-contents.tex2
-rw-r--r--registers-x86.tex5
2 files changed, 4 insertions, 3 deletions
diff --git a/cdecl-contents.tex b/cdecl-contents.tex
index d1b126b..2b6656f 100644
--- a/cdecl-contents.tex
+++ b/cdecl-contents.tex
@@ -5,4 +5,4 @@ Result: & eax &&&&& \\
& d0 &&&&& \\
\hline
Callee-saved: & ebx & ebp & esp & esi & edi & \\
- & d1 & a2 & sp & a3 & a4 &
+ & d1 & scr & sp & a3 & a4 &
diff --git a/registers-x86.tex b/registers-x86.tex
index b0d714f..81bbbb3 100644
--- a/registers-x86.tex
+++ b/registers-x86.tex
@@ -3,7 +3,6 @@
\begin{tabular}{ll}
A0 & ecx \\
A1 & edx \\
- A2 & ebp \\
\hline
B0 & eax \\
B1 & ebx \\
@@ -11,6 +10,8 @@
asp & esi \\
bsp & esp \\
hp & edi \\
+ \hline
+ scratch & ebp \\
\end{tabular}%
}%
\hfill%
@@ -21,7 +22,7 @@
ecx & A0 \\
edx & A1 \\
\hline
- ebp & A2 \\
+ ebp & scratch \\
edi & hp \\
esi & asp \\
esp & bsp \\