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
how i can write a program to divide 2 numbers

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

Write an assembly program that adds the elements in the odd indices of the following array. Use LOOP. What is the final value in the register?

to separate positive and negative numbers

can u please give me ideas on Assembly Language Projects using Nasm

DMA DMA stands for Direct Memory Access It is uses same Address/Data lines on ISA bus It controls the ISA bus instead of the processor ("bus master") Floppy

Fourth  Generation Microprocessor : The single chip 32-bit microprocessor was introduced in 1981 by Intel as iAPX 432. The other 4th generation  microprocessors  were;  Hewlett

what is double hashing

Multiply two numbers by using shift and rotate instruction

I am running a small minecraft server off of my old mac mini, and am having a big issue. My computer isn''t very good, and even just running this server is an issue. I use a comma