Program Statment
- Write a program to load data 05H into the accumulator and data 20H into the B register.
Explanation of Program
- The registers A and B need to be initialized with the data given. As the data is directly available, we can use the instruction MVI, data.
Assembly Language Program
Instruction | Comment | Operation |
---|---|---|
MVI A, 05H | Load register A with 05 H | A = 05 H |
MVI B, 20H | Load register B with 20 H | B = 20 H |
HLT | Halt | Stop |
Flow Chart of Program

- If we want to see how the program looks in program memory then the same is shown as follows. Assume C0000H is the starting memory location.

Sr. No. | Name of the 8085 Programs |
---|---|
1. | Write a program to load the data into the accumulator and any register. |
2. | Write a program to exchange the contents of memory locations. |
3. | Add two 8-bit numbers. |
4. | Subtract two 8-bit numbers. |
5. | Add two 16-bit numbers. |
1 thought on “Write a program to load the data into the accumulator and any register.”