Daa-arithmetic instruction-microprocessor, Assembly Language

Assignment Help:

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.


Related Discussions:- Daa-arithmetic instruction-microprocessor

#largest number, #write a program 8086 to find the largest number

#write a program 8086 to find the largest number

MIPS Assembly, Need help with 2 homework assignments

Need help with 2 homework assignments

Modes of 8254-microprocessor, Modes of 8254 :   Mode 0 (Inter...

Modes of 8254 :   Mode 0 (Interrupt on Terminal Count)-GATE which value is 1 enables counting and GATE  which value is 0 disables counting, and GATE put not effect on

Assignment, Write an assembly program that adds the elements in the odd ind...

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?

The alpha, The Alpha : The development of the Alpha chip start in the y...

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

#title:Shifitng of memory, Ask 2. Exchange higher byte of AX and higher byt...

Ask 2. Exchange higher byte of AX and higher byte of BX registers by using memory location 0160 in between the transfer. Then stores AX and BX registers onto memory location 0174 o

Read file in 8086, Write a procedure to read a text file and copy its cont...

Write a procedure to read a text file and copy its contents to another text file using 8086 assembly language .

Procedures, How to define procedures?

How to define procedures?

Rcr-rcl-logic instruction-microprocessor, RCR: Rotate Right through Carry:...

RCR: Rotate Right through Carry:- This instruction rotates the contents  bit-wise of the destination operand right by the specified count through carry flag (CF). For each operati

Program, write a program assembly language for adding two 3*3 matrix

write a program assembly language for adding two 3*3 matrix

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd