aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorchc4 <chc4000@gmail.com>2021-08-12 19:26:13 -0400
committerGitHub <noreply@github.com>2021-08-12 16:26:13 -0700
commit9ce4ed571e79325fcc837596fc102515a9619c15 (patch)
tree2c5f5e0916b44f6e03cbe7ffb98d33089e50bdb1 /src
parent4371ed02ac30cb56ec4ddbf60c87e85c183d860b (diff)
add RegSpec::rbx() helper (#6)
Diffstat (limited to 'src')
-rw-r--r--src/long_mode/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs
index 72ec802..bd70a92 100644
--- a/src/long_mode/mod.rs
+++ b/src/long_mode/mod.rs
@@ -343,6 +343,11 @@ impl RegSpec {
}
#[inline]
+ pub const fn rbx() -> RegSpec {
+ RegSpec { bank: RegisterBank::Q, num: 3 }
+ }
+
+ #[inline]
pub const fn rsi() -> RegSpec {
RegSpec { bank: RegisterBank::Q, num: 6 }
}