From 6f8b429d6ad71f22bb3bfc60bfe9764ed5e2456b Mon Sep 17 00:00:00 2001 From: Alexe Adelina Maria <adelina_maria.alexe@stud.acs.upb.ro> Date: Wed, 12 Mar 2025 00:17:27 +0200 Subject: [PATCH] modified heading --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 30054ca..8b40155 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ The last 3 rows represent the second operation. SHL (Shift left) and SHR (Shift right) are bitwise shift instructions. -### Usage - shl, shr +#### Usage - shl, shr `SHL destination, no_bits_shifted` @@ -130,11 +130,11 @@ SHL (Shift left) and SHR (Shift right) are bitwise shift instructions. ### Conditional Statements -### CMP Instrunction +#### CMP Instrunction `CMP` instruction compares two values by substracting the second operand from the first. It updates CPU flags, but does not store the result. -### Usage - cmp +#### Usage - cmp `CMP operand1, operand2` @@ -159,7 +159,7 @@ Here's a short description of each conditional jump: - **JL** (Jump if Less): Jumps if the first value is less than the second. - **JLE** (Jump if Less or Equal): Jumps if the first value is less than or equal to the second. -### Usage +#### Usage `JMP label` @@ -171,7 +171,7 @@ Here's a short description of each conditional jump: `JL label` -### C - ASM translation +#### C - ASM translation | **C Code** | **ASM Code** | |------------- |---------------- | @@ -185,7 +185,7 @@ Here's a short description of each conditional jump: ### Loops - for, while -### `for` loop +#### `for` loop | **C Code** | **ASM Code** | |------------- |---------------- | @@ -198,13 +198,13 @@ Here's a short description of each conditional jump: | | `JMP start_loop` | | `}` | `end_loop:` | -### `while` loop +#### `while` loop | **C Code** | **ASM Code** | |------------- |---------------- | | `while (b < 5) {` | `start_loop:` | | | `CMP ebx, 5` | | | `JGE end_loop` | -| `// some code here` | `; some code that makes b greater or equal than 5` | +| `// some code here` | `; some code that makes b greater than or equal to 5` | | | `JMP start_loop` | | `}` | `end_loop:` | \ No newline at end of file -- GitLab