diff options
author | Malfurious <m@lfurio.us> | 2024-02-25 11:35:22 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-02-25 11:35:22 -0500 |
commit | f24146370e30e4eb247976cf50e7624d52db840f (patch) | |
tree | 227757330dbb64583ac9d0bc6635b8ac8bc72c76 /docs/re/rep_prefix.txt | |
parent | 2dc9e78e22b07536b1fecbe60b4f2c7a6ccc05a6 (diff) | |
download | lib-des-gnux-f24146370e30e4eb247976cf50e7624d52db840f.tar.gz lib-des-gnux-f24146370e30e4eb247976cf50e7624d52db840f.zip |
Merge x86 tips into architecture topic doc
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'docs/re/rep_prefix.txt')
-rw-r--r-- | docs/re/rep_prefix.txt | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/re/rep_prefix.txt b/docs/re/rep_prefix.txt deleted file mode 100644 index 23e0cec..0000000 --- a/docs/re/rep_prefix.txt +++ /dev/null @@ -1,18 +0,0 @@ -The "rep" prefix on a string instruction repeats that string instruction for CX block loads. -e.g. -STOS is "Store String" -It will store the value in AX at the address in RDI -(technically, STOSB, STOSW, STOD, and STOSQ use AL, AX, EAX, and RAX respectively) -If RCX = 0x20, RDI = some buffer, and RAX = 0, - -`rep stosq` - -is equivalent to: - -``` -buf_ptr = buf -for(i = 0x20; i != 0; i--) - *buf_ptr = 0; - buf_ptr++; -``` - |