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
The Alpha : The development of the Alpha chip start in the year 1988 The new chip used 64 bit technology, let users to pack  more  complexity  into  their  programs  than  exis

Trying to convert small programs from C to 8086 assembly language using emu 8086 emulator. I converted to low level C, but struggling with converting to the Assembly language.

Example : Add the contents of the 2000H: 0500H memory location to contents of 3000H: 0600H and store the result in 5000H: 0700H. Solution : Unlike the past example progra

You are to write an assembly language program called subfaq.s that computes the generalized subfactorial function of nonnegative integer inputs i0 and n. The generalized subfactori

Overview of Intel Pro-Pentium : The 2 chief players in the PC CPU market are Motorola and Intel.  Intel has enjoyed incredible success with its processors since the early 1980

to find the matrix addition

Port Mapped I/O or I/O Mapped I/O I/O devices are mapped into a separate address space. This is generally accomplished by having a different set of signal lines to denote a mem

As an instance of the normal priority mode, imagine that initially AEOI is equal to 0 and all the ISR and IMR bits are clear. Also consider that, as shown in given figure, requests


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