Skip to content

Commit

Permalink
Fix 64 to 86 reg conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Aug 5, 2023
1 parent 29d7d9a commit 1719e62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assembler/X64Assembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void rex(X64Assembler* ass, X64Pointer ptr, X64Register reg, bool wide) {
}

X86Register x86reg(X64Register reg) {
return static_cast<X86Register>(regv(reg));
return static_cast<X86Register>(regv(reg) | 0xf7);
}

X86Pointer x86ptr(X64Pointer ptr) {
Expand Down

0 comments on commit 1719e62

Please sign in to comment.