Aam-arithmetic instruction-microprocessor, Assembly Language

AAM: ASCII Adjust for Multiplication after execution. This instruction converts the product available in the AL into unpacked BCD format.  This follows a multiplication   instruction. The lower byte of result (unpacked) remains in the AL and the higher byte of result remains in AH. The instance given below describes execution of the instruction. Suppose, a product is available in AL, say AL = 5D. AAM instruction will make unpacked BCD result in the AX. DH is higher than value 9, so add 6 (0110) to it D + 6 = 13H. LSD of 13H is the lower unpacked byte for the result. Increment AH by 1, 5+1 = 6 will be the upper unpacked byte of the result. So after the execution, AH = 06 and AL = 03.

 

Posted Date: 10/12/2012 1:42:51 AM | Location : United States







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

Write discussion on Aam-arithmetic instruction-microprocessor
Your posts are moderated
Related Questions
program to arrange a given set of numbers in descending order

1. 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? array1 DWORD 10, 20, 30, 40, 50, 6

;StrNCpyAsm - copy zero terminated string2 to zero terminated string1, ; but copy no more than count (parameter) characters ; or the length of string2, whi

Addressing mode of 8086 : Addressing mode specify a way of locating operands or data. Depending on the data types used the memory  addressing  modes and in the instruction  ,

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

Write a MC68H12 assembly language program to find the largest number in an array of ten 8-bit numbers. The array is stored in memory locations starting at address $1100. Use branch

 Pin Description of 8086 The microprocessor 8086 is a 16-bit CPU available in 3 clock rates, for example 5, 8 and 10 MHz, packaged in a40 pin CERDIP or plastic package. The 8

AAS: ASCII Adjust AL After Subtraction AAS instruction correct the result in the AL register after subtracting operation of two unpacked ASCII operands. The result is in unpacked

Internal Architecture of Microprocessor : The architecture of 8086 provides a number of improvements over 8085 architecture. It supports a, a set of 16-bit registers ,16-bit AL

what is double hashing