1
0
forked from Rativel/BurritOS

Add a lot of comments, fix SRLI instruction in print,

This commit is contained in:
Quentin Legot
2023-01-18 22:15:06 +01:00
parent 559f94ca21
commit f7f66d31e0
3 changed files with 182 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ pub struct Instruction {
pub funct7 : u8,
pub funct7_smaller : u8,
pub funct3 : u8,
pub shamt : u8,
pub shamt : u8, // shamt = imm[5:0] or imm[4:0] (depend of opcode)
pub imm12_I : u16,
pub imm12_S : u16,