aboutsummaryrefslogtreecommitdiff
path: root/src/isa/funct3.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-01-06 15:14:50 -0700
committerDavid Li <li.davidm96@gmail.com>2016-01-06 15:14:50 -0700
commitaf31eff1db5fea09b7b01e5d163c1684d800f7f0 (patch)
treea83375a53e6fc5ffea2fe2272342c2ba2714c00e /src/isa/funct3.rs
parent113040e920a0ee0d42a68635fc6e3ab082cec8d9 (diff)
Implement LB, SB, LBU
Diffstat (limited to 'src/isa/funct3.rs')
-rw-r--r--src/isa/funct3.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/isa/funct3.rs b/src/isa/funct3.rs
index 94f2f41..7cb3c5d 100644
--- a/src/isa/funct3.rs
+++ b/src/isa/funct3.rs
@@ -39,6 +39,12 @@ pub const BGE: u32 = 0b101;
pub const BLTU: u32 = 0b110;
pub const BGEU: u32 = 0b111;
-pub const LW: u32 = 0x2;
-
-pub const SW: u32 = 0x2;
+pub const LB: u32 = 0b000;
+pub const LH: u32 = 0b001;
+pub const LW: u32 = 0b010;
+pub const LBU: u32 = 0b100;
+pub const LHU: u32 = 0b101;
+
+pub const SB: u32 = 0b000;
+pub const SH: u32 = 0b001;
+pub const SW: u32 = 0b010;