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
Basic Microprocessor Architecture and Interface : Introduction: Intel launches its first 4-bit microprocessor 4004 in the year 1971 and 8-bit microprocessor 8008 in the y

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

to find the matrix addition

MOVSW/MOVSB : Move String Word or String Byte: Imagine a string of bytes, stored in a set  of consecutive memory locations is to be moved to another set of  the destination locati

Machine Coding the Programs So far we have describe five programs which were  written  for hand coding  by a programmer. In this, we will now have a deep look at how these prog

AAM: ASCII Adjust for Multiplication after execution. This instruction converts the product available in the AL into unpacked BCD format.  This follows a multiplication   instruct

DMA Hardware (8237 DMAC) :   1)Processor contain HOLD/HOLD Acknowledge lines to interact with 8237 o   DMAC can achieve control of ISA bus by asserting HOLD o   P

Flag Register : 8086 has a 16-bit flag register which is divided into 2 parts, viz. (a)machine control flagsand (b)condition code or status flags. The condition code flag regi

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

How to write an assembly program The initial step in writing an assembly language program is to identify and study the problem. After studying the problem, choose the logical m