Explore tens of thousands of sets crafted by our community.
Assembly Language Commands
31
Flashcards
0/31
ADD
Adds the second operand to the first operand and stores the result in the first operand location.
JE
Jumps to the specified address if the result of the previous comparison is equal (Zero flag is set).
JL
Jumps to the specified address if the result of the previous comparison was less (Signed comparison).
MOV
Transfers data from one location to another without altering the data.
SHL
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.
JMP
Jumps to the instruction at the specified address unconditionally.
RET
Returns from a procedure by popping the saved return address from the stack and jumping to it.
INT
Generates a software interrupt by invoking the interrupt handler at the specified vector.
CLC
Clears the Carry flag, setting it to 0.
NOP
Performs no operation and simply moves to the next instruction.
DEC
Decrements the value of the specified operand by 1.
STC
Sets the Carry flag to 1.
CMC
Complements the Carry flag, toggling its value.
DIV
Performs unsigned division using the accumulator and the specified operand.
XOR
Performs a bitwise exclusive OR operation between the first and second operand and stores the result in the first operand.
AND
Performs a bitwise AND operation between the first and second operand and stores the result in the first operand.
OR
Performs a bitwise OR operation between the first and second operand and stores the result in the first operand.
JLE
Jumps to the specified address if the result of the previous comparison was less or equal (Signed comparison).
LEA
Loads the address of the operand into the specified register.
CMP
Compares the second operand with the first operand and sets the flags accordingly.
JGE
Jumps to the specified address if the result of the previous comparison was greater or equal (Signed comparison).
PUSH
Pushes the specified operand onto the stack, decrementing the stack pointer accordingly.
MUL
Performs unsigned multiplication of the accumulator and the specified operand.
NOT
Performs a bitwise NOT operation (one's complement) on the operand, reversing each bit.
CALL
Calls a procedure at the specified address, saving the return address on the stack.
SUB
Subtracts the second operand from the first operand and stores the result in the first operand location.
JG
Jumps to the specified address if the result of the previous comparison was greater (Signed comparison).
INC
Increments the value of the specified operand by 1.
JNE
Jumps to the specified address if the result of the previous comparison is not equal (Zero flag is clear).
POP
Pops the top value from the stack into the specified operand, incrementing the stack pointer accordingly.
© Hypatia.Tech. 2024 All rights reserved.