diff options
author | Andrew Yu <andrew@andrewyu.org> | 2022-05-26 11:19:55 +0800 |
---|---|---|
committer | Andrew Yu <andrew@andrewyu.org> | 2022-05-26 11:19:55 +0800 |
commit | 97934207f8714c8cd4cbc54ba48e68410772aadf (patch) | |
tree | b750803a3dd3ee4f17941c543258d49683381e60 | |
parent | a768e275757dfc0f4d07a8e3f6d3a227e6a1e14b (diff) | |
download | www-97934207f8714c8cd4cbc54ba48e68410772aadf.tar.gz |
eax update
-rw-r--r-- | eax.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/eax.txt b/eax.txt index 57988a6..b4f2cfb 100644 --- a/eax.txt +++ b/eax.txt @@ -1,17 +1,17 @@ -General way to do syscalls: +; 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 +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 - ---- +; man 2 <syscall name> will tell you arguments and extra information of +; the syscalls +; syscall name syscall number restart_syscall 0 exit 1 fork 2 |