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
Interrupt System Based on Single 8259 A The 8259A is contained in a 28-pin dual-in-line package that need only a + 5-V supply voltage.  Its organization is shown in given figur

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

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

write a program using assembly language that print your name

Register Organization of 8086 8086  has  a great  set  of registers  containing  special  purpose and general  purpose  registers.  All the 8086 resisters are 16-bit registers.

LENGTH : Byte Length of a Label: This directive is not available in MASM. This is used to mention to the length of a data array or a string. MOV CX. LENGTH ARRAY This sta

Logical Instruction : This type of instructions is utilized for carrying out the bit by bit shift, basic logical operations or rotate. All of the condition code flags are affe

1. Start your program at address $8500. To do this you need to inform the assembler, through the EQU and ORG assembler directives, that you want your program to start at $8500. Thi

AAM: ASCII Adjust for Multiplication after execution. This instruction converts the product available in the AL into unpacked BCD format.  This follows a multiplication   instruct