From 9ce4ed571e79325fcc837596fc102515a9619c15 Mon Sep 17 00:00:00 2001 From: chc4 Date: Thu, 12 Aug 2021 19:26:13 -0400 Subject: add RegSpec::rbx() helper (#6) --- src/long_mode/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) 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 } } -- cgit v1.1