aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-08-03 19:49:15 -0700
committeriximeow <me@iximeow.net>2020-01-12 17:28:07 -0800
commit0edc3442d065ea1572e8a01150437a3bef04057b (patch)
treee22690ea8fe0d7f3d84b387f9f9d27339fc0be0a
parent92a03acfb8cd4663188b958f383c3c24c94eed7d (diff)
typo in variants for a two bit field
-rw-r--r--src/armv7.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/armv7.rs b/src/armv7.rs
index e609086..52061c7 100644
--- a/src/armv7.rs
+++ b/src/armv7.rs
@@ -798,7 +798,7 @@ impl Decodable for Instruction {
println!("{:032b}", word);
println!(" {:05b}|{:04b}|{:04b}|{:04b}|1{:02b}1|{:04b}", flags, Rn, Rd, HiOffset, op, LoOffset);
match op {
- 0x00 => {
+ 0b00 => {
// |c o n d|0 0 0 1|x x x x x x x x x x x x x x x x|1 0 0 1|x x x x|
// this is swp or {ld,st}ex, conditional on bit 23
match flags {
@@ -862,7 +862,7 @@ impl Decodable for Instruction {
}
}
}
- 0x01 => {
+ 0b01 => {
// |c o n d|0 0 0 x|x x x x x x x x x x x x x x x x|1 0 1 1|x x x x|
// page A5-201
self.opcode = Opcode::Incomplete(word);
@@ -895,13 +895,13 @@ impl Decodable for Instruction {
}
}
}
- 0x10 => {
+ 0b10 => {
// |c o n d|0 0 0 x|x x x x x x x x x x x x x x x x|1 1 0 1|x x x x|
// page A5-201
self.opcode = Opcode::Incomplete(word);
return Some(());
}
- 0x11 => {
+ 0b11 => {
// |c o n d|0 0 0 x|x x x x x x x x x x x x x x x x|1 1 1 1|x x x x|
// page A5-201
self.opcode = Opcode::Incomplete(word);