kernel-mode #1

Manually merged
anton merged 69 commits from kernel-mode into master 2021-11-16 08:02:40 +01:00
Showing only changes of commit 9278235e44 - Show all commits

View File

@ -55,12 +55,11 @@ def imm_u(ins: int):
def imm_j(ins: int): def imm_j(ins: int):
imm = ins >> 12
return sign_extend( return sign_extend(
((imm >> 8) & 0b1111111111) + (((ins >> 21) & 0b1111111111) << 1) +
((imm & 1) << 10) + (((ins >> 20) & 1) << 11) +
((imm & 0b11111111) << 11) + (((ins >> 12) & 0b11111111) << 12) +
(imm & 0b10000000000000000000), 20 (((ins >> 31) & 1) << 20), 21
) )