This solution explains the state of the CARRY and ZERO flags after adding $87H$ and $79H$ in an 8085 microprocessor.
First, convert the hexadecimal numbers to binary:
Next, perform the binary addition:
| Carry | 1 | 1 | 1 | 1 | 1 | ||||
| 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | ||
| + | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | |
| = | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
The sum is $100000000$2.
In 8-bit microprocessor arithmetic, the result is the lower 8 bits, and any bit shifted beyond the 8th position is the carry.
Based on the addition result:
Both the CARRY flag and the ZERO flag are set to $1$.
| List - I (Addressing Modes) | List - II (Instruction) |
| A. Immediate Addressing | I. LDAX B |
| B. Register Addressing | II. OUT 01H |
| C. Direct Addressing | III. MVI B, 37H |
| D. Indirect Addressing | IV. MOV A, B |
| List - I | List - II |
| (Memory) | (Characteristic) |
| A. ROM | I. Volatile, Fast, Expensive |
| B. EPROM | II. UV erasable |
| C. EEPROM | III. Electrically erasable |
| D. SRAM | IV. Non-Volatile, permanent data |
| List - I | List - II |
| (Bus/Logic) | (Function/Characteristic) |
| A. Address bus | I. Carries read/write signals, timing signals, and interrupt signals |
| B. Data bus | II. A three-state output that can be high, low, or high-impedance |
| C. Control bus | III. Unidirectional lines used by CPU to point to a memory location or I/O device |
| D. Tristate logic | IV. Bidirectional lines used for transferring data between the CPU and memory |