aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/long_mode/mod.rs')
-rw-r--r--src/long_mode/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs
index 099cc47..8aa164d 100644
--- a/src/long_mode/mod.rs
+++ b/src/long_mode/mod.rs
@@ -59,6 +59,10 @@ pub enum ConditionCode {
#[allow(non_snake_case)]
impl RegSpec {
+ pub fn name(&self) -> &'static str {
+ display::regspec_label(self)
+ }
+
#[inline]
fn from_parts(num: u8, extended: bool, bank: RegisterBank) -> RegSpec {
RegSpec {