From edb15ed331c087878af290ef8f402836c762087f Mon Sep 17 00:00:00 2001 From: Alexander Kuleshov Date: Mon, 6 Jan 2025 15:22:44 +0500 Subject: [PATCH] asm: last fixes for chapter-2 Signed-off-by: Alexander Kuleshov --- content/asm_2.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/asm_2.md b/content/asm_2.md index ba06182..caeb99b 100644 --- a/content/asm_2.md +++ b/content/asm_2.md @@ -364,7 +364,7 @@ Here is the list of common assembly instructions used for arithmetic operations: - `IDIV` - Signed division - `INC` - Increment - `DEC` - Decrement -- `NEG` - Negation. +- `NEG` - Negation We will use these instructions and explain the details in the following example. @@ -380,8 +380,7 @@ cmp rax, 50 The `cmp` instruction only compares the parameters without affecting their values. To perform any actions after the comparison, you can use **conditional jump instructions**: - `JE/JZ` - Jump if the values are equal. -- `JNE` - Jump if the values are not equal. -- `JNZ` - Jump if the difference between two values is not zero. +- `JNE/JNZ` - Jump if the values are not equal. - `JG` - Jump if the first value is greater than the second. - `JGE` - Jump if the first value is greater or equal to the second. - `JA` - The same as `JG`, but performs the unsigned comparison.