About this document
16-Bit Addition in 8051 Microcontroller by anandhkr is a document available to read on EtoBox.
This program adds two 16-bit numbers stored in memory locations 4500 and 4501. It clears the carry flag, loads the first addend into the accumulator, adds the second addend, and stores the sum in the destination memory. It repeats this for the second byte, incrementing the destination pointer after each store. If no carry, it jumps to the label L2, otherwise it increments the counter and stores it as the final result.
- Author
- anandhkr
- Language
- EN