Write a program to load the data into the accumulator and any register.

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

InstructionCommentOperation
MVI A, 05HLoad register A with 05 HA = 05 H
MVI B, 20HLoad register B with 20 HB = 20 H
HLTHaltStop

Flow Chart of Program

flow chart1
  • 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.

Hello friends, my name is Trupal Bhavsar, I am the Writer and Founder of this blog. I am Electronics Engineering(2014 pass out), Currently working as Junior Telecom Officer(B.S.N.L.) also I do Project Development, PCB designing and Teaching of Electronics Subjects.

1 thought on “Write a program to load the data into the accumulator and any register.”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.