aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-01-14 01:53:54 -0800
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit1148826e2bd5f9733bd638d96d4eeadd22958296 (patch)
tree9fc6a26014cd4a746edbd9d309924c9ef48f0c6c /src
parent4f9b07b86c8706cc98d036d8e20966ca630bf278 (diff)
adjust namespace layout
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 87d74cf..21ce8c0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -21,7 +21,7 @@ impl RegSpec {
}
fn gp_from_parts(num: u8, extended: bool, width: u8, rex: bool) -> RegSpec {
- println!("from_parts width: {}, num: {}, extended: {}", width, num, extended);
+// println!("from_parts width: {}, num: {}, extended: {}", width, num, extended);
RegSpec {
num: num + if extended { 0b1000 } else { 0 },
bank: width_to_gp_reg_bank(width, rex)
@@ -1962,7 +1962,7 @@ pub fn decode_one<'a, 'b, T: IntoIterator<Item=&'a u8>>(bytes: T, instr: &'b mut
Some(())
},
Err(reason) => {
- panic!("Decode error on operand: {:?}", reason);
+// panic!("Decode error on operand: {:?}", reason);
// println!("Invalid instruction: {}", reason);
// return Instruction::invalid()
None
@@ -1970,7 +1970,7 @@ pub fn decode_one<'a, 'b, T: IntoIterator<Item=&'a u8>>(bytes: T, instr: &'b mut
}
}
Err(reason) => {
- panic!("Decode error on opcode: {:?}", reason);
+// panic!("Decode error on opcode: {:?}", reason);
// println!("Invalid instruction: {}", reason);
// return Instruction::invalid()
None