You are currently viewing [PRACTICAL] Implement a program to set higher four bits of content of the memory location to 1
Microprocessor 8085 programming

[PRACTICAL] Implement a program to set higher four bits of content of the memory location to 1

0
(0)

[PRACTICAL] IMPLEMENT A PROGRAM TO SET HIGHER FOUR BITS OF CONTENT OF THE MEMORY LOCATION TO 1

Are you looking for a step-by-step guide to Implement a program to set higher four bits of the content of the memory location to 1? here are the steps to implement a program to set higher four bits of the content of the memory location to 1.

Program:

//Set higher four bits of content of the memory location to 1
//The number to be masked is stored in C050 
//Answer is stored in C051

LDA C050
ORI F0
STA C051
HLT

Input:

Content of Memory Location C050: 05h

Output:

Content of Memory Location C051: F5h

For more practical related to 885 Programming please visit the 8085 Programming link

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

As you found this post useful...

Share this post on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?