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
move a byte string ,16 bytes long from the offset 0200H to 0300H in the segment 7000H..

program to find negative and positive integers from given signed numbers with output and explanation of every instructions.

IMUL: Signed Multiplication: This instruction multiplies a signed byte by a signed bit in source operand e in the register AL or signed word in source operand by signed word in th

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

segmentation and overlapping in assemble language

how to write the alp for matrix addition in microprocessor 8086?

AAA: ASCII Adjust after Addition operation the AAA instruction is executed after an ADD instruction that adds 2 ASCII coded operands to give a byte of outcome in the AL. The AAA i

a program that display English letters excluding vowels

using 8086 assembly language that interchange upper four bits to lower four bits. assume that data store in byte memory and it written back to same location. and assume the data as

write a programme the addition two 3*3 matrix and stored in from list