From bac8a5d2822835cf47175d1162030653fadd5c09 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 15 Feb 2024 23:29:57 +0000 Subject: deploy: 4485708c972815bbb6df7f5a228683aa855d553d --- arch/x86_64.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'arch/x86_64.html') diff --git a/arch/x86_64.html b/arch/x86_64.html index 848de4f..210e8a4 100644 --- a/arch/x86_64.html +++ b/arch/x86_64.html @@ -250,7 +250,7 @@ mov rax, qword ptr [rbx+4*rcx] // load val at [rbx+4*rcx] into rax
lea rax, [rip+.my_str]       // load addr of .my_str into rax
 ...
 .my_str:
-.asciz "Foo"
+.asciz "Foo"
 

Load effective address:

mov rax, 2
@@ -300,7 +300,7 @@ mov al, 0xaa
 mov cx, 0x10
 rep stosb
 
-

SysV x86_64 ABI

+

SysV x86_64 ABI

Passing arguments to functions