Add-arithmetic instruction-microprocessor, Assembly Language

ADD:  Add :- This instruction adds an immediate contents of a memory location specified in the a register ( source ) or instruction to the contents of another register (destination) or memory location. The outcome is in the destination operand. However, the source and destination both operands can't be memory operands.  That means memory and memory addition is impossible. Also the contents of segment registers can't be added by using this instruction. All of the condition code flags are affected, depending on the result. The instance of this instruction is given along with the equivalent modes.

Example :

1.            ADD       AX, 0100H           Immediate

2.            ADD       AX, BX                 Register

3.            ADD       AX, [SI]                Register indirect

4.            ADD       AX, [5000H]         Immediate

5.            ADD       [5000H] 0100H    Immediate

6.            ADD       0100H                 Destination AX (implicit)

 

Posted Date: 10/12/2012 1:11:05 AM | Location : United States







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

Write discussion on Add-arithmetic instruction-microprocessor
Your posts are moderated
Related Questions
Write an assembly program that will compute and output tuition cost: a. accept keyboard input of the number of credit hours taken b. accept keyboard input of the type of classes 1

Addressing mode of 8086 : Addressing mode specify a way of locating operands or data. Depending on the data types used the memory  addressing  modes and in the instruction  ,

Machine Coding the Programs So far we have describe five programs which were  written  for hand coding  by a programmer. In this, we will now have a deep look at how these prog

Cache controller The cache controller is the mind of the cache.  Its responsibilities include:  performing the  snarfs and snoops, updating the  TRAM  and SRAM and implementing

Display control 8279  provides  a  16  byte  display  memory  and  refresh  logic.  Every address in the display memory corresponds to a display unit with address zero represen

programs

The addressing modes for the sequential control transfer instructions are described below:   1. Immediate: Immediate data is a part of instruction,in this type of addressin

Write a 32-bit program which when run, allows the user to select from a menu: (1)    Enter a Binary Number (2)    Enter a Decimal Number (3)    Enter a Hexadecimal Number

GROUP : Group the Related Segments:- The directive which is used to form logical groups of segments with same purpose or type. This isused to inform the assembler to form a log

Program is written but has errors returning values from the procedure.