Search
lxdream.org :: lxdream/src/sh4/x86op.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/x86op.h
changeset 800:0d1be79c9b33
prev736:a02d1475ccfd
next901:32c5cf5e206f
author nkeynes
date Mon Aug 04 06:00:11 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix x86-64 bugs (only visible on OS X)
file annotate diff log raw
1.1 --- a/src/sh4/x86op.h Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/sh4/x86op.h Mon Aug 04 06:00:11 2008 +0000
1.3 @@ -52,6 +52,7 @@
1.4 #if SIZEOF_VOID_P == 8
1.5 #define OPPTR(x) OP64((uint64_t)(x))
1.6 #define AND_imm8s_rptr(imm, r1) REXW(); AND_imm8s_r32( imm, r1 )
1.7 +#define LEA_sh4r_rptr(disp, r1) REXW(); LEA_sh4r_r32(disp,r1)
1.8 #define MOV_moffptr_EAX(offptr) REXW(); MOV_moff32_EAX( offptr )
1.9 #define STACK_ALIGN 16
1.10 #define POP_r32(r1) OP(0x58 + r1);
1.11 @@ -63,6 +64,7 @@
1.12 #else /* 32-bit system */
1.13 #define OPPTR(x) OP32((uint32_t)(x))
1.14 #define AND_imm8s_rptr(imm, r1) AND_imm8s_r32( imm, r1 )
1.15 +#define LEA_sh4r_rptr(disp, r1) LEA_sh4r_r32(disp,r1)
1.16 #define MOV_moffptr_EAX(offptr) MOV_moff32_EAX( offptr )
1.17 #define POP_realigned_r32(r1) POP_r32(r1)
1.18 #define PUSH_realigned_r32(r1) PUSH_r32(r1)
.