A mov assembly instruction copies the value of the source re

A mov assembly instruction copies the value of the source register to the destination register. What is the value of the destination register r1 after the following instruction completes?

  

Memory Address

Assembly Instruction

0x08000166

MOV r1, pc

Memory Address

Assembly Instruction

0x08000166

MOV r1, pc

Solution

We know, MOV instruction is a 1-byte instruction and program counter (pc) stores the address of next instruction. So, in this case, value of pc will be  0x08000167. So, value of the destination register will be  0x08000167.

Hope it helps.

A mov assembly instruction copies the value of the source register to the destination register. What is the value of the destination register r1 after the follo

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site