Daa-arithmetic instruction-microprocessor, Assembly Language

DAA: Decimal Adjust Accumulator:- This instruction is utilized to convert the result of the addition operation of 2 packed BCD numbers to a valid BCD number. The conclusion has to be only in the AL. If the lower nibble is greater than 9, after addition opraction or if AF is set, it will add 06 to the lower nibble in the AL. After adding 06 in the lower nibble of the AL, if the upper nibble of AL is higher than 9 or if carry flag is set, DAA instruction adds 60H to the AL. The instance given below explain the instruction.

Example :

1524_DAA1.jpg

1130_DAA2.jpg

The instruction DAA affects CF, AF, ZF, and PF flags. The OF is not defined.

Posted Date: 10/12/2012 1:51:36 AM | Location : United States







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

Write discussion on Daa-arithmetic instruction-microprocessor
Your posts are moderated
Related Questions
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

what is double hashing

General terms for Cache : Cache Hits : When the cache consisted the information requested, the transaction is said to be a cache hit. Cache Miss : When the cache does n

calculate the number of one bits in bx and complement an equal number of least significant bits in ax hint use the xor instruction

This unit introduces the topic of evaluating interactive products. It is a short unit as evaluation is discussed in more detail in Block 4. Its brevity should give you additional t

#question. counters using 8051.

Write a program that defines symbolic constants for all of the days of the week

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  ,

MOVSW/MOVSB : Move String Word or String Byte: Imagine a string of bytes, stored in a set  of consecutive memory locations is to be moved to another set of  the destination locati

Project Overview In this series of projects you will write a compiler for a small subset of Pascal.  In this assignment, you will start writing the syntax analysis and code gen