6.2. 6.2 80×86 Integer Arithmetic Instructions
Before describing how to encode arithmetic expressions in assembly language, it would be a good idea to first discuss the remaining arithmetic instructions in the 80×86 instruction set. Previous chapters have covered most of the arithmetic and logical instructions, so this section will cover the few remaining instructions you'll need.
6.2.1. 6.2.1 The MUL and IMUL Instructions
The multiplication instructions provide you with another taste of irregularity in the 80×86's instruction set. Instructions like add, sub, and many others in the 80×86 instruction set support two operands, just like the mov instruction. Unfortunately, there weren't enough bits in the 80×86's opcode byte to support all instructions, ...
Get Art of Assembly Language, 1st Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.