summaryrefslogtreecommitdiffstats
path: root/docs/re/test_v_cmp.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/test_v_cmp.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/test_v_cmp.txt')
-rw-r--r--docs/re/test_v_cmp.txt17
1 files changed, 0 insertions, 17 deletions
diff --git a/docs/re/test_v_cmp.txt b/docs/re/test_v_cmp.txt
deleted file mode 100644
index c98424f..0000000
--- a/docs/re/test_v_cmp.txt
+++ /dev/null
@@ -1,17 +0,0 @@
-CMP subtracts operands and sets internal flags. Among these, it sets the
-zero flag if the difference is zero (operands are equal).
-
-TEST sets the zero flag (ZF) when the result of the AND operation is zero. If
-the two operands are equal, their bitwise AND is zero only when the operands
-themselves are zero. TEST also sets the sign flag (SF) when the most
-significant bit is set in the result, and the parity flag (PF) when the number
-of set bits is even.
-
-JE (alias of JZ) tests the zero flag and jumps if it is set. This creates the
-following equivalencies:
-
-test eax, eax
-je <somewhere> ----> if (eax == 0) {}
-
-cmp eax, ebx
-je <somewhere> ----> if (eax == ebx) {}