ADD A,
Function: Addition.
Description: The ADD instruction can be used to complete the addition of the source operand indicated by src-byte and the current value of accumulator A. The result is placed in accumulator A. According to the operation result, if there is a carry in the 7th bit, the carry flag is set to 1, otherwise it is cleared; if there is a carry in the 3rd bit, the auxiliary carry flag is set to 1, otherwise it is cleared. If it is an unsigned integer addition, the carry bit is set to indicate that the current operation result has overflowed.
Example: Assume that the data in accumulator A is 0C3H (11000011B), and the value of R0 is 0AAH (10101010B).
Execute the following instruction:
ADD
the result in accumulator A in R0 is 6DH (01101101B), the auxiliary carry flag AC is cleared, and the carry flag C and overflow flag OV are set.
ADD A, Rn
ADD A, direct
ADD A, @Ri
ADD A, #data
Previous article:Detailed explanation of 8051 microcontroller instruction definition - ADDC A, (3)
Next article:Detailed explanation of 8051 microcontroller instruction definition - ACALL addr11 (1)
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- LPC11U68 driver X-NUCLEO-IKS01A3
- Live: Unveiling the secrets of the new generation of C2000 microcontrollers for servo and motor drive applications
- BQ40Z50-R2 security mode introduction and password modification method
- msp430f1232 minimum system and debugging process
- Smart warehouse based on Gizwits AIoT development platform
- [RT-Thread Reading Notes] Part 2 (5) Interrupt Management and Bidirectional Linked List
- Analysis of the three major architectural elements of RF signal sources
- MSP430 microcontroller and medical reference design
- 1.4 billion Chinese women can't pick out 11 men's soccer teams that can win
- Analysis Method of Transistor Bias Circuit