-
-
[求助]关于thumb-2 B跳转地址的计算
-
发表于:
2015-10-28 20:21
6157
-
按照ARM手册上的计算方式,算出结果不对。
S = 0
J1 = 1
J2 = 1
imm10 = 0b0000000100
imm11 = 0b10111111111
I1 = NOT(J1 EOR S) = 0
I2 = NOT(J2 EOR S) = 0
S:I1:I2:imm10:imm11:’0’ = 0b0000000000100101111111110
SignExtend(S:I1:I2:imm10:imm11:’0’, 32) = 0b11111110000000000100101111111110 = 0xFE004BFE
pc + 0xFE004BFE + 4 = 0xdc82 + 0xFE004BFE + 4 = 0xFE012884
实际跳转地址为0x12884,请问哪里有问题??
另外求教, IT block是什么意思?
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!