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
NASM assembly language program: Consider a sequence of 19 strictly positive decimal digits, most likely stored in an array. There are obviously duplicates, and the sequence is un

Write a program that performs the addition, subtraction, multiplications, division of the given operands. Perform BCD operation for addition and subtraction.

Need help with 2 homework assignments

64-bit integer calculator, which processes using 16-bits at a time (reg/mem16 operands)

Flowchart for the sequence of 8251 Whether the control, mode or sync character register is selected depends on the accessing sequence.  A flowchart of the sequencing is given i

Pin diagram of 8088 : The pin diagram of 8088 is shown in given figure. Most of the 8088 pins and their functions are exactly similar to the corresponding pins of 8086.  Hence

The problem to be solved and implemented with an ARM assembly language program You are asked to do some image processing on an image composed of characters shaped in For exa

A good starting point for your program is the toupper.asm program shown in class. It already queries the user for input and sets up a loop that looks at each character of the input

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

Intel 8259 interrupt controller :  The 8088 processor has only two interrupt control inputs, and interrupt request (INTR) and non mask able interrupt (NMI). NMI are interrupts t