aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/arch/arm64/README.md9
-rw-r--r--lib/arch/x86_64/README.md2
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/arch/arm64/README.md b/lib/arch/arm64/README.md
new file mode 100644
index 0000000..9bf85bf
--- /dev/null
+++ b/lib/arch/arm64/README.md
@@ -0,0 +1,9 @@
+# Procedure Call Standard ARM64
+
+- Integer/pointer arguments via `x0`-`x7`
+- Integer/pointer return values via `x0`
+- Callee saved registers `x19`-`x28`, `sp`
+
+## Reference
+- [johannst arm64 notes](https://johannst.github.io/notes/arch/arm64.html)
+
diff --git a/lib/arch/x86_64/README.md b/lib/arch/x86_64/README.md
index f573843..f81fc98 100644
--- a/lib/arch/x86_64/README.md
+++ b/lib/arch/x86_64/README.md
@@ -2,7 +2,7 @@
- Integer/pointer arguments via `rdi`, `rsi`, `rdx`, `rcx`, `r8`, `r9`
- Integer/pointer return values via `rax`
-- Callee saved registers `rbx`, `rbp`, `r12` – `r15`
+- Callee saved registers `rbx`, `rbp`, `r12` – `r15`
## Reference
- [johannst x86_64 notes](https://johannst.github.io/notes/arch/x86_64.html)