Aad-arithmetic instruction-microprocessor, Assembly Language

AAD: ASCII Adjust for Division though the names of these 2 instructions (AAM and AAD) seem to be same, there is many difference between their functions. The AAD instruction converts 2 unpacked BCD digits in AL and AH to the corresponding binary number in AL. This adjustment might be made before dividing the 2 unpacked BCD digits in the AX by an unpacked BCD byte. SF, PF, ZF are modified whereas CF, AF, OF are not defined, after the execution of the instruction AAD. The instance describes the execution of the instruction. This instruction seems before DIV instruction unlike the AAM seems after MUL in the instruction sequence. Assume AX has 0508 unpacked BCD for 58 decimal, and DH consist 02H.

Example :

1629_AAD.jpg

The conclusion of the AAD execution will give the hexadecimal number 3A in the AL and 00 in the AH. Notice that 3A is the hexadecimal correspondent of 58 (decimal). Now, the instruction DIV DH can be executed. So rather than ASCII adjust for division, it is ASCII adjust before division operation.  All the ASCII adjust instructions are also known as unpacked BCD arithmetic instructions.  Now, we will consider the two instructions related to the packed BCD arithmetic.

 

Posted Date: 10/12/2012 1:47:03 AM | Location : United States







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

Write discussion on Aad-arithmetic instruction-microprocessor
Your posts are moderated
Related Questions
Conditional branch Instruction When these type of instructions are executed, they transfer control of execution to the address mention relatively in the instruction, provided t


Prime Finder - assembly program: Problem:  Prime Finder   In this problem you will write a small program that tests whether a given integer is a prime number or not.  Let's

• To develop an assembly language program to control a "simulated" intelligent domestic lighting system with the intention of deterring burglary. • To produce a schematic circuit d

can any one help me in my project by using assembly language

Computes the integral square root: Problem: Square Root:   For this problem you will write a short assembly program that computes the integral square root of an input numb

8251 Programmable/Communication Interface As an instance of a serial interface device let us suppose Intel's 8251 A programmable communication interfaces. The 8251A is diagram

Program is written but has errors returning values from the procedure.

Machine Level Programs In this section, a few machine levels programming instance, rather then, instruction sequences are presented for comparing the 8086 programming with that

Flag Register : 8086 has a 16-bit flag register which is divided into 2 parts, viz. (a)machine control flagsand (b)condition code or status flags. The condition code flag regi