summaryrefslogtreecommitdiff
path: root/src/arm32/thumb_opcode
diff options
context:
space:
mode:
Diffstat (limited to 'src/arm32/thumb_opcode')
-rw-r--r--src/arm32/thumb_opcode/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arm32/thumb_opcode/mod.rs b/src/arm32/thumb_opcode/mod.rs
index 1bd9529..c327696 100644
--- a/src/arm32/thumb_opcode/mod.rs
+++ b/src/arm32/thumb_opcode/mod.rs
@@ -27,6 +27,9 @@ use core::fmt::{Debug, Display, Formatter};
pub struct ThumbOpcode(u16);
impl ThumbOpcode {
+ /// The size of any Thumb opcode, in bytes.
+ ///
+ /// This value is not including `BL` prefixes and suffixes, which count as two opcodes in total.
pub const SIZE: u32 = 0x2;
/// Creates a new opcode from a primitive.