Tuesday, 6 November 2007

Assembly cntd...

Typical assembly language instructions:
Made up of
  • Arithmetical instructions.
  • Logical instructions like 'AND', 'OR' and 'NOT'.
  • Rotate instructions.
  • Bit set or reset instructions.

    Examples:

    [add] [al,bl] - [;Add bl to al and store the result in al]
    [sub] [ax, 08h] - [;Subtract 8 (hex) from ax and store the result in ax]
    [mul] [bl] - [;al is multiplied by bl and stored in ax]
    Note: ax is double the width of al and bl
    [div] [cx] - [;The dx-ax register pair is divided by the cx with the quotient being placed in the ax register and the remainder being placed in the dx register]

  • 1 comment:

    Anonymous said...

    Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Pen Drive, I hope you enjoy. The address is http://pen-drive-brasil.blogspot.com. A hug.