summaryrefslogtreecommitdiffstats
path: root/docs/re/rep_prefix.txt
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-02-25 13:27:28 -0500
committerMalfurious <m@lfurio.us>2024-02-25 13:27:28 -0500
commitd6123769b5cddaa1ea87b64d4db2b84ead5f127e (patch)
treecbe155fca9d3ca4f3d1a897ee381ec77cac30871 /docs/re/rep_prefix.txt
parent2496fbbd23d6ae350032f2e87b1d77c9a6dc8ec4 (diff)
parent175d1af3bf850fd0816a730215e028045d82e037 (diff)
downloadlib-des-gnux-master.tar.gz
lib-des-gnux-master.zip
Merge branch 'malf-braekerctf-2024'HEADmaster
* malf-braekerctf-2024: Writeup BraekerCTF 2024 / e Writeup BraekerCTF 2024 / Eye Doctor Add image convolution topic doc Add x86 loop instruction callout Merge x86 tips into architecture topic doc BraekerCTF 2024 results
Diffstat (limited to 'docs/re/rep_prefix.txt')
-rw-r--r--docs/re/rep_prefix.txt18
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++;
-```
-