MOV r, M instruction in 8085 microprocessor

173 Views Asked by At

I am sorry if the question is too basic but I still cannot understand the code that I found in Google. Basically, I need to make a simple code of MOV r, M instruction in 8085 microprocessor.

Here is the code that I want to make:

LXI H, 1234H
MOV B, M
HLT

My question is the code correct? What is the result of the code after it get executed? Does the B contain 1234H data now? Or the result does not have any content in E because there is no value specified in 1234H memory? Really appreciate for any help or guidance, thanks.

1

There are 1 best solutions below

2
Pritam On

After execution of the above code, the register B contains the content of the memory location 1234H.