Skip to content

Commit 5bf7e3d

Browse files
authored
Merge pull request #856 from vctorized/master
Update linux-theory-3.md
2 parents ce22aa5 + 00c0c94 commit 5bf7e3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Theory/linux-theory-3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ If we look at the assembly output:
190190
400525: 48 01 d0 add %rdx,%rax
191191
```
192192

193-
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:
193+
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:
194194

195195
```C
196196
__asm__("movq $100, %%rdx\t\n"

0 commit comments

Comments
 (0)