summaryrefslogtreecommitdiff
path: root/src/arm32/condition
diff options
context:
space:
mode:
Diffstat (limited to 'src/arm32/condition')
-rw-r--r--src/arm32/condition/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arm32/condition/mod.rs b/src/arm32/condition/mod.rs
index 5d595f9..f8d81ba 100644
--- a/src/arm32/condition/mod.rs
+++ b/src/arm32/condition/mod.rs
@@ -21,6 +21,12 @@
use core::fmt::Display;
+/// A condition code.
+///
+/// Most Arm32 instructions embed a condition code.
+///
+/// Any 4-bit values is always a valid condition code *except* `0b1111`, which sometimes denotes a different instruction altogether
+/// In most cases, it is invalid, however..
#[derive(Clone, Copy, Eq, Ord, PartialEq, PartialOrd)]
#[repr(u8)]
pub enum Condition {