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
Project Description: Write an 80x86 assembly program that performs the following functions: Reads a set of integers from a file into an array. The data file name is to be

programs

The 486 Introduced in the year 1989 the 80486 did not feature any radically new processor technology. Instead, it joints a 386 processor, a cache memory controller and a math c

I want to do a program as a game by using the Microcontroller 8051 with the assembly language, by using 4*4 keypad and its matrix display. I have to use the keypad for playing the

SCAS : Scan String Byte or String Word:- This instruction scans a string of words or byte for an operand word or byte specified in the register AL or  register AX. The string i

Signal descriptions of 8086 : described below are common for the maximum andminimum mode bothdata lines AD15 -AD0: These are the time multiplexed andmemory I/O address. Addre

Power Pc : A Power PC is a microprocessor designed to meet a standard, which was combining designed by Motorola, Apple and IBM. The PowerPC standard specifies a common instruc

Sum of series of 10 numbers and store result in memory location total

Code for Reading Flow & Generating LED Output The code starts with the scanning of the PORT 3, for reading the flow status to check for various flow conditions and compare to

HELLO I AM TRYING TO ADD AND SUBTRACT BUT I SEEM CAN''T FIND THE CORRECT REGISTER TO PUT IN