Assembly Language Instructions and MS-DOS Functions
Classified in Computers
Written on in
English with a size of 3.39 KB
Data Transfer Instruction:
LEA
Gets source effective address and stores it in the target. Source segment address is stored in DS. Example: LEA DX, OPERANDO1
Control Transfer Instructions
Loops
Operation (IP decrement) + Conditional jump on operation result.
Example:
MOV CX, 4
Bucle:
INC BX
ADD BX, CX
LOOP BucleCompare Instruction:
CMP
Compares source and target operands and properly modifies the flag register. It internally works by subtracting the target from the source operand. Operands are equal if the result is zero. Source is greater than target if the result is negative. Target is greater than source otherwise. Example: CMP AX, DX; Compares AX and DX.
Interrupt Instructions:
INT
INT jumps to a specified interrupt address. i8086 interrupt addresses... Continue reading "Assembly Language Instructions and MS-DOS Functions" »