-
Notifications
You must be signed in to change notification settings - Fork 0
coisu/Libasm
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Key Concepts for Assembly Registers: CPU has a set of registers to perform operations. Common ones for x86-64: rax, rbx, rcx, rdx, etc. (general-purpose registers) rdi, rsi, rdx, rcx, etc. (used for passing function arguments) Function arguments: rdi → 1st argument rsi → 2nd argument rdx → 3rd argument (Followed by rcx, r8, r9…) Calling Convention: In Linux, x86-64 follows the System V ABI: Function arguments are passed in rdi, rsi, etc. Return values are placed in rax. Basic Assembly Instructions: mov → Move data from one place to another. cmp → Compare two values. je, jne → Jump if equal, not equal. inc → Increment a value. ret → Return from a function. String Operations: Strings in assembly are arrays of bytes ending with a NULL byte (0x00). We'll iterate through a string to count its length.
About
The aim of this project is to get familiar with assembly language.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published