Search
lxdream.org :: lxdream/src/sh4/x86op.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/x86op.h
changeset 601:d8d1af0d133c
prev590:4db6a084ca3c
next669:ab344e42bca9
author nkeynes
date Tue Jan 22 10:11:45 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Invoke emulator single-step for untranslatable delay slots (and fix a few
related bugs)
file annotate diff log raw
1.1 --- a/src/sh4/x86op.h Wed Jan 16 09:39:16 2008 +0000
1.2 +++ b/src/sh4/x86op.h Tue Jan 22 10:11:45 2008 +0000
1.3 @@ -55,6 +55,8 @@
1.4 #define OP64(x) *((uint64_t *)xlat_output) = (x); xlat_output+=8
1.5 #if SH4_TRANSLATOR == TARGET_X86_64
1.6 #define OPPTR(x) OP64((uint64_t)(x))
1.7 +#define AND_imm8s_rptr(imm, r1) REXW(); AND_imm8s_r32( imm, 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 #define POP_realigned_r32(r1) OP(0x58 + r1); REXW(); ADD_imm8s_r32(8,R_ESP)
1.12 @@ -64,6 +66,8 @@
1.13 #define PUSH_imm64(imm) REXW(); OP(0x68); OP64(imm);
1.14 #else
1.15 #define OPPTR(x) OP32((uint32_t)(x))
1.16 +#define AND_imm8s_rptr(imm, r1) AND_imm8s_r32( imm, r1 )
1.17 +#define MOV_moffptr_EAX(offptr) MOV_moff32_EAX( offptr )
1.18 #define POP_realigned_r32(r1) POP_r32(r1)
1.19 #define PUSH_realigned_r32(r1) PUSH_r32(r1)
1.20 #ifdef APPLE_BUILD
.