Fix ROR instruction on x86_64

This commit is contained in:
Aaron Culliney 2014-06-08 13:12:12 -07:00
parent c33cdb4b25
commit 45f29f363f
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,8 @@
#if __LP64__
# define SZ_PTR 8
# define ROR_BIT 63
// x86_64 registers
# define _XBP %rbp /* x86_64 base pointer */
# define _XSP %rsp /* x86_64 stack pointer */
# define _XAX %rax /* scratch */
@ -53,6 +55,8 @@
# define xorLQ xorq
#else
# define SZ_PTR 4
# define ROR_BIT 31
// x86 registers
# define _XBP %ebp /* x86 base pointer */
# define _XSP %esp /* x86 stack pointer */
# define _XAX %eax /* scratch */

View File

@ -393,7 +393,7 @@
movb F_Reg, %ah; \
rorLQ $1, _XAX; \
orb %al, %al; \
btr $31, _XAX; \
btr $ROR_BIT, _XAX; \
FlagNZC \
PutToEA_B