The arithmetic operations of 8051 include increment, decrement, addition, subtraction, multiplication, division and decimal operations.
Arithmetic Instructions
The
arithmetic operations of 8051 include increment, decrement, addition,
subtraction, multiplication, division and decimal operations.
1. Incrementing and Decrementing
Incrementing
and decrementing instructions allow addition and subtraction of 1 from a given
number. These instructions not affect C, AC and OV flags. Table 15.5.1 lists
the increment and decrement instructions.
2. Addition
Table
shows the list of addition instructions supported by 8051.
3. Subtraction
Table
shows the list of subtraction instructions supported by 8051.
4. Multiplication and Division
5. Decimal Arithmetic
Review Questions
1. What is the time
taken to execute MUL instruction in 8031?
2. How can you perform
multiplication using 8051 microcontroller?
3. List the arithmetic instructions of microcontroller 8051?
Microprocessors and Microcontrollers: Unit III: (b) 8051 Instruction Set and Programming : Tag: : 8051 Instruction Set and Programming - Arithmetic Instructions