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.