x86_instructions
"/home/yossef/notes/courses/lowLevel/x86_instructions.md"
path: courses/lowLevel/x86_instructions.md
- **fileName**: x86_instructions
- **Created on**: 2025-02-13 19:49:13
instruciton for x86
Opcode | Instruction | Description |
---|---|---|
LEA |
Load Effective Address | Loads the address of a variable into a register. |
IMM |
Immediate Value | Loads an immediate (constant) value into a register. |
JMP |
Jump | Unconditionally jumps to a specified address. |
CALL |
Call Function | Calls a function (pushes return address onto the stack). |
JZ |
Jump if Zero | Jumps if the zero flag is set (if result is zero). |
JNZ |
Jump if Not Zero | Jumps if the zero flag is not set (if result is nonzero). |
ENT |
Enter Function | Adjusts the stack pointer to allocate space for local variables. |
ADJ |
Adjust Stack | Adjusts the stack pointer (used for function arguments). |
LEV |
Leave Function | Restores stack frame and returns from a function. |
LI |
Load Integer | Loads an integer from memory into a register. |
LC |
Load Character | Loads a single byte (char) from memory into a register. |
SI |
Store Integer | Stores an integer from a register into memory. |
SC |
Store Character | Stores a single byte (char) from a register into memory. |
PUSH |
Push to Stack | Pushes a value onto the stack. |
OR |
Bitwise OR | Performs a bitwise OR operation. |
XOR |
Bitwise XOR | Performs a bitwise XOR operation. |
AND |
Bitwise AND | Performs a bitwise AND operation. |
EQ |
Equal | Checks if two values are equal. |
NE |
Not Equal | Checks if two values are not equal. |
LT |
Less Than | Checks if one value is less than another. |
GT |
Greater Than | Checks if one value is greater than another. |
LE |
Less or Equal | Checks if one value is less than or equal to another. |
GE |
Greater or Equal | Checks if one value is greater than or equal to another. |
SHL |
Shift Left | Performs a left bit shift operation. |
SHR |
Shift Right | Performs a right bit shift operation. |
ADD |
Addition | Adds two values together. |
SUB |
Subtraction | Subtracts one value from another. |
MUL |
Multiplication | Multiplies two values together. |
DIV |
Division | Divides one value by another. |
MOD |
Modulus | Finds the remainder after division. |
OPEN |
Open File | Opens a file and returns a file descriptor. |
READ |
Read File | Reads data from a file. |
CLOS |
Close File | Closes a file descriptor. |
PRTF |
Print Formatted | Prints a formatted string (like printf ). |
MALC |
Allocate Memory | Allocates a block of memory (malloc ). |
MSET |
Memory Set | Sets memory to a specified value (memset ). |
MCMP |
Memory Compare | Compares two memory blocks (memcmp ). |
EXIT |
Exit Program | Exits the program. |
continue:./ascii_table.md
before:./binary-convert.md