Skip to content

Commit 15fff80

Browse files
committed
arm mov
1 parent 7f1d3b9 commit 15fff80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Android/C03/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ hex_str1 = "0xE3a00102"
2323
bin:1110 0011 1010 0000 0000 0001 00000010
2424
2525
图上又把后12位拆成2份,8-11位以及0-7位,机器码里面的02也就是低8位立即数00000010进行向右循环移位。移多少位呢,就是imm12的高第8-11位乘2,也就是最后8位00000010向右移动8-11位*2(0001*2=两位)。
26+
8位立即数向右移动,可以移动的范围就是4的2次方也就是0-16,为什么乘2?就是0-32,可以覆盖到0-32中的偶数可以移动的比较全,8位立即数可以向右移动0、2、4、8、16、32。
2627
2728
此指令A1作用就是 防止写入0x80000000时把机器码弄长,采用左移的方式。
2829
```

0 commit comments

Comments
 (0)