From 00c0c9444869ba563d0f2e71d3c44ed59b400824 Mon Sep 17 00:00:00 2001 From: vctorized <101652817+vctorized@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:25:25 +0200 Subject: [PATCH] Update linux-theory-3.md fix typo --- Theory/linux-theory-3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Theory/linux-theory-3.md b/Theory/linux-theory-3.md index 388318cb..14856afc 100644 --- a/Theory/linux-theory-3.md +++ b/Theory/linux-theory-3.md @@ -190,7 +190,7 @@ If we look at the assembly output: 400525: 48 01 d0 add %rdx,%rax ``` -we will see that the `%rdx` register is overwritten with `0x64` or `100` and the result will be `110` instead of `10`. Now if we add the `%rdx` register to the list of `clobbered` registers: +we will see that the `%rdx` register is overwritten with `0x64` or `100` and the result will be `110` instead of `15`. Now if we add the `%rdx` register to the list of `clobbered` registers: ```C __asm__("movq $100, %%rdx\t\n"