aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86_64.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/x86_64.md b/src/arch/x86_64.md
index ede26c7..c61b328 100644
--- a/src/arch/x86_64.md
+++ b/src/arch/x86_64.md
@@ -90,6 +90,12 @@ lea rax, [rip+.my_str] // load addr of .my_str into rax
.asciz "Foo"
```
+Load effective address:
+```x86asm
+mov rax, 2
+lea r11, [rax + 3] // r11 <- 5
+```
+
## String instructions
The operand size of a string instruction is defined by the instruction suffix
`b | w | d | q`.