Microcontroller Articles

Page 33 of 33

8085 program to access and exchange the content of Flag register with register B

Jennifer Nicholas
Jennifer Nicholas
Updated on 30-Jul-2019 1K+ Views

In this program we will see how to exchange the content of Flat register with register B.Problem StatementWrite 8085 Assembly language program to swap the content of flag register and the register B.DiscussionAs we cannot access the flag register content directly, we have to take the help of stack. By using stack, we can push the content of PSW (Accumulator and Flag). Then we can get it back and store into some other registers. Similarly, from other register, we have to push them into stack, then pop it to PSW.Here if we want to exchange the value of B and ...

Read More
Showing 321–321 of 321 articles
« Prev 1 29 30 31 32 33 Next »
Advertisements