Explore tens of thousands of sets crafted by our community.
Assembly Language Keywords
52
Flashcards
0/52
MOV
Copies the value from second operand to the first operand.
ADD
Adds the first and second operand and stores the result in the first operand.
SUB
Subtracts the second operand from the first and stores the result in the first operand.
MUL
Performs unsigned multiplication on the accumulator and the operand.
DIV
Divides the accumulator by the operand; the quotient is stored in the accumulator.
INC
Increases the value of the operand by one.
DEC
Decreases the value of the operand by one.
JMP
Causes execution to jump to a specified label or address.
JE
Jumps to a label if the last comparison resulted in equality (zero flag is set).
JNE
Jumps to a label if the last comparison did not result in equality (zero flag is clear).
JG
Jumps to a label if the first operand is greater than the second after a comparison (signed comparison).
JL
Jumps to a label if the first operand is less than the second after a comparison (signed comparison).
JGE
Jumps to a label if the first operand is greater than or equal to the second after a comparison (signed comparison).
JLE
Jumps to a label if the first operand is less than or equal to the second after a comparison (signed comparison).
JA
Jumps to a label if the first operand is above the second after a comparison (unsigned comparison).
JB
Jumps to a label if the first operand is below the second after a comparison (unsigned comparison).
JAE
Jumps to a label if the first operand is above or equal to the second after a comparison (unsigned comparison).
JBE
Jumps to a label if the first operand is below or equal to the second after a comparison (unsigned comparison).
LOOP
Decreases the count register (CX) by 1 and jumps to a label if CX is not zero.
CALL
Jumps to a subroutine at the specified address and saves the address of the subsequent instruction onto the stack.
RET
Returns from a subroutine and transfers control to the instruction at the address on the top of the stack.
INT
Generates a software interrupt by invoking the interrupt handler specified by the operand.
NOP
Performs no operation and moves to the next instruction.
HLT
Halts the processor by stopping instruction execution and placing the processor in a halt state.
CMP
Compares two operands by performing a subtraction and updating the flags according to the result (without storing the result).
AND
Performs a bitwise AND operation between the two operands and stores the result in the first operand.
OR
Performs a bitwise inclusive OR operation between the two operands and stores the result in the first operand.
XOR
Performs a bitwise exclusive OR operation between the two operands and stores the result in the first operand.
NOT
Performs a bitwise NOT operation (complement) on the operand.
SHL/SAL
Shifts the bits of the operand to the left by a specified count, inserting zeros into the low-order bits.
SHR
Shifts the bits of the operand to the right by a specified count, inserting zeros into the high-order bits.
SAR
Shifts the bits of the operand to the right by a specified count, copying the operand's most significant bit (sign bit) into the high-order bits.
PUSH
Decrements the stack pointer and then places the operand on the top of the stack.
POP
Retrieves the top value from the stack and places it into the operand, then increments the stack pointer.
LEA
Loads the effective address of the operand into the specified register.
STOS
Stores the accumulator's value into the destination string operand.
LODS
Loads the value from the source string operand into the accumulator.
MOVS
Moves data from the source string operand to the destination string operand.
CMPS
Compares two string operands.
SCAS
Scans a string until it finds a byte or word that equals the accumulator's value.
INS
Inputs from a port to a string buffer in memory.
OUTS
Outputs from a string buffer in memory to a port.
CLI
Clears the interrupt flag, disabling hardware interrupts.
STI
Sets the interrupt flag, enabling hardware interrupts.
CLD
Clears the direction flag, causing string operations to increment the index registers (DI and/or SI).
STD
Sets the direction flag, causing string operations to decrement the index registers (DI and/or SI).
LOCK
Used as a prefix to ensure exclusive use of shared memory in multi-processor environments.
REP
Used as a prefix to repeat the following instruction until the CX register decrements to zero.
REPE/REPZ
Repeats the following instruction until the CX register decrements to zero or the zero flag becomes clear.
REPNE/REPNZ
Repeats the following instruction until the CX register decrements to zero or the zero flag is set.
ENTER
Creates a stack frame for procedure parameters.
LEAVE
Destroys a stack frame created by the ENTER instruction.
© Hypatia.Tech. 2024 All rights reserved.