summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Yu <andrew@andrewyu.org>2022-05-26 11:13:48 +0800
committerAndrew Yu <andrew@andrewyu.org>2022-05-26 11:13:48 +0800
commita768e275757dfc0f4d07a8e3f6d3a227e6a1e14b (patch)
treef3b6b4785de3426e3adf927d0be6389c905ecbbf
parent327dbace1ce14df1cb4ccf3967a3c2b350fb8d26 (diff)
downloadwww-a768e275757dfc0f4d07a8e3f6d3a227e6a1e14b.tar.gz
improve syscall table
-rw-r--r--eax.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/eax.txt b/eax.txt
index 3d0a8e4..57988a6 100644
--- a/eax.txt
+++ b/eax.txt
@@ -1,3 +1,17 @@
+General way to do syscalls:
+
+mov eax <syscall number as below>
+mov ebx arg
+mov ecx arg
+mov edx arg
+mov esx arg
+mov edi arg
+int 0x80
+
+man 2 <syscall name> for arguments stuff
+
+---
+
 restart_syscall               0
 exit                          1
 fork                          2