You are here : assembly8086AAM

AAM - 8086

ASCII Adjust after Multiplication.

Corrects the result of multiplication of two BCD values.

Algorithm :

  • AH = AL / 10
  • AL = remainder


Syntax

AAM


Example

MOV AL, 0fh  ; AL = 0Fh 
AAM          ; AH = 01, AL = 05 
RET 


Output / Return Value


Limitations


Alternatives / See Also


Reference