aam ascii adjust for multiplication after


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.

 

Request for Solution File

Ask an Expert for Answer!!
Assembly Language: aam ascii adjust for multiplication after
Reference No:- TGS0173527

Expected delivery within 24 Hours