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
Hello, I just want to know how much would it cost for you to develop , debug and test a program in matlab to solve a system of equations with gauss elimination with partial pivotin

Write an assembly language program that defines symbolic constants for all seven days of the week

INTO : Interrupt on Overflow:- It is executed, when the overflow flag OF is set. The new contents of IP and CS register are taken from the address 0000:0000 as described in INT

write shell to calculate basic salary from given .

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  ,

AAS: ASCII Adjust AL After Subtraction AAS instruction correct the result in the AL register after subtracting operation of two unpacked ASCII operands. The result is in unpacked

Interrupt When the CPU detects an interrupt signal, it stops activity of current and jumps to a special routine, known an interrupt handler. This handler then detects why the i

I have two homework assignments due in 10 hours for the x86 processor assembly language

How to print strings in Right Triangle form?

I want to do a program as a game by using the Microcontroller 8051 with the assembly language, by using 4*4 keypad and its matrix display. I have to use the keypad for playing the