Homework 02
Homework 02¶
2.4¶
\(\text{B[g] = A[f] + A[f + 1]}\)
2.8¶
f = &A + &A
2.12¶
0000000 00001 00001 000 00001 0110011
由 opcode 可知为 R 型指令,为 add x1,x1,x1
2.14¶
R 型指令,sub x6,x7,x5
,0100000 00101 00111 000 00110 0110011
2.17¶
2.17.1¶
x7 = (x7 << 4) | x6 = 0x0000000AAAAAAAA0 | 0x1234567812345678 = 0x1234567ABABEFEF8
2.17.2¶
x7 = x6 << 4 = 0x2345678123456780
2.17.3¶
x7 = (x5 >> 3) & 0xFEF = 0x0000000015555555 & 0xFEF = 0x545
2.22¶
2.22.1¶
从 0x1FF00000 到 0x200FFFFE
2.22.2¶
从 0x1FFFF000 到 0x20000FFE
2.24¶
2.24.1¶
20
2.24.2¶
2.24.3¶
\(4\times N+1\)
2.24.4¶
2.29¶
Text Only | |
---|---|