Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tema-1-2025
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IOCLA
tema-1-2025
Commits
6f8b429d
Commit
6f8b429d
authored
1 month ago
by
Adelina Maria ALEXE
Browse files
Options
Downloads
Patches
Plain Diff
modified heading
parent
324d9c8f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-8
8 additions, 8 deletions
README.md
with
8 additions
and
8 deletions
README.md
+
8
−
8
View file @
6f8b429d
...
...
@@ -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 t
han
5`
|
|
`// some code here`
|
`; some code that makes b greater
than
or equal t
o
5`
|
| |
`JMP start_loop`
|
|
`}`
|
`end_loop:`
|
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment