From 02fd73fbc22d3abfc876cf21fa6322e815e940c7 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 19 Oct 2019 22:49:08 -0700 Subject: rsp and rbp constructors used wrong register bank --- src/lib.rs | 4 ++-- 1 file 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 } } -- cgit v1.1