Search
lxdream.org :: lxdream/src/sh4/x86op.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/x86op.h
changeset 377:fa18743f6905
prev375:4627600f7f8e
next380:2e8166bf6832
author nkeynes
date Wed Sep 12 09:17:52 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fill in most of the FP operations and fix the stack adjustments
file annotate diff log raw
1.1 --- a/src/sh4/x86op.h Tue Sep 11 21:23:48 2007 +0000
1.2 +++ b/src/sh4/x86op.h Wed Sep 12 09:17:52 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: x86op.h,v 1.5 2007-09-11 21:23:48 nkeynes Exp $
1.6 + * $Id: x86op.h,v 1.6 2007-09-12 09:17:24 nkeynes Exp $
1.7 *
1.8 * Definitions of x86 opcodes for use by the translator.
1.9 *
1.10 @@ -151,10 +151,14 @@
1.11 #define FABS_st0() OP(0xD9); OP(0xE1)
1.12 #define FADDP_st(st) OP(0xDE); OP(0xC0+st)
1.13 #define FCHS_st0() OP(0xD9); OP(0xE0)
1.14 +#define FCOMIP_st(st) OP(0xDF); OP(0xF0+st)
1.15 #define FDIVP_st(st) OP(0xDE); OP(0xF8+st)
1.16 -#define FILD_sh4r(disp) OP(0xDB); MODRM_sh4r_r32(disp, 0)
1.17 -#define FISTTP_shr4(disp) OP(0xDB); MODRM_sh4r_r32(disp, 1)
1.18 +#define FILD_sh4r(disp) OP(0xDB); MODRM_r32_sh4r(0, disp)
1.19 +#define FISTTP_shr4(disp) OP(0xDB); MODRM_r32_sh4r(1, disp)
1.20 +#define FLD0_st0() OP(0xD9); OP(0xEE);
1.21 +#define FLD1_st0() OP(0xD9); OP(0xE8);
1.22 #define FMULP_st(st) OP(0xDE); OP(0xC8+st)
1.23 +#define FPOP_st() OP(0xDD); OP(0xC0); OP(0xD9); OP(0xF7)
1.24 #define FSUB_st(st) OP(0xDE); OP(0xE8+st)
1.25 #define FSQRT_st0() OP(0xD9); OP(0xFA)
1.26
.