Assume the program counter has value 0xd0d0d0d0 and you run

Assume the program counter has value 0xd0d0d0d0 and you run the ARM instruction \"B 0x00f00f\". What address will you jump to?

Solution

The program counter will point to the address of the current instruction.

As you said, PC is holding the value, 0xd0d0d0d0. And the instruction there is B 0x00f00f.

Here B stands for Branch (Unconditional Branch). so, the next address to be loaded into PC is 0x00f00f. And so, the program counter will jump to the address 0x00f00f.

 Assume the program counter has value 0xd0d0d0d0 and you run the ARM instruction \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site