我尝试使用SIB在数组中指定索引,但它失败了。
这是ko指令:
0x48 (REX.W)
0x8B (MOV)
0x44 (ModRM with reg = RAX, SIB and disp8)
0x86 (base is RSI, scaled index is [RAX*4]
XXXX (the disp8)
计算出的地址应为[RSI + 4 * RAX + disp8],对吗?
当我将SIB替换为0x26(即base = RSI,没有缩放索引)时,相同的代码有效。
我没有弄到什么问题。