Sub-arithmetic instruction-microprocessor, Assembly Language

SUB: Subtract:- The subtract instruction subtracts the source operand from destination operand and result is left in the destination operand. Source operand might be memory location, register or immediate data  and the destination operand might be a or a memory location or register, but destination and source operands both might not be memory operands. Destination operand cannot be an immediate data. By this instruction, all the condition code flags are affected. The instance of this instruction along with the addressing modes is followed below:

Example :

1. SUB        0100H               Immediate [destination AX]

2. SUB        AX,    BX            Register

3. SUB        AX, [5000H]       Direct

4. SUB        [5000H], 0100    Immediate

 

Posted Date: 10/12/2012 1:25:54 AM | Location : United States







Related Discussions:- Sub-arithmetic instruction-microprocessor, Assignment Help, Ask Question on Sub-arithmetic instruction-microprocessor, Get Answer, Expert's Help, Sub-arithmetic instruction-microprocessor Discussions

Write discussion on Sub-arithmetic instruction-microprocessor
Your posts are moderated
Related Questions
#write a program 8086 to find the largest number

The main objective of the assignment is to explore the knowledge regarding parallel ports of a computer system. You can read and write datato/from the parallel port using IN and OU

How to write an assembly program The initial step in writing an assembly language program is to identify and study the problem. After studying the problem, choose the logical m

Write an assembly language program that will: accept keyboard input of a positive integer value N; compute the sum S= 1+ 2 + 3 + ... + N; print (output) the computed su

CMP: Compare: - This instruction compares the source operand, which can be a register or memory location an immediate data with a destination operand that might be a register or a

Programming with an assembler The procedure of hand-coding 8086 programs is somewhat tiresome; hence generally a programmer may find it hard to get a correct listing of the mac

Using DEBUG DEBUG.COM is a DOS efficacy that facilitates the trouble-shooting and debugging of assembly language programs. In particular case of personal computers, all of th

DEC : A powerful new Alpha 64 bit RISC computer chip was introduced in the year 1977, as new VAX (Virtual Address Extension) Computer. The VAX was 32 bit computer line based on

1 st Generation Microprocessor : At the end of the 70s a group of engineers developed a chip is able to processing data. This chip was called processor chip. Big processors w

MLIL: Unsigned Multiplication Byte or Word: This instruction multiplies an unsigned byte or word by the contents of the AL. The unsigned byte or word can be in any one of the gene