diff options
author | chc4 <chc4000@gmail.com> | 2021-08-12 19:26:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 16:26:13 -0700 |
commit | 9ce4ed571e79325fcc837596fc102515a9619c15 (patch) | |
tree | 2c5f5e0916b44f6e03cbe7ffb98d33089e50bdb1 /src/long_mode | |
parent | 4371ed02ac30cb56ec4ddbf60c87e85c183d860b (diff) |
add RegSpec::rbx() helper (#6)
Diffstat (limited to 'src/long_mode')
-rw-r--r-- | src/long_mode/mod.rs | 5 |
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 } } |