Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Assembly Language - <b>mul multiply, unsigned flags: o d i t s z a p c</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MUL              Multiply, Unsigned                  Flags: O D I T S Z A P C
                                                            *       ? ? ? ? *
MUL source

          Logic:    AX . source * AL             ; if source is a byte
               or
                    DX:AX = source * AX          ; if source is a word

    MUL performs unsigned multiplication. If source is a byte, MUL
    multiplies source by AL, returning the product in AX. If source is a
    word, MUL multiplies source by AX, returning the product in DX:AX. The
    Carry and Overflow flags are set if the upper half of the result (AH
    for a byte source, DX for a word source) contains any significant
    digits of the product, otherwise they are cleared.

  --------------------------------------------------------------------------
   Operands                  Clocks   Transfers  Bytes   Example
   reg8                      70-77        -        2     MUL CH
   reg16                    118-133       -        2     MUL BX
   mem8                   (76-83) + EA    1       2-4    MUL A_BYTE
   mem16                 (128-143) + EA   1       2-4    MUL A_WORD
  --------------------------------------------------------------------------

See Also: IMUL AAM EA Flags

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson