不应该R3持有地址x3307? [英] Shouldn't R3 hold address x3307?
问题描述
I am doing a practice question from Question 7
我不应该强调的地址必须x3307,x3308不?
Shouldn't the address I highlighted be x3307, not x3308?
我推断这一点的方式是,(第2个指令之前PC)=(1指令后PC)。
The way I reasoned this out was that (PC before 2nd instruction) = (PC after 1st instruction).
1日指令后PC为X3301。第二指令执行。因此,当时,PC,X3301将由6递增以x3307
The PC after 1st instruction is x3301. Therefore when the second instruction executes, the PC, x3301 will be incremented by 6 to x3307.
是否每个人都同意吗?还是我错过了什么和R3应实际存储x3308?
Does everyone agree? Or did I miss something and R3 should actually store x3308?
推荐答案
PC相对偏移的已经递增的PC的顶端施加,即在PC的值后,或者换句话说,所述的地址接下来的指令。
PC-relative offsets are applied on top of the already incremented PC, that is the "after" value of the PC, or in other words, the address of the following instruction.
这篇关于不应该R3持有地址x3307?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!