mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-23 11:31:41 +00:00
Fix ROR instruction on x86_64
This commit is contained in:
parent
c33cdb4b25
commit
45f29f363f
@ -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 */
|
||||
|
@ -393,7 +393,7 @@
|
||||
movb F_Reg, %ah; \
|
||||
rorLQ $1, _XAX; \
|
||||
orb %al, %al; \
|
||||
btr $31, _XAX; \
|
||||
btr $ROR_BIT, _XAX; \
|
||||
FlagNZC \
|
||||
PutToEA_B
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user