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
what is double hashing

RET : Return from the Procedure:- At each CALL instruction, the register IP and register CS of the next instruction is pushed to stack, before the control is transferred to the

Example : Write a program to move the contents of the memory location 0500H to BX and also to register CX. Add immediate byte 05H to the data residing in memory location, whose ad

Assembly Language Example Programs We studied the entire instruction set of 8086/88, pseudo-ops and assembler directives. We have explained the process of entering an assembly

Write a program that allows a user to encrypt/decrypt a message using a shift cipher. The user should specify the key and the message. Your program should be able to handle messa

Write an account of your findings and produce a report containing all aspects of the above. Include a step-by-step 'simple User Guide' so that your program can be operated as inten

A/D conversion: Basic tasks: (a) Write a program that will read and display the analog voltage on pin PE7 approximately once every second. (b) Write a program that will read and d

Write a program to mask bits D3D2D1D0 and to set bits D5D4 and to invert bits D7D6 of ax register

Data copy/transfer Instructions MOV: This data transfer instruction transfers data from one register or memory location to another register or memory location. The source can

ROL : Rotate Left without Carry: This instruction rotates the content of the destination operand to the left by the specified count bit-wise excluding the carry. The most signific