summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/re/test_v_cmp.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/re/test_v_cmp.txt b/docs/re/test_v_cmp.txt
index 5a0c5af..c98424f 100644
--- a/docs/re/test_v_cmp.txt
+++ b/docs/re/test_v_cmp.txt
@@ -7,8 +7,11 @@ 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 makes:
+JE (alias of JZ) tests the zero flag and jumps if it is set. This creates the
+following equivalencies:
+
test eax, eax
-je 0x1234
-equivalent to the C statement:
-if (eax == 0)
+je <somewhere> ----> if (eax == 0) {}
+
+cmp eax, ebx
+je <somewhere> ----> if (eax == ebx) {}