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