aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-10-19 22:49:08 -0700
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commit02fd73fbc22d3abfc876cf21fa6322e815e940c7 (patch)
tree654a50cd99f4b5341c508b9753ddb36b8fc4d8f6 /src/lib.rs
parentf1c94dadfa73c755566a491c7c2d15823101408b (diff)
rsp and rbp constructors used wrong register bank
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 126efcb..c2cd016 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -90,7 +90,7 @@ impl RegSpec {
pub fn rbp() -> RegSpec {
RegSpec {
num: 5,
- bank: RegisterBank::RFlags
+ bank: RegisterBank::Q
}
}
@@ -98,7 +98,7 @@ impl RegSpec {
pub fn rsp() -> RegSpec {
RegSpec {
num: 4,
- bank: RegisterBank::RFlags
+ bank: RegisterBank::Q
}
}