Aad-arithmetic instruction-microprocessor, Assembly Language

Assignment Help:

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.

 


Related Discussions:- Aad-arithmetic instruction-microprocessor

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?

Program to move contents in memory-machine level programs, Example : Write...

Example : Write a program to move the contents of the memory location 0500H to BX and also to register CX. Add immediate byte 05H to the data residing in memory location, whose ad

Program for measures the wind direction-vane, You are to create an assembly...

You are to create an assembly program for the MSP430 that correctly measures the wind direction, to a precision of 45° (N, NW, W, SW, S, SE, E, NE), using the MSP430's ADC. Your

Program, move a byte string ,16 bytes long from the offset 0200H to 0300H i...

move a byte string ,16 bytes long from the offset 0200H to 0300H in the segment 7000H..

Hold response sequence-microprocesssor, Hold Response Sequence The HOLD...

Hold Response Sequence The HOLD pin is examined at leading edge of each clock pulse. If it is received active line by the processor before T4 of the earlier cycle/during the T1

Assignment, You have to write a subroutine (assembly language code using NA...

You have to write a subroutine (assembly language code using NASM) for the following equation.

Right triangle, code, Assembly Language How to print strings in Right Tria...

code, Assembly Language How to print strings in Right Triangle form?

#title.Statement of the Problem., Can you write for me an essay, topic is: ...

Can you write for me an essay, topic is: Statement of the Problem. Length: 270 words. I will send you the Formula for the Problem Statement on your Email attachment. Do you agree?

Risc characteristics-microprocessor, RISC Characteristics : The  concep...

RISC Characteristics : The  concept  of  RISC  architecture  include  an  attempt  to  reduce  execution  time  by make  simple  the instruction set of the computer. The main c

Physical memory mapped and port input output-microprocessor, Physical Memor...

Physical Memory Mapped I/O and Port I/O : CPU controlled I/O comes in 2 ways. Simply the difference is whether we utilize the normal memory addresses for I/O, this is mention

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